[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

2518.0. "DECwindows Resource Questions" by ESRAD::PANGAKIS (Tara Pangakis DTN 287-3551) Tue Mar 27 1990 12:42

    Can someone help me with pointers to these questions.
    
    I'm working with a third-party company who is developing
    a courseware authoring system for the DECwindows environment.
    
    o Fonts
    
      What "comes" with DECwindows?  Can a third-party depend
      a certain set of fonts being on the system?
    
      Is there a listing of all the resources that are 
      part of the DECwindows environment?
    
    o Color
    
      Are colors specified differently in other countries, in
      the native language?  How do Digital applications cope
      with this, specify different dialog boxes with colors
      hard coded?
    
    o Resolution
    
      100 DPI versus 75 DPI
      (19" monitor)  (15" monitor)
    
      Are there any guidelines for developing applications that
      will display on either monitor or is this a problem anymore?
      I seem to remember pushbuttons overlapping one another. 
T.RTitleUserPersonal
Name
DateLines
2518.1STAR::VATNEPeter Vatne, VMS DevelopmentTue Mar 27 1990 12:547
>      What "comes" with DECwindows?  Can a third-party depend
>      a certain set of fonts being on the system?

The list of fonts provided with DECwindows is in Appendix D of the
Guide to Xlib Programming.  They may count on all or none of the 75
DPI fonts existing, and all or none of the 100 DPI fonts existing,
depending upon how the user tailored the system.
2518.2So what if no fonts are there?ESRAD::PANGAKISTara Pangakis DTN 287-3551Mon Apr 02 1990 13:184
    re: .1
    
    So if none of the fonts are guaranteed to be there, what do
    applications do?
2518.3Wildcard the resolution fieldSTAR::VATNEPeter Vatne, VMS DevelopmentMon Apr 02 1990 14:0212
Well, if the user tailored off ALL the fonts, then of course the program
has no choice but to print an error message and die.  However, that is
an exceptional case.  The application writer can count on at least one
set of fonts (either 75 or 100 DPI) to be there.

I'm not sure yet what the best way is to handle resolutions.  However,
most of the applications I've observed wildcard the resolution field.
This will pick up either resolution, depending upon which was tailored
on.  If both were tailored on, it will pick up the first resolution
in the default font path.  The first resolution in the font path is
normally 75 DPI, although this can be overridden in SYS$STARTUP:
DECW$PRIVATE_SERVER_SETUP.COM.
2518.4Recommendation: Don't wildcard OpenFontDECWIN::FISHERPrune Juice: A Warrior's Drink!Tue Apr 03 1990 15:0611
BTW, you would be better off doing a ListFont with the resolution field wild
carded to save you grief in the long run.  Wild carding open font could
cause trouble in the future with scalable fonts.

Wildcards with openfont was a DEC invention which we rammed down the throats
of an unwilling consortium.  No one else uses it much and people won't feel
too sorry if future conventions make it not work.

A word to the wise...

Burns
2518.5International guidelines?ESRAD::PANGAKISTara Pangakis DTN 287-3551Tue Apr 24 1990 16:252
    Is there such a thing as a "DECwindows Developers Guide to Developing
    International" applications?
2518.6BBOOP::SCAERWed Apr 25 1990 13:275
	
	RE: .5

	The set of manuals is called the "Producing
	International Products" reference set.
2518.7How can one inquire for screen resolution?EPIK::MJDAILEYMike Dailey; ZKO2-2/M28Wed Oct 24 1990 13:025
    RE .4
    
    Is there any way to detect the display system's screen resolution in dpi?
    
    	Mike
2518.8IO::MCCARTNEYJames T. McCartney III - DTN 381-2244 ZK02-2/N24Wed Oct 24 1990 14:4911
RE: .-1,

Give a widget id from the toolkit, you can do the following:

	horiz_dpi = XDisplayWidth(XtDisplay(w),XtScreen(w)) /
			XDisplayWidth(XtDisplay(w),XtScreen(w)) / 25.4;

 	vert_dpi  = XDisplayHeight(XtDisplay(w),XtScreen(w)) /
			XDisplayHeight(XtDisplay(w),XtScreen(w)) / 25.4;

James
2518.9TyposGVRIEL::SCHOELLERSchoeller - Failed XperimentWed Oct 24 1990 15:4910
.-1
those should be 

	XDisplayWidth () / (XDisplayWidthMM () / 25.4)

and

	XDisplayHeight () / (XDisplayHeightMM () / 25.4)

Dick