Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2008

    How make a Canvas

    Hi, i made a midlet, i would that the program start, it visualize a Canvas (in fullscreen mode) with the commands "Options","Play offline", ecc in the center of this Canvas instead how the normal commands...Is there an example or someone can help me with a code?



  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Deva, Romania

    Re: How make a Canvas


    You can check this article for the method to set the Canvas to full screen. Then I guess you have to write the command labels on the canvas using the drawString(...) method and monitor key presses to navigate through them and activate them. See this article for some information regarding commands in Canvas.

  3. #3
    Registered User
    Join Date
    Apr 2008

    Re: How make a Canvas

    Hi, thanks for this article, but unfortunately they don't help me (ok with setfullscreenmode(), i already done, but not ok with command on the canvas)...i would make a thing as http://mrmasoud.persiangig.com/menu.JPG (indicatively, obviously)..

    Thanks Regards

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Rome, Italy

    Re: How make a Canvas

    Hi Transalp,

    there is no builtin component to draw such a menu on Canvas in Java ME, so you have 2 options:

    * build it by your own, by using low-level graphic primitives
    * use one of the available Java ME UI frameworks, that usually have ready-to-use customizable graphic components (like menus, forms, etc...)


Similar Threads

  1. Replies: 4
    Last Post: 2008-09-25, 16:18
  2. How to build GCCE target
    By dsiorpaes in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2008-09-18, 06:54
  3. Cannot run command line GCCE HelloWorldBasic on Emulator
    By loginssuck in forum Symbian Tools & SDKs
    Replies: 33
    Last Post: 2008-06-21, 12:58
  4. [Compile Error]An error message after CodeWarrior was uninstalled
    By SymNLeaner in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 8
    Last Post: 2007-03-02, 00:08
  5. Failed to run the helloworldbasic example
    By incarnateX in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2006-09-29, 15:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts