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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cursor location in a form

Status
Not open for further replies.

blumash

Programmer
Oct 2, 2003
50
0
0
HU
I m looking for a functaion or others to know in which field on the form is the cursor right now.

thank's
 
Thank's guy's I solved the problem , u were very helpfull, I m also looking for another thing , I would like to make a field in a form/screen blinking , don't realy know if it's posible.
 

As I recall, once I used a color scheme for blinking red:

Somewhere in SETUP-code (R for red):

set color of scheme 22 to R/W,R/W,R/W,R/W,R/W,R/W,R/W,R/W,R/W,R/W

Somewhere in CLEANUP-code define a function (* for blink):

procedure kolorit
parameter blinkx
if blinkx
set color of scheme 22 to
R*/W,R*/W,R*/W,R*/W,R*/W,R*/W,R*/W,R*/W,R*/W,R*/W
else
set color of scheme 22 to
N/W,N/W,N/W,N/W,N/W,N/W,N/W,N/W,N/W,N/W
endif
return 22

And I used it conditionaly when defining a field:

@ 19,1 GET m.totrazx ;
SIZE 1,11 ;
DEFAULT 0 ;
PICTURE "99999999.99" ;
WHEN .f. ;
COLOR scheme iif(totrazx=0.00,kolorit(.f.),kolorit(.t.)) ;
DISABLE


P.S.
I used modified GENSCRNX to be able to have COLOR SCHEME clause when defining field on screen. Maybe it is not your case, but this hint can show you the direction.

Kruno Malovic

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top