[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: PocketPC look and feel
|
Hi Shaun,
Don't specify any styles within the shell constructor, and your window will
look and feel like
a typical PPC application.
cheers,
Patrik
"Shaun Jackman" <sjackman@xxxxxxxxxxxxxxxxxx> wrote in message
news:bekom9$74u$1@xxxxxxxxxxxxxx
> I open a TITLE | CLOSE shell, and setMaximized(true), but the window is
too
> short. It leaves a gap between the bottom of the window and the OS menu
bar
> (with the clock etc), allowing the previous window to show through. How
can
> I prevent this gap?
>
> The window can be moved around by dragging the title bar. On PocketPC this
> is not typical behaviour. Windows usually take the entire screen, and are
> fixed (like Maximized windows on XP). How can I avoid this?
>
> Finally, I end up with two title bars. One at the top that contains the
> title and the OK button, and another at the bottom that contains the
> Windows logo, the title, the keyboard and volume icon, and the clock (ie,
> the OS title bar). How do I obtain the native PocketPC app look and feel
> with the Windows logo, the title, the volume icon, clock, and close icon
at
> the top, and the menu bar (File, Edit, etc), and keyboard icon at the
> bottom?
>
> Thanks,
> Shaun
>
>
> final Shell shell = new Shell( display, SWT.TITLE | SWT.CLOSE);
> shell.setText( "Hello");
> Menu menu = new Menu( shell, SWT.BAR);
> shell.setMenuBar( menu);
> shell.setMaximized( true);
> shell.open();
>