[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

1795.0. "DECterm and GKS problem" by TOOK::N_MORIN () Mon Nov 27 1989 16:06

Hello,
    I entered this in the GKS notes files but I would like to know if
    anyone here has any feedback on this problem.
    
    Thanks,
    Norm
             <<< DSSDEV::PUBLIC$:[NOTES$LIBRARY]GKSNOTES.NOTE;2 >>>
                      -<  GKS - Graphical Kernel System  >-
================================================================================
Note 1411.0                GKS on DECwindows question                 No replies
TOOK::N_MORIN                                        28 lines  27-NOV-1989 14:45
--------------------------------------------------------------------------------
    Hello,
    I have a quick question (I hope).
    I am working to convert an application to work on a DECterm window.
    There is a problem with GKS or the way DECwindows
    interprets GKS output.
    
    I "define GKS$wstype 13" in a DECterm window.
    Then I run the application. For some reason GKS output is clipped 
    from the far right side of the screen. The application has SMG calls 
    made to draw a table but data is inserted into the table with GKS.
    Originally, REGIS was used to change color of text output to
    indicate warning and error conditions. 
    
    Using GKS to output the text didn't appear to be a major problem.
    The application works fine on a terminal, the characters appear in the 
    proper locations. When the application is displayed on a DECterm window
    things are skewed and the far left right is clipped. I'm not worried
    about the skewing but the clipping of the right side makes things a
    little tough. 
    
    Originally, when the viewport and ws_window was defined, the x coordinates
    were 0 to .767. I altered the viewport and ws_window x coordinates to 0
    to 1.0 but it didn't seem to help the problem of the right getting
    clipped. 
    
    Any ideas or workarounds?
    Norm 
     
        
T.RTitleUserPersonal
Name
DateLines
1795.1Probably caused by character/window size differencesHANNAH::MESSENGERBob MessengerMon Nov 27 1989 19:1023
Re: .0

What versions of DECwindows and VMS are you running?  I don't know GKS; do
you know what terminal type 13 is?

I'd guess that the shape of the DECterm window is different from the shape
of the terminal screen, so the output is scaled differently.  Compared to
the terminal, DECterm's window is too wide, using the default little/normal
font (640 x 360 pixels vs. 800 x 480).  This means that if GKS addresses
the window as [0,0][799,479] there will be an area at the right side of the
window that GKS won't be able to write to.

What you might want to try is to change the number of rows and columns in
the DECterm window so that the window is 800 by 480 pixels, which means
100 columns and 32 rows (the font is 8 x 15).  This will make the graphics come
out the right size, but it won't play very well with SMG.  What you really need
is a 10 by 20 pixel font, but I don't think this exists in DECwindows format.

I think the bottom line here is that you can't depend on the interaction
between text and graphics, so it will be hard to put GKS graphics in an
SMG window.

				-- Bob