[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

3322.0. "Value of DisplaySizeMM on Firefox " by TKTV20::TSURUMI (SWEET BASIL) Sat Sep 08 1990 06:33

	Hi,

	I have a question about display size of Firefox (3520/3540).

	DisplayWidthMM and DisplayHeightMM macros each return 433mm and 346mm 
	on Firefox.
        But real size of display area (VR295) is not so big.
       	So we can't realize the applicetion that dispalys absolute size
	of figures.

	Is this a problem of DECwindows ?
	Is there any way to realize this ? 	
	
	An example program is in the next page.

	Thanks in advance.
	Toshiyuki Tsurumi					

                                       
#include <stdio.h>
#include <decw$include/DECwDwtApplProg.h>

#define screenNumber    DefaultScreen(display)
#define displayWidthmm  DisplayWidthMM(display,screenNumber)
#define displayHeightmm DisplayHeightMM(display,screenNumber)

static Display *display;

main(argc,argv)
unsigned int argc;
char *argv[];
{
    Widget   toplevel;
    unsigned int widthmm,
                 heightmm;
    Arg  args[15];
    toplevel=XtInitialize("DISPLAY WIDTH",  
                          "DISPLAY WIDTH",  
                           NULL,FALSE,      
                           &argc, argv);
    display=XtDisplay(toplevel);

    widthmm  = displayWidthmm; 
    heightmm = displayHeightmm; 

    printf("display height mm = [%d] \n", heightmm);
    printf("display width  mm = [%d] \n", widthmm);
}
                                
T.RTitleUserPersonal
Name
DateLines
3322.1size based on # of pixels and dpiSTAR::BMATTHEWSMon Sep 10 1990 10:467
The size of the screen in mm is calculated based on the screen width and height 
in pixels and the user selected dpi. The default dpi for all vms workstations
prior to v5.4 is 75dpi(the vr295 is 100 dpi). In v5.4 we changed the default
dpi for vs35x0 to 100dpi since these systems only allow 100 dpi monitors.
The dpi is selected in the sys$manager:decw$private_server_setup file.
						BIll

3322.2ThanksTKTV20::TSURUMISWEET BASILMon Sep 10 1990 23:417
>                     <<< Note 3322.1 by STAR::BMATTHEWS >>>
>                     -< size based on # of pixels and dpi >-

Thanks for your response.
I solved this problem.

Toshiyuki