Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    May 2010

    Talking Button click handler

    hello guys,

    what is the name of event handler in Button in GUI app with UI designer

    I dragged it but I did not find any click handler in event window

  2. #2
    Registered User
    Join Date
    Jun 2007
    Mumbai, India

    Re: Button click handler

    Check HandleCommandL() for Control Button Action

  3. #3
    Super Contributor
    Join Date
    Jul 2008

    Re: Button click handler

    Right-click to open the Events window on the UI editor. Then, select the button.

    You should see the methods there.
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  4. #4
    Super Contributor
    Join Date
    Jun 2008

    Post Re: Button click handler

    my application has an array of buttons...
    how to determine which button is clicked???

    i have implemented this :

    void CButtonImageDemo2Container::HandleControlEventL( CCoeControl* aControl, 
                                                      TCoeEvent aEventType ) 
            switch ( aEventType ) 
                case EEventStateChanged:  //
                	// Here i get Button Click Event
    but how to determine which button is pressed???

    i use Button Array like this:

    	iButtonArray = new (ELeave) CArrayPtrFlat<CAknButton>(iCount+1);
    	for(int i = 0;i<iCount ;i++)
    			CAknButton *aButton = static_cast< CAknButton* >
    							( EikControlFactory::CreateByTypeL( EAknCtButton ).iControl );
    			aButton->ConstructFromResourceL ( R_BUTTON_IMAGE_DEMO2_CONTAINER_BUTTON1 );
    			aButton->SetContainerWindowL ( *this );
    			aButton->SetRect ( TRect ( 
    										TPoint ( (i*10)+ 16, 19 ) , 
    										TSize ( 16, 16 ) )  
    										 ) ; 
    			aButton->SetObserver( this /*MCoeControlObserver*/); 
    Nital Shah

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: Button click handler

    You may want to check aControl.

Similar Threads

  1. On button click, send value to textfield
    By LWCARAB in forum Symbian
    Replies: 2
    Last Post: 2010-03-18, 13:20
  2. click on button and radio button
    By videoFx in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2009-10-22, 23:29
  3. Click events for button
    By abhimanyu1 in forum Symbian
    Replies: 4
    Last Post: 2009-07-28, 08:39
  4. How to handle events (e.g. button click)
    By ViRuSTriNiTy in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-01-02, 14:12
  5. emulate button click
    By shadow-2005 in forum Symbian
    Replies: 3
    Last Post: 2007-03-19, 09:23

Posting Permissions

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