TomSmith Posted January 11, 2012 Share Posted January 11, 2012 Anything is possible, but how difficult would it be to embed guictrlcreatecheckbox inside guictrlcreatemenuitem so that the checkbox shows up next to the label of the menu control? I'm looking for a solution that does not just close out of the menu when you check an item. It would look something like: I don't care about the level of difficulty, I welcome the challenge.What are your ideas? Link to comment Share on other sites More sharing options...
Mikeman27294 Posted January 12, 2012 Share Posted January 12, 2012 How about child GUIs? It isnt truly a menu but the end user wouldnt know that. Link to comment Share on other sites More sharing options...
LarsJ Posted January 12, 2012 Share Posted January 12, 2012 You can set a check mark in the menu with GUICtrlSetState( controlID, $GUI_CHECKED ) and clear it with $GUI_UNCHECKED, so if you can live without the square boxes this is an easy solution. Mikeman27294 1 Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
KaFu Posted January 12, 2012 Share Posted January 12, 2012 (edited) I have created an example of how to add Should be "easy" to do the same with menus ... Edited January 12, 2012 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now