Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh a get reader?

Status
Not open for further replies.

torres12

Programmer
Jul 25, 2007
3
0
0
CA
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
read
return

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

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


Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
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.



Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top