Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2005

    Angry "Takes enter key" in Carbide UI Designer

    Using the UI Designer in Carbide.c++ I dropped a popup field text on a form. To select an entry from the list, the user has to use the left and right cursor keys, if he knows, that there are other entries. Setting the property "Takes enter key" allows to open the full list with the enter key, but how many phones have an enter key? Pressing the joystick doesn't work! How can I change the behavior of this controls so that it is usable on other phones than an E61 or E70?

    By the way, how do I have to change my form code when pressing the right soft key should switch to another form instead of closing the app? The automatically inserted comment
    // The 'exit application on close' property automatically adds code to exit the 
    // application when the right soft key is pressed. If this property is set to false, 
    // and AddToStackL has been called on the Form object (e.g., it was not shown as a dialog), 
    // code must be added manually to avoid a panic when exiting the application.
    isn't very useful, when there is no hint, which code is missing. Overall, documentation in my opinion is very poor, remembers me to Microsoft documentation twenty years ago. Sorry, if this sounds a bit harsh, but even after programming for some years for Symbian I can't find a straight line. It looks as many programmers has contributed code, but everybody of them has tried to go another way then the other.
    Last edited by Ishibo San; 2006-11-15 at 14:48.

  2. #2
    Regular Contributor
    Join Date
    Jun 2004

    Re: "Takes enter key" in Carbide UI Designer

    Ishibo San,

    If you want the popup field text item to expand when the user presses the selection key then set both the "takes enter key" and "offer all hot keys" properties to true.

    Regarding switching to another form when the right soft key is pressed, the code depends on whether you're switching to another Avkon view, a dialog, container, etc.

    If your other form uses the Avkon view architecture then you can do something like:

    For EMyViewId use the view ID generated into your application's .hrh file. There's an enum containing the view IDs there.

    Dan Podwall

  3. #3
    Registered User
    Join Date
    Jul 2005

    Re: "Takes enter key" in Carbide UI Designer

    Hello Dan,

    thank you very much for your quick response. Setting "offer all hot keys" works fine for me.

    Regarding the view switching, calling ActivateLocalViewL was not the problem (I've done this already), but pressing the right hand softkey crashes the app. Now I let OkToExitL return EFalse and all is fine.

    Again, thank you very much for your help.

Similar Threads

  1. regarding multiple views using carbide UI designer
    By chirumar in forum Symbian User Interface
    Replies: 3
    Last Post: 2007-04-13, 07:55
  2. Bug report for Carbide C++: wrong code generated by ui designer
    By svdwal in forum Tools and SDK Feedback (Closed)
    Replies: 0
    Last Post: 2006-10-20, 15:52
  3. regarding selection list box and form using carbide ui designer
    By chirumar in forum Symbian User Interface
    Replies: 7
    Last Post: 2006-10-06, 14:46
  4. Import\Export Project Problem in Carbide
    By mohsin.sohail in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2006-07-17, 20:20
  5. Audio Input Stream on N80
    By tkaihock in forum Symbian Media (Closed)
    Replies: 9
    Last Post: 2006-06-30, 09:15

Posting Permissions

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