Page 1 of 1

say State of ComboBoxGadget

Posted: Sat Sep 16, 2017 1:04 am
by gurj
say State of ComboBoxGadget
now, pb is:
1) if not use #PB_ComboBox_Editable, EditForm will can't edit, this is ok.
2) if use #PB_ComboBox_Editable and State>-1,EditForm will = Item(State) Until EditForm edited and let them unequal, then State=-1
question: when them equal at State>-1, if Remove Item(State), EditForm will = ""
=============
I think, should:
EditForm always equal Item(-1), if State>-1 and Remove Item(State), EditForm will not changed.

but, must prescribed:
if selected Item of list, must let EditForm's text= Item(State)'s text,
and State will >-1 ,despite EditForm get active.
Until EditForm edited and let them unequal, then State=-1,
and State always=-1, despite EditForm edited and let EditForm's text= Item(lateState)'s text,
Until selected Item of list, then State>-1

Re: say State of ComboBoxGadget

Posted: Sat Sep 16, 2017 1:17 am
by gurj
main profit is: GetGadgetText(ComboBoxGadget) always= GetGadgetItemText(ComboBoxGadget,-1)
each State all will is autonomous

Re: say State of ComboBoxGadget

Posted: Sat Sep 16, 2017 11:14 am
by gurj
additional: SetGadgetState() always= go selected Item[include -1] of list
if State>-1, then SetGadgetState(ComboBoxGadget,-1), EditForm will not changed.

Re: say State of ComboBoxGadget

Posted: Sat Sep 16, 2017 12:20 pm
by gurj
AddGadgetItem(ComboBoxG,Item,string)=Insert one newItem before Item[include -1]
'AddGadgetItem()' should change to 'InsertGadgetItem()'

Re: say State of ComboBoxGadget

Posted: Sat Sep 16, 2017 2:22 pm
by IdeasVacuum
Hi gurj

You have put a lot of effort into the description of your request but I find it difficult to understand...... perhaps a working code snippet that reports the gadget state for the different scenarios might help?

Re: say State of ComboBoxGadget

Posted: Sat Sep 16, 2017 5:32 pm
by gurj
hi, IdeasVacuum , thanks for your point out !

i think i already say more bad words , i should say a few . :|

thanks you again!