Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set the keyboard to overwrite mode?
Message
From
19/03/2000 02:08:37
 
 
To
18/03/2000 15:37:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00347369
Message ID:
00347549
Views:
20
>It's the second case - make the object blink, not the cursor.

You could use a Timer and do:

thisform.text1.visible = !thisform.text1.visible

in the timer event. But why would you want to do this in a Textbox? You are not going to trap all the keystrokes when the control is not visible, you could also try moving it off the screen and back, but you'll find the cursor keeps getting lost. It ends up more trouble than it is.

I suggest jsut changing the back color of the control:
thisform.text1.backcolor = ;
	iif(thisform.text1.backcolor = rgb(255, 255, 255), ;
	rgb(255, 0, 0), rgb(255, 255, 255))
There are several examples of timers in the files sections here, sucj as Pong and Bag o' Tricks if you need any help with those.
Previous
Reply
Map
View

Click here to load this message in the networking platform