Announcement

Collapse
No announcement yet.

graphic line input

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Paul Dixon
    replied
    Tom,
    when you specify ,REDRAW in the GRAPHIC ATTACH statement the graphic window is only updated on screen when you force it by using GRAPHIC REDRAW yourself.
    During a GRAPHIC LINE INPUT this can be difficult as you'd need to have some task running in the background to update the window while the LINE INPUT was taking place.

    If you don't use the ,REDRAW option in the GRAPHIC ATTACH statement then the window is automatically updated for you every time anything is drawn to the screen. While this can make drawing to the window slower, it is the more appropriate option in this case.

    Paul.

    Leave a comment:


  • tom kroto
    replied
    ok

    yes that worked....Can you give me simple premise behind this change. Thanks.

    Leave a comment:


  • Paul Dixon
    replied
    Tom,
    try using
    Code:
    GRAPHIC ATTACH hwin???, 0
    instead of
    Code:
    GRAPHIC ATTACH hwin???, 0, REDRAW
    Paul.

    Leave a comment:


  • tom kroto
    started a topic graphic line input

    graphic line input

    I am using the graphic window to display instructions regarding the data to be enter. BUT this time I want the entry data to come from the graphic window because pbcc5.0 says I can now.

    what is happening:
    As you see it the window appears but it is empty.

    If I put the redraw after the last graphic print I see the instructions but not the graphic line input

    GRAPHIC WINDOW " tomkroto-tk5c03", 700&, 400&, 400, 400& TO hwin???
    'window = x=col,y=row,width,height for variables
    GRAPHIC ATTACH hwin???, 0, REDRAW
    GRAPHIC SET POS (00,10)
    GRAPHIC FONT "Times New Roman", 10, 0
    GRAPHIC PRINT "************ tk4c52dat.txt holds all info"
    GRAPHIC PRINT "tk5c03 sort data and place in clipboard and/or xprint"
    GRAPHIC PRINT " enter -quit- to stop pgm, -savit- to send to clipboard"
    GRAPHIC PRINT " note: for quit/savit open document first then do quit/savit "
    GRAPHIC PRINT " p=print,=connect,^delete,!add to,~add in front),% add constant to front "


    GRAPHIC LINE INPUT " enter data element " XXde
    GRAPHIC REDRAW ' this made window show print see sample
    GRAPHIC WINDOW END


    Thanks for your ideas and clarifications
Working...
X
😀
🥰
🤢
😎
😡
👍
👎