[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
|
Hey Daniel,
Thanks for taking the time...
The reason is that i am working on a portable device that has unusual
screen size so i wanted to use MessageDialog and resize it to fit the screen
real estate and i didn't want to re-write an other class that mimic tha same
functionality. But with your info i ma guessing that i won't have the choice
but to create my own implementation.
So can i subClass Dialog or any other class to ease-up the process ?
"Daniel Spiewak" <djspiewak@xxxxxxxxx> wrote in message
news:27004025.1130347889724.JavaMail.root@xxxxxxxxxxxxxxxxxxxx
> 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?