×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    38

    Smile i am new for gui design please help me how to place a image on container

    hi every body,
    this is narendra i am new to ui related programming in symbian i want to know how to load a image depending on key events for example i have a custom button in my background first it is with image1 when i pressed downbutton i have to replace that image with another image .................... please help in this
    M.Narendra
    narendra.ajel@gmail.com

  2. #2
    Registered User
    Join Date
    Aug 2008
    Posts
    30

    Smile Re: i am new for gui design please help me how to place a image on container

    YOu can create a member variable, say,
    TBool iToggle;
    and set it to 0 in ConstructL(). In OfferKeyEventL(), toggle this variable to 0 and 1, everytime you press downbutton or upbutton. And once you set this variable, call DrawNow() function. In Draw function, draw the images using if else statement based on iToggle value.
    eg:
    if(iToggle)
    // draw image1
    else
    // draw image2

  3. #3
    Regular Contributor
    Join Date
    Jun 2008
    Posts
    108

    Re: i am new for gui design please help me how to place a image on container

    hi ,
    try this

    _LIT(KMBMFile , "C:\\RESOURCE\\APPS\\MyApp.mbm" );
    CFbsBitmap* iBitmap = new (ELeave) CFbsBitmap;
    TInt retval = iBitmap->Load(KMBMFile, 0);
    gc.BitBlt(Rect().iTl, iBitmap);

    in the draw method

Similar Threads

  1. Image Transparency issue - Help me out ....
    By tomcruise in forum Mobile Java Games
    Replies: 2
    Last Post: 2008-05-31, 15:40
  2. Image - byte[] - String (re)conversion
    By lampz in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2008-02-19, 11:47
  3. Image Problem
    By Spider_Eg in forum Mobile Java General
    Replies: 2
    Last Post: 2007-01-30, 13:52
  4. saving jpeg image on grid list
    By flicker82 in forum Symbian
    Replies: 0
    Last Post: 2005-01-21, 04:22
  5. How to place and Image in the Image folder of 7210 emulator
    By balagopalks in forum Mobile Java General
    Replies: 2
    Last Post: 2004-09-10, 13:11

Posting Permissions

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