|
-
Sep 7th, 2000, 09:45 AM
#1
Thread Starter
Member
i have several controls and one statusbar control on one form. is it possible to show the tooltiptext of a control in statusbar when mouse is over that control ????
i dont think its possible !!!
-
Sep 7th, 2000, 10:06 AM
#2
Hyperactive Member
Code:
Private Sub cmdYourCommandButton_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
frmFormWithStatusBas.StatusBar1.Panels(PanelYouWantToolTIpToAppearIn) = cmdYourCommandButton.ToolTipText
End Sub
Hope that helps...
-
Sep 7th, 2000, 10:08 AM
#3
Frenzied Member
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Sep 7th, 2000, 10:13 AM
#4
Thread Starter
Member
OK rockies1 & Jop,
what if i have a toolbar with multiple buttons on it and i want to show the tooltiptext of a button when mouse move over it ???????????
i'll be grateful for help
-
Sep 7th, 2000, 10:17 AM
#5
Hyperactive Member
You'll need to put the MouseMove event code in for all of your buttons...
It'll be time consuming if you're not using a control array, but possibly worth it...
Hope that helps...
-
Sep 7th, 2000, 10:20 AM
#6
Thread Starter
Member
rockies1,
buttons on toolbar created using code not wizard and at design time buttons are not known!!!
-
Sep 7th, 2000, 10:27 AM
#7
Frenzied Member
Yeah that's a bit harder...
...I think you have to do a trick with X,Y
You have to check where the mousepointer is at the moment, and if it's between the X and Y cooridnates of one of the buttons and wich button.
Not sure if there's a better way to do it (probably)
Good Luck
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Sep 7th, 2000, 10:28 AM
#8
Thread Starter
Member
jop,
how can i find out the control_name under x,y ??
-
Sep 7th, 2000, 10:41 AM
#9
Hyperactive Member
Code:
Private Sub Command1_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.StatusBar1.Panels(PanelSectionName) = Command1(Index).ToolTipText
End Sub
This uses a Control Array of Command Buttons...
Make Sense?
-
Sep 7th, 2000, 10:46 AM
#10
Frenzied Member
That's what I'm figuring out 
Oh, got it!!! (damn I'm smart )
Code:
Private Sub Toolbar1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
If x > Toolbar1.Buttons(1).Left And x < Toolbar1.Buttons(1).Width Then
MsgBox "IN first button!"
End If
End sub
Do this for every button and you're done!
[Edited by Jop on 09-07-2000 at 11:54 AM]
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Sep 7th, 2000, 10:52 AM
#11
Thread Starter
Member
JOP... U R GREAT 
thanx a lot for help... it worked
-
Sep 7th, 2000, 11:11 AM
#12
Frenzied Member
anytime...
just add me if ya want! (18818940, ICQ)
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|