Jump to content

Question to code example: "ComboBox with checkboxes"


Recommended Posts

I have a question relating to this code example of the user funkey:

>ComboBox with radiobuttons and checkboxes


 

The last posted code example of funkey combining a drop-down list with a "check"-option is great and it does still work with Win 7 and the current AutoIt version. The only "handicap" that bothers me is that the drop-down menu of the combo-button closes every time when one of the options is checked / set.

Unfortunately I does not understand the code completely but do you think it would be possible to modify the behavior of the menu to keep it open as long as the user clicks outside the menu (e.g.) to give the user the ability to choose multiple options? Or maybe you know a GUI UDF package that contains a similar GUI element?

I would be pleased for any tip / help.

Auto42

Link to comment
Share on other sites

  • Moderators

Auto42,

As you have already asked this question in the UDF thread, why open another thread? I have deleted the other post - please stick to just the one instance in future. ;)

M23

Edited by Melba23
Reopened thread

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

I have a question relating to this code example of the user funkey:

>ComboBox with radiobuttons and checkboxes

 

The last posted code example of funkey combining a drop-down list with a "check"-option is great and it does still work with Win 7 and the current AutoIt version. The only "handicap" that bothers me is that the drop-down menu of the combo-button closes every time when one of the options is checked / set.

Unfortunately I does not understand the code completely but do you think it would be possible to modify the behavior of the menu to keep it open as long as the user clicks outside the menu (e.g.) to give the user the ability to choose multiple options? Or maybe you know a GUI UDF package that contains a similar GUI element?

I would be pleased for any tip / help.

Auto42

In Windows, all menus are "auto-close". If the menu should be persistent, it shouldn't be a menu at all. Consider using a toolbar, a side bar, or a second gui instead.

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Link to comment
Share on other sites

The menu should not be persistent. I want to enable the combo-menu to check several options before it auto-closes. At time I can check one option and have to re-open the menu using the button again to check an other option.

But as you mentioned the less advanced method would be to create the number of checkboxes needed at runtime. This means I have to change my GUI layout as the number of checkboxes that has to fit into the gui is not predictable and exceeds the area where the boxes are currently located. The multi-check drop-down menu is maybe more a "nice to have".

Anyhow thanks for your answer.

Auto42

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...