Jump to content
Sign in to follow this  
hoverguy

[Dialogs] ListNBox, onLBSelChanged EVH issue

Recommended Posts

Hi everyone,

 

I have two dialogs that use ListNBox control type:

 

DIALOG_1 with onLBSelChanged event handler attached to it (which calls a function to set the quantity value to 1, let's call it LNB_SEL_CHANGED).

DIALOG_2 without onLBSelChanged event handler.

 

Both of these dialogs have two side buttons (defined in idcLeft, idcRight control tokens):

 

Left button substracts 1 from quantity calling LEFT_BTN

Right button adds 1 to quantity calling RIGHT_BTN

 

The issue is the following:

 

DIALOG_1

Quantity is 10

I click on right button

RIGHT_BTN is called

Quantity is now 11

I click on left button

LEFT_BTN is called

LNB_SEL_CHANGED is called

Quantity is now 1

 

DIALOG_2

Quantity is 10

I click on right button

RIGHT_BTN is called

Quantity is now 11

I click on left button

LEFT_BTN is called

Quantity is now 10

 

As you can see, only DIALOG_2 works as expected while in DIALOG_1 something weird happens and onLBSelChanged EVH is fired for whatever reason...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×