Re: Dialog with Icon [message #719032] |
Thu, 25 August 2011 20:56 |
Ivan Furnadjiev Messages: 2426 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Josh,
maybe you post your message in a wrong newsgroup. This is a newsgroup
for Rich Ajax Platform (RAP) related questions.
Best,
Ivan
On 8/25/2011 11:44 PM, Josh wrote:
> Hi,
>
> I am still seeing this issue using
> org.eclipse.jface_3.6.0.I20100601-0800.jar
>
> Here is what I am doing...
>
> public class TestDialog extends MessageDialog { public static
> boolean open(final Shell shell, final String title, final Image image) {
> final String[] dialogButtonLabels = new String[] {
> IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL };
> final TestDialog = new TestDialog(shell, title, image,
> "close?", MessageDialog.QUESTION, dialogButtonLabels, 1);
> return dialog.open() == 0;
> }
>
> private class TestDialog(final Shell parentShell, final String
> dialogTitle, final Image dialogTitleImage,
> final String dialogMessage, final int dialogImageType,
> final String[] dialogButtonLabels,
> final int defaultIndex) {
> super(parentShell, dialogTitle, dialogTitleImage,
> dialogMessage, dialogImageType, dialogButtonLabels,
> defaultIndex);
> setShellStyle(SWT.TITLE | SWT.APPLICATION_MODAL | SWT.BORDER);
> dialog.open(); }
> }
> If I add SWT.CLOSE to the setShellStyle my title image will appear.
> I am running Windows 7
> Is there something I am missing?
>
> Thanks, Josh
>
>
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03412 seconds