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.
Subject |
Author |
Date |
|
Eric guez
|
Apr 13, 2010 - 3:09 AM
|
Hi !
How Can I add padding to between menubar and buttons ?
thanks !
|
|
Eric guez
|
Apr 13, 2010 - 10:28 AM
|
buttons are CExtMenuControlBar entries (CExtBarButton?)
|
|
Technical Support
|
Apr 15, 2010 - 2:15 PM
|
You should override the CExtToolControlBar::OnCreateBarCommandBtn() virtual method in your CExtMenuControlBar -derived class. Your method should be similar to original, but it should instantiate and return your own CExtBarButton -derived object. This will make the menu bar using your button objects. Your CExtBarButton -derived class should implement the CExtBarButton::CalculateLayout() virtual method which computes and returns the size of the button. Your method can invoke the parent class method and return the increased button size.
|
|
Technical Support
|
Apr 13, 2010 - 10:01 AM
|
Please explain us what are buttons in your question?
|
|