×

Discussion Board

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

    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
    Location
    Mumbai, India
    Posts
    1,998

    Re: Button click handler

    Check HandleCommandL() for Control Button Action

  3. #3
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    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
    Posts
    593

    Post Re: Button click handler

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

    i have implemented this :

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

    i use Button Array like this:

    Code:
    	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*/); 
    			iButtonArray->AppendL(aButton);
    }
    Nital Shah

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    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
  •  
×