Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FancyToolTip control
Message
From
22/04/1998 15:10:38
 
 
To
22/04/1998 01:51:37
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00093226
Message ID:
00094102
Views:
28
>>I am now looking at some way of displaying the fancytool tip without using a timer -- using the mousemove() event, maybe, since the timer can sometimes interefere with the display of selected text.
>
>This means to modify the MouseMove for all your classes and, this way, you lose the flexibility of the FancyToolTip control (ie just drop it on any existing form and it will work). Don't establish connections between classes just for fancy issues.
>
Vlad:

I already have a connecting network between mousemove events on my base controls and base forms -- so I would not be creating mousemove connections just for fancytips. It may not work to address fancytips through the mousemove event -- I just though I'd try it out.

If it works, I'll let you know.

Here is my code to test whether objectundermouse if the active control on the current container

*---- begin code ----

*-- fancytooltip.IsObjectWithFocus()
* Called by timer.timer()
LOCAL loObjectUnderMouse

loObjectUnderMouse = this.oObjectUnderMouse
.IF TYPE("loObjectUnderMouse") = "O" .AND. (.NOT. ISNULL(loObjectUnderMouse))
. WITH loObjectUnderMouse
. IF UPPER(loObjectUnderMouse.baseclass) $ ;
. "CHECKBOX COLUMN COMBOBOX EDITBOX LISTBOX "+;
. "OPTIONGROUP SPINNER TEXTBOX"
. *-- Get the object's parent
. WITH loObjectUnderMouse.parent
. IF UPPER(.baseclass) $ "FORM PAGE TOOLBAR"
. *-- If the active control on the page, form or toolbar is
. * the control under the mouse, do not display the tooltop
. IF TYPE(".activeControl") = "O"
. IF .ActiveControl.name = loObjectUnderMouse.name
. RETURN .T.
. ENDIF
. ENDIF
. ENDIF
. ENDWITH
. ENDIF
. ENDWITH
ENDIF

RETURN .F.

*----------- end code ------

Regards,

JME
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform