| Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
| Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
| Moderator: | STAR::VATNE |
| Created: | Mon Oct 30 1989 |
| Last Modified: | Mon Dec 31 1990 |
| Last Successful Update: | Fri Jun 06 1997 |
| Number of topics: | 3726 |
| Total number of notes: | 19516 |
I have hunted around a little for this but cannot find anything that
directly relates to it.
The units of the X and Y widget arguments do not seem to be documented
anywhere. Now I had just assumed that they were in pixels, but
apparently not. I have an UIL file creating square pushbutton
widgets, and in order to get things to line up I have to assume that
the X and Y arguments are in units of 4 and 2.5 pixels respectively.
Even then I can see that it is still not exact.
Can someone tell me what the units are here, or what I am doing wrong?
-- Barry
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 1202.1 | Look carefully at dialog box documentation | SX4GTO::ROSE | Mon Jul 31 1989 03:29 | 6 | |
This is very well known. In dialog boxes, the units by default are font
units not pixel units. I think it's 1/8 the font size in y and 1/4th in
x...
OSF/Motif has done away with this in their versions of dialog boxes.
| |||||
| 1202.2 | DWOVAX::YOUNG | in the iron grip of bureaucracy | Mon Jul 31 1989 08:50 | 7 | |
Re .1:
Thanks is there any way for me to change the default behaivor?
Also, can you tell which book & section this is in? (I have been
cruising Bookreader for days, the indexes were next to useless).
| |||||
| 1202.3 | PSW::WINALSKI | Meetings are our most important product | Mon Jul 31 1989 09:57 | 15 | |
VMS DECwindows Guide to Application Programming, page 7-11, section 7.4.2.3:
Selecting the Unit of Measure Used in a Dialog Box Widget:
The unit of measure in a dialog box widget is either the pixel or font
unit. For horizontal dimensions, a font unit is one-fourth the width of
the default font. For vertical dimensions, a font unit is one-eighth the
height of the font. Specify the unit of measure in the "units"
attribute. By default, dialog box widgets use the font unit.
Any dialog box widget that displays text should use the font unit of
measure. In this way, dimensions specified will remain valid if the
font changes.
--PSW
| |||||