Is it possible to show only the 2 commands “Ok” and “Cancel” without the “Options” menu on the Alert screen? I have tried to change the command types and command priorities without success.
Is it possible to show only the 2 commands “Ok” and “Cancel” without the “Options” menu on the Alert screen? I have tried to change the command types and command priorities without success.
Hi
Try this...
Command okcmd = new Command("OK",Command.OK,1);
Command cancelCmd = new Command("cancel",Command.CANCEL,1);
Alert alert = new Alert("","hello",null,AlertType.INFO);
alert.addCommand(okcmd);
alert.addCommand(cancelCmd);
alert.setTimeout(3000);
display.setCurrent(alert);
Last edited by jini_1; 2006-08-07 at 14:46.
You might get different results on different devices as the devices quite a lot of freedom how to display the high-leve UIcommands. If you really want to dictate how your UI looks like you should use Canvas (but then you are required to implement yourself much more than when using high-level interface)
Hartti