×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    9

    eSWT button bug on Nokia 5800 ?

    Hello,

    I'm developing an eSWT application for Nokia 5800, it works nice so far.

    But the Button widgets (style SWT.PUSH) does not work as expected. I need to press them about 5 times, the click is always optically visible. But the listener will be notified only 1 time. The same behaviour is Nokia's eSWT ShowCase application.
    There are no problems on the emulator (S60 5th SDK 1.0), it works fine there.

    What's the problem? Is this an eSWT bug on Nokia 5800? It makes the buttons unusable :-(

    Regards, Stefan

  2. #2
    Registered User
    Join Date
    Apr 2009
    Posts
    9

    Re: eSWT button bug on Nokia 5800 ?

    Any ideas?

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    9

    Re: eSWT button bug on Nokia 5800 ?

    OK, I've found a workaround for this strange bug:
    It's possible to use a MouseListener for the button and use it's method mouseUp() for the button click. This is not the suggested method, because the API recommends the usage of the SelectionListener for the Button widgets. Anyway - it works fine...

    Bye,
    Stefan

  4. #4
    Registered User
    Join Date
    Aug 2008
    Posts
    2

    Re: eSWT button bug on Nokia 5800 ?

    Hi,

    Could I see your Button selection listener?
    Are you listening to widgetDefaultSelected instead of widgetSelected ?
    Quote from Button's API: "widgetSelected is called when the control is selected. widgetDefaultSelected is not called."

    Petru

Posting Permissions

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