[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

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

1202.0. "What are the units of X and Y?" by DWOVAX::YOUNG (Another pushy field person.) Mon Jul 31 1989 03:09

    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.RTitleUserPersonal
Name
DateLines
1202.1Look carefully at dialog box documentationSX4GTO::ROSEMon Jul 31 1989 04:296
    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.2DWOVAX::YOUNGin the iron grip of bureaucracyMon Jul 31 1989 09:507
    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.3PSW::WINALSKIMeetings are our most important productMon Jul 31 1989 10:5715
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