Professional UI Solutions
Site Map   /  Register
 
 

Forum

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 » Icon and transparant button Collapse All
Subject Author Date
Borremans Pierre Dec 16, 2009 - 8:50 AM

How to have a button (CExtBtnOnFlat or CExtButton) with an Icon and transparent border ?


 

Borremans Pierre Dec 17, 2009 - 4:23 AM

I use your CExtIconButton and it works. Thanks for you help

Technical Support Dec 16, 2009 - 10:37 AM

Such button will not be recognizable as a clickable button. But you can create your own CExtButton-derived class and override the CExtButton::_RenderImpl() virtual method in it. Your method should implement the custom painting. It should be similar to the CExtButton::_RenderImpl() method, but it should paint icon and text without paint manager invocation. Also, the CExtHyperLinkButton and CExtIconButton classes can be used as samples of how to do this.