PC Review


Reply
Thread Tools Rate Thread

Button supposed to be transparent but is not when clicked.

 
 
=?Utf-8?B?TGFOYWU=?=
Guest
Posts: n/a
 
      24th Oct 2006
I used a form control to add some buttons to my worksheet. The buttons have
been set to transparent because I cannot align the text to the upper left
corner and the small size of the buttons will cut off a portion of the text.
My problem is that when I click on the transparent button, the back color
shows up, hiding the text behind the button and will not go away until I
click on another cell that does not have a button. I need the button to stay
transparent so the user can see the text behind the button at all times.
What am I doing wrong?
 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      24th Oct 2006
AFAIK, nothing wrong, that's how it works. You also set
TakeFocusOnClick=False, but the button will not be transparent, whilst it's
being clicked.
You can assign a macro to a Shape instead, if that is suitable.

NickHK

"LaNae" <(E-Mail Removed)> wrote in message
news:AA251FBB-73E2-42C6-8142-(E-Mail Removed)...
> I used a form control to add some buttons to my worksheet. The buttons

have
> been set to transparent because I cannot align the text to the upper left
> corner and the small size of the buttons will cut off a portion of the

text.
> My problem is that when I click on the transparent button, the back color
> shows up, hiding the text behind the button and will not go away until I
> click on another cell that does not have a button. I need the button to

stay
> transparent so the user can see the text behind the button at all times.
> What am I doing wrong?



 
Reply With Quote
 
=?Utf-8?B?TGFOYWU=?=
Guest
Posts: n/a
 
      24th Oct 2006
It's fine that the button color shows while it's being clicked, I can live
with that. But is it supposed to stay highlighted? Can I get the button to
go back to being transparent after I have clicked on it? I have tried setting
the focus property to false but still no results.

Thanks so much for replying. I am new to this aspect of Excel and this is
driving me crazy.

"NickHK" wrote:

> AFAIK, nothing wrong, that's how it works. You also set
> TakeFocusOnClick=False, but the button will not be transparent, whilst it's
> being clicked.
> You can assign a macro to a Shape instead, if that is suitable.
>
> NickHK
>
> "LaNae" <(E-Mail Removed)> wrote in message
> news:AA251FBB-73E2-42C6-8142-(E-Mail Removed)...
> > I used a form control to add some buttons to my worksheet. The buttons

> have
> > been set to transparent because I cannot align the text to the upper left
> > corner and the small size of the buttons will cut off a portion of the

> text.
> > My problem is that when I click on the transparent button, the back color
> > shows up, hiding the text behind the button and will not go away until I
> > click on another cell that does not have a button. I need the button to

> stay
> > transparent so the user can see the text behind the button at all times.
> > What am I doing wrong?

>
>
>

 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      24th Oct 2006
Which version of Excel:
2002:
TakeFocusOnClick is the best you do.
2000:
TakeFocusOnClick has no effect. You lose transparency as soon as the button
is clicked.

Use a Shape and assign a macro then.

NickHK

"LaNae" <(E-Mail Removed)> wrote in message
news9368CAA-A5BA-43E1-A534-(E-Mail Removed)...
> It's fine that the button color shows while it's being clicked, I can live
> with that. But is it supposed to stay highlighted? Can I get the button

to
> go back to being transparent after I have clicked on it? I have tried

setting
> the focus property to false but still no results.
>
> Thanks so much for replying. I am new to this aspect of Excel and this is
> driving me crazy.
>
> "NickHK" wrote:
>
> > AFAIK, nothing wrong, that's how it works. You also set
> > TakeFocusOnClick=False, but the button will not be transparent, whilst

it's
> > being clicked.
> > You can assign a macro to a Shape instead, if that is suitable.
> >
> > NickHK
> >
> > "LaNae" <(E-Mail Removed)> wrote in message
> > news:AA251FBB-73E2-42C6-8142-(E-Mail Removed)...
> > > I used a form control to add some buttons to my worksheet. The

buttons
> > have
> > > been set to transparent because I cannot align the text to the upper

left
> > > corner and the small size of the buttons will cut off a portion of the

> > text.
> > > My problem is that when I click on the transparent button, the back

color
> > > shows up, hiding the text behind the button and will not go away until

I
> > > click on another cell that does not have a button. I need the button

to
> > stay
> > > transparent so the user can see the text behind the button at all

times.
> > > What am I doing wrong?

> >
> >
> >



 
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
RE: Button Text Gets Smaller When Button Clicked On Barb Reinhardt Microsoft Excel Programming 0 18th Mar 2009 01:31 PM
Inconsistent behavior of an asp.net button performing a postback when a button is clicked. Mossman Microsoft ASP .NET 0 12th Dec 2005 02:55 AM
asp:button firing and not supposed to ShowModalDialog needin4mation@gmail.com Microsoft ASP .NET 3 5th Oct 2005 11:41 PM
Pause macro, add form button to sheet, continue macro when button clicked! Flystar Microsoft Excel Programming 1 26th May 2004 09:45 AM
Button Collection for Toolbar WebControl - Determinine which button was clicked Jim Mitchell Microsoft Dot NET 0 12th Jul 2003 02:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:46 PM.