×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    May 2007
    Posts
    61

    Question Can we add Canvas on Form.

    i want to add a canvas on Form. is it possible. If yes then how?

  2. #2
    Registered User
    Join Date
    May 2007
    Posts
    4

    Re: Can we add Canvas on Form.

    I needed Canvas functionality on a form, too. I ended up creating my own CustomItem that I paint as needed.

    All the research I did up to the point that I built that control indicated the two (form and canvas) are mutually exclusive.

    I'll warn you now, I was so disappointed with the way the form/custom item interacted that I ended up just using a canvas and rolling my own code for everything I needed to display (including a ticker). Specifically, the way scrolling was handled really annoyed me. If a text box was expanded to two lines, my custom item would scroll off the screen - which I did not want to happen.

    Cheers

  3. #3
    Registered User
    Join Date
    Mar 2007
    Posts
    8

    Re: Can we add Canvas on Form.

    No, you cannot. If you want to use Canvas, you'll have to use it separately. You can use them together (i.e. switch between them w/ Display) but you can't add a Canvas to a Form.

  4. #4
    Registered User
    Join Date
    Aug 2007
    Posts
    1

    Re: Can we add Canvas on Form.

    Hi there, I want to switch from a Form to a Canvas and then fro m Canvas BACK to Form. Userinput is done by Softbuttons. Is there a simple implemenatation for such a purpose available ?

  5. #5
    Nokia Developer Expert
    Join Date
    Jun 2005
    Posts
    923

    Re: Can we add Canvas on Form.

    Just add Commands to both Canvas and Form screens, then respond on the commandAction() method to switch views. Almost every Forum Nokia example app has this funcionality, just take a look at some code.

    Daniel

Similar Threads

  1. Problem with Form to Canvas
    By guidopater in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2008-09-26, 11:59
  2. NokiaSupport question - Canvas - form redrawing
    By melas21 in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2006-06-09, 17:01
  3. Is possible to use canvas and Form at a time
    By lakshmanraob in forum Mobile Java General
    Replies: 1
    Last Post: 2005-10-01, 23:52
  4. how to add canvas in form in midlet
    By mathi77in in forum Mobile Java General
    Replies: 1
    Last Post: 2005-07-13, 07:50
  5. cannot jump from canvas back to form
    By prakala in forum Mobile Java General
    Replies: 1
    Last Post: 2003-05-23, 02:47

Posting Permissions

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