Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Wrong Size problem..
Re: Wrong Size problem.. [message #7500 is a reply to message #7498] Tue, 02 January 2007 07:05 Go to previous messageGo to previous message
yoco is currently offline  yoco
Messages: 25
Registered: June 2006
Location: Taiwan
Promising Member
luzr wrote on Mon, 01 January 2007 18:18

Well, dialogs are zoomed because the size of font is different (Everything is defined relative to choosen base font, then scaled up for actual font).

The right thing to do is to design your widgets so that they do not care.

Mirek



Yes, I know the real size is determined by the system default font.
I havd read it in document "Logical positions."
Quote:


Zoom factor is determined by ratio of text "OK Cancel Exit Retry" in runtime standard font size to Size(99, 13) - size of this text using standard font.



However, in the layout tool of TheIDE,
the size of controls are assigned in
LeftPosZ(16, 108).TopPosZ(20, 36)

There are "Z" postfix in there functions,
which means the size of there controls are "Zoomed".

Is it possible that, the wrong size is caused by the numerical error of the integer divide operation?
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Drawing Backgroud
Next Topic: Create my own Rect for clipping?
Goto Forum:
  


Current Time: Tue Apr 29 22:03:21 CEST 2025

Total time taken to generate the page: 0.03769 seconds