Print Page | Close Window

How to remove text on buttons of a popup

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=15808
Printed Date: 25 June 2025 at 12:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to remove text on buttons of a popup
Posted By: rdhd
Subject: How to remove text on buttons of a popup
Date Posted: 09 December 2009 at 10:46am
I want to remove all the text from all of our button controls. To do so I am walking the ribbon and setting the style to xtpButtonIcon. I do this recursively by which I mean when I see a CXTPControlPopup I get the popup's command bar controls and do the same thing for each button control that is a member of the popup.
 
But when the popup displays, it still shows the text even though the style of each button under my popups is now set to xtpButtonIcon.
 
So in addition to setting the style to xtpButtonIcon, I also tried calling SetCaption(""). That removed the text but instead of just displaying the dropdown as a row of buttons, the popup displays with a left side where I see the icon and the right-side too, although with no text.
 
How can I remove the text and/or force the popup to only display the icons on the dropdown? That is, with no text field displayed at all.



Replies:
Posted By: Oleg
Date Posted: 09 December 2009 at 12:57pm

Hi,

You can call pPopupbar->SetPopupToolBar(TRUE) to make them looks like toolbars.


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


Posted By: rdhd
Date Posted: 09 December 2009 at 2:12pm
Thanks Oleg. Works like a charm!



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