Re: "Dialogs" in AppGraphics
Hi Jeff,
I have a question regarding the screen resolution in pixels using APPGRAPHICS. When a window is created of width and height of 800,600 using initwindow(800, 600, title="Example Application"), the functions getwindowwidth ( ) and getwindowheight ( ) produce pixels of 806 and 629. In comparision, the functions getmaxx ( ) and getmaxy ( ) produce 799 and 599 as they should.
Why do these function calls produce different window dimension?
Moreover, when subsequently initwindow (getwindowwidth ( ), getwindowheight ( ), "EXAMPLE WINDOW", DEFAULT_POSITION , DEFAULT_POSITION , .FALSE., .TRUE.) is called, then functions getwindowwidth ( ) and getwindowheight ( ) produce pixels of 812 and 658.
Why has the window dimensions gotten larger?
EXAMPLE CODE:
INTEGER :: window, initwin
!--- Display screen in pixel coordinates
!--- Create a window 800 pixels wide by 600 pixels tall.
! (width,height)
! (0,0).....................................(800,0)
! .
! .
! .
! (0,600)...................................(800,600)
!--- Initialized window x,y dimensions (800,600)
window = initwindow(800, 600, title="Example Application")
!-------------------------------------
!INITWIN = initwindow (getwindowwidth ( ), getwindowheight ( ), &
!"EXAMPLE WINDOW", DEFAULT_POSITION , DEFAULT_POSITION , &
!.FALSE., .TRUE.)
!--- Width in pixels of the current window
!PRINT *, 'INITWIN-XTOTAL_PIX = ', getwindowwidth ( ) !--> 812
!!--- Height in pixels of the current window
!PRINT *, 'INITWIN-YTOTAL_PIX = ', getwindowheight ( ) !--> 658
!-------------------------------------
!--- Width in pixels of the current window
PRINT *, 'XTOTAL_PIX = ', getwindowwidth ( ) !--> 806
!--- Height in pixels of the current window
PRINT *, 'YTOTAL_PIX = ', getwindowheight ( ) !--> 629
!--- Largest horizontal position possible in the current window
PRINT *, 'XMAX_PIX = ', getmaxx ( ) !--> 799
!--- Largest vertical position possible in the current window
PRINT *, 'YMAX_PIX = ', getmaxy ( ) !--> 599
btw, I running Windows 10 using a Microsoft Surface Pro PC. SimplyFortran is verison 3.19, build 3543 using GNU Fortan 10.2.0.
Frank