Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » ELLIPSIS In Button Controls Collapse All
Subject Author Date
Eric Jun 21, 2011 - 8:55 AM

Hi, is there a way to have ELLIPSIS functionality in the CExtButton, CExtRadioButton, CExtCheckBox, etc...



Technical Support Jun 23, 2011 - 1:10 PM

The Buttons dialog page of the ProfUIS_Controls sample application allows you to specify different margins and alignment options inside the CExtButton control. The result text area is computed in the CExtPaintManager::PaintPushButtonText() virtual method and its overridden versions in other paint manager classes. So, the result text area may be shifted and always fits the text size. If you see ellipsis in button or check box, then something is incorrect, control size for example, right?

Eric Jun 22, 2011 - 11:36 AM

I need the 3 dots (...) to appear at the end of the button text when the button is not large enough to show all the text.

Imagine a button, push button, radio button, check button, any button that has the text "Hello World" in it.

If the button is too narrow to show all text, the text will show up like this: Hello Wo...


Technical Support Jun 22, 2011 - 11:10 AM

Which kind of ellipsis do you need?