Dialog, Button PIXEL

Dialog, Button PIXEL

Postby Otto » Wed Oct 10, 2007 9:52 pm

If I use PIXEL then the Pixels from the Button count double i.e.
@ 125, 100 BTNBMP SIZE BTN_WIDTH, BTN_HEIGHT ;
FILENAME "..\bitmaps\arrow.bmp" OF oDlg
Is shown on 250, 200.

What is the right syntax?

PS:
Screen Ruler (free) is a useful tool to measure the coordinates:
http://delphi.about.com/library/weekly/aa080205a.htm
User avatar
Otto
 
Posts: 6342
Joined: Fri Oct 07, 2005 7:07 pm

Postby James Bott » Wed Oct 10, 2007 11:59 pm

Otto,

For some strange reason the units used for dialogs are not the same as those for windows (you may thank Microsoft for this). I guess this means they are really not pixels. Google "dialog units" if you interested in more info.

I find that if you divide the dialog units by 2.05 they are about the same as they would be for a window. You can do something like this to make it easier to read since you can still see the pixel equivalent values.

@ 125/2.05, 100/2.05 BTNBMP...PIXEL

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 33 guests