WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: wlodekd on August 01, 2013, 08:42:49 AM

Title: Exclusive itembox selection
Post by: wlodekd on August 01, 2013, 08:42:49 AM
Dear Forum,

I am displaying two ItemBox at the same time. Each box has list of files with different file extensions.
How to limit selection to only one box at the time i.e. when I choose item from ItemBox2 (.pdf),  ItemBox1 become inactive or opposite.

Thanks
Title: Re: Exclusive itembox selection
Post by: td on August 01, 2013, 09:34:53 AM
You will need to implement a dynamic dialog, if you haven't already. You will also need to add a case for handling event 7 (itembox item selected).  In the added case you will need to call the DialogControlState function with request coded 3 (set style) and style 2 (disabled style) on the itembox not receiving the select event.

You can find details in the help topics for the DialogControlState, DialogControlOptions, and Dialog functions.
Title: Re: Exclusive itembox selection
Post by: wlodekd on August 01, 2013, 11:48:09 AM
Thank you,

It is working great.

  Best regards Walter