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 General Discussion » CExtButton like CButton Collapse All
Subject Author Date
Vitaly Murashev Oct 16, 2004 - 2:22 AM

Hi.


How can I create an object of CExtButton class (or derived) which border will be looked like standart push-button, but this button should provide base functionality of CExtButton, like tooltips, popup menus, etc ... ?


Thanks.

Technical Support Oct 18, 2004 - 10:11 AM

Dear Vitaly,

The CExtButton class draws its contents in the _RenderImpl internal virtual method. You may code your own CExtButton-derived class and override this method. If you use the true value instead of the bHover variable in your version of the _RenderImpl method, you will get the button similar to the classic one (i.e. without any hover effect). Of course, the Office 2000 theme should be applied.