Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor lost in Checkbox?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00259286
Message ID:
00259320
Views:
18
Whoops! Missed a line of code:

>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.DrawMode = 6
>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()
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Reply
Map
View

Click here to load this message in the networking platform