ToolTip - Please help
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
ToolTip - Please help

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
DonB
Guest





Posted: Sun Apr 24, 2005 4:10 pm    Post subject: ToolTip - Please help Reply with quote

I developed a VBA piece of code which I call up from a button but I would
like to enhance it a bit so that when I place the cursor on the button the
tooltip will say "change to 100% size" and then when I'm at 100% I would
like the tooltip to say "change to 10% size"
Here's the code I use at present.

Public Sub CrosshairToggle()
Dim PrefsDisplay as AcadPreferencesDisplay
Set PrefsDisplay = ThisDrawing.Application.Preferences.Display
If PrefsDisplay.CursorSize = 10 then
PrefsDisplay.CursorSize = 100
Else: PrefsDisplay.CursorSize = 10
End If
End Sub

Can anyone show me how to change the tooltip

TIA

DonB

Back to top
Stuart Nathan
Guest





Posted: Mon Apr 25, 2005 4:15 pm    Post subject: Re: ToolTip - Please help Reply with quote

I normally use VB where the button can have a tooltip:-
Button.Tooltip ="100%"
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB