Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can A ToolTip be an expression?
Message
From
07/10/2004 14:13:45
 
 
To
07/10/2004 14:03:48
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00949534
Message ID:
00949663
Views:
13
>Fabio,
>
>A very neat trick.... I never expected that to work...
>
>Walter,
>
>
>>>
>>>I have a button that opens a form that contains an edit box with a character control source. I would like to set the button's ToolTipText to the value of the cursor/field, in this case, lv_jobitem.citemdesc.
>>>
>>>Can this be included in an expression that is dynically evaluated by the button or would I have to phsically write the value of the data source to the button's tooltiptext property each time the record changed?
>>>
>>>If any one can help me, I would be very happy!
>>>
>>>Thank you,
>>>
>>>Angie
>>
>>Of course.
>>
>>PUBLIC oform1
>>
>>oform1=NEWOBJECT("form1")
>>oform1.Show
>>RETURN
>>
>>DEFINE CLASS form1 AS form
>>
>>	ShowTips = .T.
>>	Caption = "DynamicTooltips"
>>
>>	ADD OBJECT mytextbox1 AS mytextbox WITH ;
>>		Left = 76, ;
>>		Top = 56
>>
>>ENDDEFINE
>>
>>DEFINE CLASS mytextbox AS TextBox
>>	ToolTipText = "TRANSFORM(SECONDS())"
>>	PROCEDURE ToolTipText_Access
>>		RETURN EVALUATE(m.this.ToolTipText)
>>
>>ENDDEFINE
>>
Hi Walter

In fact the use of Access and Assign within the VM of VFP
it is not by design, but it is accidental
( i think that depends on who has written the C++ code ).

This is a very big limit for the possibility to render a dynamic language more dynamic.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform