Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text Box Control
Message
From
15/06/1998 07:45:03
Ryan Hirschey
Federal Reserve Bank of New York
New York City, New York, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00105540
Message ID:
00108155
Views:
37
>I have tried this approach, but for some reason the timer event doesn't seem like it is firing at all. Since I do not know ahead of time which textbox will be picked...I set up a property to hold the location. I have one for the previous location as well as the current location.
>
>The timer has:
>
>enabled = .t.
>interval = 500
>
>timerevent() is something like the following:
>
>tmpcurrballloc = thisform.currballloc <- shows which textbox forecolor to change
>
>if &tmpcurrballloc = RGB(255,255,255)
> &tmpcurrballloc = RGB(128,128,128)
>else
> &tmpcurrballloc = RGB(255,255,255)
>endif
>
>Thanks.

Try using a name expression instead of macro substitution. Name expressions execute faster, which may make the code run properly inside the timer event. Something like:

if (tmpcurrballloc) = RGB(255,255,255)
etc....

You may also want to increase the interval between events, just to test if the timer can process all the code in the timer interval.

Does the thisform.currballloc property hold a reference to the desired textbox?

Hope this helps.
Ryan Hirschey
Previous
Reply
Map
View

Click here to load this message in the networking platform