PC Review


Reply
Thread Tools Rate Thread

How do I display a ControlTip for a disabled control

 
 
Ken Soenen
Guest
Posts: n/a
 
      7th Dec 2005
Is there any way I can display the Control Tip for a control that is
disabled?

thanks


 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      7th Dec 2005
Like on a userform?

How about just having the thing that disables the control also change the
tooltip.

Option Explicit
Private Sub CommandButton2_Click()
With Me.CommandButton1
.ControlTipText = ""
.Enabled = False
End With
End Sub
Private Sub UserForm_Initialize()
With Me.CommandButton1
.ControlTipText = "hi there"
.Enabled = True
End With
End Sub

And the thing that enables the control would set the tooltip back.

Ken Soenen wrote:
>
> Is there any way I can display the Control Tip for a control that is
> disabled?
>
> thanks


--

Dave Peterson
 
Reply With Quote
 
Ken Soenen
Guest
Posts: n/a
 
      7th Dec 2005
Dave, I was thinking more in terms of the following: When I open Excel,
The icons for the UNDO, PASTE... , I assume are disabled (maybe that's a bad
assumption) and yet when you bring the cursor over them it still displays
the toolTip. I want to do that on a userform.
Thanks

"Dave Peterson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Like on a userform?
>
> How about just having the thing that disables the control also change the
> tooltip.
>
> Option Explicit
> Private Sub CommandButton2_Click()
> With Me.CommandButton1
> .ControlTipText = ""
> .Enabled = False
> End With
> End Sub
> Private Sub UserForm_Initialize()
> With Me.CommandButton1
> .ControlTipText = "hi there"
> .Enabled = True
> End With
> End Sub
>
> And the thing that enables the control would set the tooltip back.
>
> Ken Soenen wrote:
>>
>> Is there any way I can display the Control Tip for a control that is
>> disabled?
>>
>> thanks

>
> --
>
> Dave Peterson



 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      7th Dec 2005
Ooh. I got that completely backwards, huh?

Maybe you could put a frame under the control and use a tooltip that describes
the disabled control.



Ken Soenen wrote:
>
> Dave, I was thinking more in terms of the following: When I open Excel,
> The icons for the UNDO, PASTE... , I assume are disabled (maybe that's a bad
> assumption) and yet when you bring the cursor over them it still displays
> the toolTip. I want to do that on a userform.
> Thanks
>
> "Dave Peterson" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Like on a userform?
> >
> > How about just having the thing that disables the control also change the
> > tooltip.
> >
> > Option Explicit
> > Private Sub CommandButton2_Click()
> > With Me.CommandButton1
> > .ControlTipText = ""
> > .Enabled = False
> > End With
> > End Sub
> > Private Sub UserForm_Initialize()
> > With Me.CommandButton1
> > .ControlTipText = "hi there"
> > .Enabled = True
> > End With
> > End Sub
> >
> > And the thing that enables the control would set the tooltip back.
> >
> > Ken Soenen wrote:
> >>
> >> Is there any way I can display the Control Tip for a control that is
> >> disabled?
> >>
> >> thanks

> >
> > --
> >
> > Dave Peterson


--

Dave Peterson
 
Reply With Quote
 
Ken Soenen
Guest
Posts: n/a
 
      8th Dec 2005
HEY! that's a super idea. And, it even works!!

thanks Dave


"Dave Peterson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Ooh. I got that completely backwards, huh?
>
> Maybe you could put a frame under the control and use a tooltip that
> describes
> the disabled control.
>
>
>
> Ken Soenen wrote:
>>
>> Dave, I was thinking more in terms of the following: When I open Excel,
>> The icons for the UNDO, PASTE... , I assume are disabled (maybe that's a
>> bad
>> assumption) and yet when you bring the cursor over them it still displays
>> the toolTip. I want to do that on a userform.
>> Thanks
>>
>> "Dave Peterson" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > Like on a userform?
>> >
>> > How about just having the thing that disables the control also change
>> > the
>> > tooltip.
>> >
>> > Option Explicit
>> > Private Sub CommandButton2_Click()
>> > With Me.CommandButton1
>> > .ControlTipText = ""
>> > .Enabled = False
>> > End With
>> > End Sub
>> > Private Sub UserForm_Initialize()
>> > With Me.CommandButton1
>> > .ControlTipText = "hi there"
>> > .Enabled = True
>> > End With
>> > End Sub
>> >
>> > And the thing that enables the control would set the tooltip back.
>> >
>> > Ken Soenen wrote:
>> >>
>> >> Is there any way I can display the Control Tip for a control that is
>> >> disabled?
>> >>
>> >> thanks
>> >
>> > --
>> >
>> > Dave Peterson

>
> --
>
> Dave Peterson



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
display control panel disabled krumbee32 Windows XP Accessibility 1 29th Nov 2007 05:30 PM
ControlTip Text on a disabled and locked control? =?Utf-8?B?Q1c=?= Microsoft Access Forms 2 6th Oct 2006 04:04 PM
I have the Display Control Panel disabled on some machine but yet. =?Utf-8?B?S2FpIFBldGVycw==?= Windows XP Security 2 25th Aug 2006 04:33 AM
Disabled Display Control Panel and yet... =?Utf-8?B?S2FpIFBldGVycw==?= Windows XP Configuration 1 23rd Aug 2006 08:04 AM
Display Control Panel disabled Troy Windows XP General 2 23rd May 2004 12:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:07 AM.