Inputselect styles =what am i missing?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
eil
Posts: 1919
Joined: 13 Jan 2011 19:44

Inputselect styles =what am i missing?

Post by eil »

text inputselect( "Re-order and disable:", "item1|item2|item3|item4|item5","|", 1+2+16+64+512+2048+4096+32768);
With this styles i expected to be able to un-check some items, re-order them, and get results in new order without un-checked, BUT un-checked still are in results. Am i missing some styles conflict?..
Win 7 SP1 x64 100% 1366x768|1900x1080

jupe
Posts: 3569
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Inputselect styles =what am i missing?

Post by jupe »

512

eil
Posts: 1919
Joined: 13 Jan 2011 19:44

Re: Inputselect styles =what am i missing?

Post by eil »

Thank you, it worked!
Though i don't understand how, as description states:

Code: Select all

512 = Return all items in their current order.
 Of course, this is only useful when combined with style 16, otherwise the order is always the one from the original listdata.
Which sounds like "if you use style 16 for re-ordering, you need to use 512 to get newly formed list". Probably misunderstanding smth.
Win 7 SP1 x64 100% 1366x768|1900x1080

jupe
Posts: 3569
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Inputselect styles =what am i missing?

Post by jupe »

512 = Return ALL items in their current order.

It is for returning all the items in a reordered list, not checked items in a checkbox list.

eil
Posts: 1919
Joined: 13 Jan 2011 19:44

Re: Inputselect styles =what am i missing?

Post by eil »

Hm, so it's basically conflicting/negating styles 2 + 32768. At least now i know Help misleads, thanks.
Win 7 SP1 x64 100% 1366x768|1900x1080

jupe
Posts: 3569
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Inputselect styles =what am i missing?

Post by jupe »

No misleading, it doesn't negate that, forget checkbox style (which already implies all checked items will be returned), without 512 a single item would get returned, with 512 ALL items are returned.

Post Reply