Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Refresh a get reader?

Refresh a get reader?

Refresh a get reader?

Hi. Is there a way to repaint all of the get variables?

If I have multiple "@...Get" statements then a READ, the oGet variables will only repaint their values when the user moves their cursor on top. How do I tell all get variables to repaint on command?

In the example below, if a user presses Ctrl-Z, only the current get will be updated. The other get will not update until the user moves their cursor on top.

function main()
  SetKey( K_CTRL_Z, { || test( @nVar1, @nVar2 ) } )
  @ 10, 10 get nVar1
  @ 11, 10 get nVar2

function test( nVar1, nVar2 )
  nVar1 := 5
  nVar2 := 10
  // How do I tell both get objects to now redisplay?

RE: Refresh a get reader?

@ 10, 10 say nVar1
@ 11, 10 say nVar2


---People Remember about 10% of what you say ---They never forget how you made them feel.  Covey

RE: Refresh a get reader?

OK, sorry but I should have thought this through before my previous response.

What you need to do is set the WHEN argument on the gets to nVarx and then have your update function set new values to nVarx and then issue the @ say to update the screen.

If you just issue the @ say the old value will show up when the get gains focus.


---People Remember about 10% of what you say ---They never forget how you made them feel.  Covey

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close