Print Page | Close Window

Toolbar Buttons with caption

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2449
Printed Date: 01 October 2024 at 1:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolbar Buttons with caption
Posted By: Vero
Subject: Toolbar Buttons with caption
Date Posted: 24 June 2005 at 8:35am

I want to have a toolbar button with caption visible, but the user can customize this button without text.

If I do: pControlButton->SetStyle(xtpButtonIconAndCaption);

the button is shown with text but the user can not customize this button without text, because the customize menu only shows: By Default, Only Text, Image And Text, and default style is the assigned in SetStyle function.

I have try to change m_buttonCustomStyle property, to select initially a style without changing the default style, but this property is read only (if I change this property in watch window in debug mode, it works!!!!)

What can I do????

Can I make a function to change this property? How?

Thanks in advance,



-------------
Vero



Replies:
Posted By: Oleg
Date Posted: 04 July 2005 at 1:56am

Hi,

Hmm... to change m_buttonCustomStyle is not good idea too because if user select reset toolbar m_buttonCustomStyle will be reset.

User can delete caption to hide it... not good also...

We will think about this.

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Vero
Date Posted: 04 July 2005 at 3:32am

The problem is that I want to have any buttons with text by default, but I want the user can select this buttons without text too.

How can I do this???



-------------
Vero



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net