- Jun 6, 2020
- 11,576
- 4,481
Hi,
I wish to change a B4XComboBox text color from black to red to indicate to the user that the field has been changed by the user.
I do this by responding to the _SelectedIndexChanged event, However if I change the field once the changed is picked up by the listener and the _SelectedIndexChanged is called, however the color doesn't change. If I make another change to the combo selection the change calls the _SelectedIndexChanged and the color DOES change.
I thought maybe it had something to do with asynch events, but putting in sleep(0)'s didn't fix the problem.
I have attached simple example that exhibits this behaviour for both the B4X Combo and standard.
I guess the B4X box is a wrapper around the standard spinner so I think the problem is with the spinner
Main Program:
I wish to change a B4XComboBox text color from black to red to indicate to the user that the field has been changed by the user.
I do this by responding to the _SelectedIndexChanged event, However if I change the field once the changed is picked up by the listener and the _SelectedIndexChanged is called, however the color doesn't change. If I make another change to the combo selection the change calls the _SelectedIndexChanged and the color DOES change.
I thought maybe it had something to do with asynch events, but putting in sleep(0)'s didn't fix the problem.
I have attached simple example that exhibits this behaviour for both the B4X Combo and standard.
I guess the B4X box is a wrapper around the standard spinner so I think the problem is with the spinner
Main Program:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید