FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Dialog, Button PIXEL
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Dialog, Button PIXEL
Posted: Wed Oct 10, 2007 09: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

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Dialog, Button PIXEL
Posted: 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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion