Jump to content

Checkbox in menuitem


Blackstar
 Share

Recommended Posts

Do AutoIT have checkbox control for menuitem? Not to be mistaken as checkmark control.

I need to have checkmark for "Autostart MyApp" and after that a checkbox as " and minimize" both in $MenuItem2

$MenuItem1 = GUICtrlCreateMenu("Options")

$MenuItem2 = GUICtrlCreateMenuitem("Auto Start MyApp", $MenuItem1)

GUICtrlSetState($MenuItem2, $GUI_UNCHECKED)

Edited by Blackstar
Link to comment
Share on other sites

Do AutoIT have checkbox control for menuitem? Not to be mistaken as checkmark control.

I need to have checkmark for "Autostart MyApp" and after that a checkbox as " and minimize" both in $MenuItem2

$MenuItem1 = GUICtrlCreateMenu("Options")

$MenuItem2 = GUICtrlCreateMenuitem("Auto Start MyApp", $MenuItem1)

GUICtrlSetState($MenuItem2, $GUI_UNCHECKED)

I have no idea how to do what you've asked for, but why not have 2 menu items?

$MenuItem1 = GUICtrlCreateMenu("Options")

$MenuItem2 = GUICtrlCreateMenuitem("Auto Start MyApp Minimised", $MenuItem1)

$MenuItem3 = GUICtrlCreateMenuitem("Auto Start MyApp Maximised", $MenuItem1)

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

I have no idea how to do what you've asked for, but why not have 2 menu items?

$MenuItem1 = GUICtrlCreateMenu("Options")

$MenuItem2 = GUICtrlCreateMenuitem("Auto Start MyApp Minimised", $MenuItem1)

$MenuItem3 = GUICtrlCreateMenuitem("Auto Start MyApp Maximised", $MenuItem1)

I have thought about that before but I dont like to clutter up the menu...

Link to comment
Share on other sites

I believe Holger did those, ownerdrawn http://www.autoitscript.com/forum/index.ph...c=20967&hl=

If you use SciTE for AutoIt, run Snippet Holder while in SciTE and have an .au3 file open, check out the menu options, Config/Dock Edit Window

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...