Just trying to create a button, on click we move to another screen. I click 
on "Action Event" in the GUI Builder, and this generates some code, 
including:


        public void actionPerformed(com.codename1.ui.events.ActionEvent ev) 
{
            com.codename1.ui.Component sourceComponent = ev.getComponent();
            if(sourceComponent.getParent().getLeadParent() != null) {
                sourceComponent = 
sourceComponent.getParent().getLeadParent();
            }

            if(sourceComponent == gui_Text_Field_1) {
                            }
            if(sourceComponent == gui_Button_2) {
                            }
            if(sourceComponent == gui_Button_1) {
                            }
        }



As you see, I tried to attach evens to Text_Field_1, Button_1, and 
Button_2, but in all cases the if block seem to miss the call to the 
"onText_Field_1ActionEvent" or "onButton_1ActionEvent"methods that would 
actually trigger the action.

I might be wrong but I think this happened since 3.5.5, it was ok in 3.5.2.

Can you check and advise a fix please?

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/63f4c6ba-bc91-4609-b8d0-55bf8640cf55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to