BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ToolButton question

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Marco
Guest





PostPosted: Mon Apr 19, 2004 3:19 pm    Post subject: ToolButton question Reply with quote




Hi everyone.

Is possible to disable the popup's row in a toolbutton if it hasn't a popup menu?---------
Quote:
| |
|^|
| |
---------

Thanks in advanced.


Back to top
JD
Guest





PostPosted: Mon Apr 19, 2004 7:29 pm    Post subject: Re: ToolButton question Reply with quote




"Marco" <mliorni (AT) libero (DOT) it> wrote:
Quote:
Is possible to disable the popup's row in a toolbutton if it
hasn't a popup menu?

Please elaborate.

~ JD


Back to top
Marco
Guest





PostPosted: Tue Apr 20, 2004 7:07 am    Post subject: Re: ToolButton question Reply with quote




Quote:

Please elaborate.

~ JD


I've a toolbar with twelve toolbutton in dropdown style, some of this toolbuttons have a popup menu associated. I'd like to show the button's arrow like disable text (color = inactivetext) if the toolbutton's haven't a popup menu associated.

I hope i'm clearly.

Best regards.

Back to top
JD
Guest





PostPosted: Tue Apr 20, 2004 9:09 am    Post subject: Re: ToolButton question Reply with quote


"Marco" <mliorni (AT) libero (DOT) it> wrote:
Quote:


Please wrap your lines when you post. Your editor may visually wrap them but you need to enter a hard return at the end of each line or the post will look like this does.

Quote:
[...] I'd like to show the button's arrow like disable text
(color = inactivetext) if the toolbutton's haven't a popup
menu associated.

The only way that I could do it was to disable the entire button. Another option would be to add an image to the ToolBar's ImageList with the same glyph but also with the grayed down arrow. Then change the buttons ImageIndex and set it's style to tbsButton so that it looks like tbsDropDown with a disabled dropdown.

~ JD


Back to top
Marco mliornilibero.it
Guest





PostPosted: Tue Apr 20, 2004 9:47 am    Post subject: Re: ToolButton question Reply with quote


Quote:
The only way that I could do it was to disable the entire >button. Another option would be to add an image to the >ToolBar's ImageList with the same glyph but also with the >grayed down arrow. Then change the buttons ImageIndex and set >it's style to tbsButton so that it looks like tbsDropDown >with a disabled dropdown.

~ JD


Sorry.

Thanks JD.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.