Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User suzier's Avatar
    Join Date
    Aug 2006
    Location
    PARIS, FRANCE
    Posts
    11
    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.

  2. #2
    Regular Contributor jini_1's Avatar
    Join Date
    Jan 2006
    Posts
    90
    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.

  3. #3
    Nokia Developer Champion hartti's Avatar
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192
    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

Similar Threads

  1. MIDP applicatyion accessing a servlet not working in series 60 emulator
    By ferozekadamapuzha in forum Mobile Java General
    Replies: 11
    Last Post: 2008-05-07, 18:04
  2. Menu in Form fails to show up...
    By bjorn.rudolfsson in forum Symbian User Interface
    Replies: 14
    Last Post: 2007-04-05, 20:24
  3. Series 60 Concept Emulator (SDK Beta 0.2 Linux) not working
    By mattbee in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-06-10, 11:43
  4. Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug?
    By kauppi in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2003-04-07, 09:05
  5. Http connection problem in 6310i
    By teahola in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-03, 18:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved