×

Discussion Board

Results 1 to 4 of 4

Thread: GUI Calculator

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

    GUI Calculator

    Hi,
    As a beginner a have started with a simple calculator using numeric editors.
    Now I would like to design a calculator with the given components:-
    1.One editor box - which will displays the operator ,operands and the result.

    2.Images - Need to place images like +,-,*,/,= etc in the MainPane with shadow for highlighting the selected one.

    When i select a particular image ,corresponding operation should perform.
    My question is ,how to place images in the mainpane?
    Is it possible ?.

    remesh

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: GUI Calculator

    You have to Write all custom controls . YOu can get more info about custom controls in Wiki

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    29

    Re: GUI Calculator

    Hi,
    I don't knw you u want to display operator also on the editor window.
    But neways for working on single editor u have to use the buffer for handling the data in the sequence they are entered.

    Secondly, There is no touch screen support in Series 60. So you draw thw buttons on the screen by using below written code:
    iButton12 = new(ELeave) CEikCommandButton();
    iButton12->SetContainerWindowL(*this);
    _LIT(KTest12,"+");
    iButton12->SetTextL(KTest12);
    iButton12->SetExtent(TPoint(205,120),TSize(30,25));
    and try to navigate on the button by using left, right key and as you press key ENTER on the current focusing button it should be displayed on Editor

    Hope this will help you.

    Regards
    Amrish

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    22

    Re: GUI Calculator

    Hi,

    I have some problems with drawing CEikCommandButton.

    I am alredy created Custom control derived from CCoeControl,
    which have CAknsFrameBackgroundControlContext, for drawing background,
    and RPointerArray<CEikCommandButton> iKeys - array of keys.

    In my programm background Is shown propertly, but keys - are not.
    I am followed all steps, described by amrish20...

    Did somebody know - what is the problem?

Similar Threads

  1. developing gui based calculator
    By amrish20 in forum Symbian User Interface
    Replies: 6
    Last Post: 2008-06-24, 11:00
  2. memory in calculator
    By amrish20 in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-06-19, 13:20
  3. GUI Libraries for Java ME
    By erik.hellman in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2008-04-11, 11:56
  4. Replies: 4
    Last Post: 2007-05-15, 15:03
  5. Nokia active server and Openwave's GUI extensions
    By trasatti in forum WAP Servers
    Replies: 0
    Last Post: 2002-10-15, 14:03

Posting Permissions

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