[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: How to resize a MessageDialog subclass and still see the button Bar

To start with, you really don't want to subclass MessageBox.  MessageBox is a widget which (like the other dialogs) mirrors directly down to a 1-1 native peer.  Your subclass will (and is) *very* platform specific.

However, if you really know what you're doing (i.e. you're familiar with how the native widget works and how to use it), you can get away with your subclass.  But you'll have to handle the native peering and calling the methods if you want to change the behavior.  I honestly wouldn't know how to do that on any platform.

Out of curiosity, why would you want to manually resize a native dialog anyway?