[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: How to add a Minimize button for a MessageDialog
|
- From: sma_r@xxxxxxxxxxx (Syed Rizvi)
- Date: Sat, 19 Apr 2003 05:43:13 +0000 (UTC)
- Newsgroups: eclipse.tools
- Organization: http://www.eclipse.org
- User-agent: NewsPortal 0.23
I used the following method and got the result but now I am getting all
three buttons(MIN,MAX,CLOSE) I need just MIN,CLOSE.
private int shellstyle = (SWT.MIN);
protected void setShellStyle(int newShellStyle) {
shellstyle = newShellStyle;
}
Thanks
Syed
Knut Radloff wrote:
> "Syed Rizvi" <sma_r@xxxxxxxxxxx> wrote in message
news:b7mpfg$jtc$1@xxxxxxxxxxxxxxxx
> > Hi all,
> >
> > I like to know how can I add a minimize button to a MesasgeDialog.I have
> > searched the archives and found out that createShell has the method
> > setShellStyle but I am not sure if that is what I should use for this.
> setShellStyle is it but you don't need to override the createShell method.
> Just subclass from MessageDialog and set the shell styles in the
constructor. Searching for senders of setShellStyle will show some
> examples. For instance ResizableDialog.
> Knut