Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor lost in Checkbox?
Message
From
30/08/1999 14:49:18
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00259286
Message ID:
00259319
Views:
20
That's pretty cool. You know, I tried the obvious of putting a shape around the checkbox and turning it's visible property on and off in the checkbox got and lost focus but that didn't appear to work. Hence my container idea.

One of my rules of thumb for VFP: If it don't work the way you want it, throw it into a container and do it from there.


>You can also eliminate the overhead of the shape object by using the form's box() method to highlight the checkbox by using following timer.timer() code:
>
>oObject = thisform.check1
>thisform.drawWidth=2
>thisform.CurrentX = oObject.Left - 1
>thisform.CurrentY = oObject.Top + 5
>thisform.box(oObject.Left + 13, oObject.Top + 20)
>
>>Good idea. I Think I'll implement that.
>>
>>>You can also make this effect more 'cursor-like' by making it blink with a >timer. Try adding a timer with a 500 interval with the following code in the >timer event:
>>
>>>thisform.shape1.visible = ! thisform.shape1.visible
>>
>>>Then enable the timer on gotfocus(), and disable on lostfocus()
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform