Indigo Rose Software

Professional Software Development Tools

 

View Poll Results: ComboBox.SetSelected should allow us to choose whether or not to fire OnSelect event.

Voters
15. You may not vote on this poll
  • Yes, it should.

    14 93.33%
  • No, it should not.

    1 6.67%
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    May 2005
    Posts
    1,115

    Lost a day and got embarrassed

    I updated an app for a client and suddenly it got some weird bugs with list
    duplications and similar. After a whole lost day of both me and the client
    (and his temper), the issue was tracked down to a changed ComboBox behavior.

    ComboBox.SetSelected() should not fire an OnSelect event.
    There should be an action ComboBox.SelectItem() that would do that,
    or a ComboBox.SetSelected() should have a Boolean switch for it.
    The same applies to the ListBox and Tree objects.
    Never know what life is gonna throw at you.
    (Based on a true story.)

  2. #2
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244
    ComboBox.SetSelected() should not fire an OnSelect event.
    hmm ... I don't see the same behaviour!
    Something else interfering with it, somehow?
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

  3. #3
    Join Date
    May 2005
    Posts
    1,115
    No, it was a behavior change introduced with the 1005 build of
    the APMS7. When you populate the combo and then choose the
    initially selected item, the OnSelect event is fired.
    Never know what life is gonna throw at you.
    (Based on a true story.)

  4. #4
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244
    Aha! Of course. After going back to x86 from x64 couple weeks ago, i'm still using v7.1.1000.0
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

  5. #5
    Join Date
    May 2006
    Posts
    5,380
    maybe add a optional boolean argument for all "SetSelected" actions as this causes me headaches in the listbox to, it would be nice to visualy set the selected item without setting off the actions in on select
    Open your eyes to Narcissism, Don't let her destroy your life!!

  6. #6
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Quote Originally Posted by RizlaUK View Post
    maybe add a optional boolean argument for all "SetSelected" actions as this causes me headaches in the listbox to, it would be nice to visualy set the selected item without setting off the actions in on select
    agreed, it's darn annoying hehe
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  7. #7
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    Hi,

    I agree with Bule.
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> FB: facebook.com/GuideToWealth

    ----> Content Development Blog: www.AZMAN.asia

  8. #8
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    One of the primary attributes of any new release should be 'backward compatability' - I agree 100% with bule. Setting the selection and 'firing' the On Select needs to be separate actions - if for no other reason, for compatability.
    Last edited by holtgrewe; 08-19-2008 at 07:06 AM.

  9. #9
    Join Date
    May 2005
    Posts
    1,115
    The Slider plugin suffers from the same problem.
    You set up an initial position of the slider and there it goes
    firing an On PosChange event... for Heaven's sake, why?
    Never know what life is gonna throw at you.
    (Based on a true story.)

Tags for this Thread

Posting Permissions

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