wuruoyu Posted October 16, 2017 Share Posted October 16, 2017 (edited) I am not sure if this has been asked or done before, I can't seem to find any information in the forum. Is it possible to create MenuStrip control (from .Net Framework), the menu has a gradient background. Thank you Kindly. Edited October 16, 2017 by wuruoyu Link to comment Share on other sites More sharing options...
czardas Posted October 16, 2017 Share Posted October 16, 2017 (edited) Is this what you want? #include <GUIConstants.au3> Local $hGUI = GUICreate(" Example", 200, 80) Local $idMenu = GUICtrlCreateMenu("Menu") Local $idItem = GUICtrlCreateMenu("Item", $idMenu) Local $idSubItem1 = GUICtrlCreateMenuItem("SubItem 1", $idItem) Local $idSubItem2 = GUICtrlCreateMenuItem("SubItem 2", $idItem) GUISetState(@SW_SHOW) Local $msg While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd I'm not sure what you mean about gradient. Edited October 16, 2017 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
wuruoyu Posted October 16, 2017 Author Share Posted October 16, 2017 (edited) Hi @czardas, thank you for your quick reply. This is not what I want, please see this screenshot instead. The menustrip control created in VS .net has gradient background from left to right (dark to light), and the menu style is also different than the standard menu created in AutoIt Edited October 16, 2017 by wuruoyu czardas 1 Link to comment Share on other sites More sharing options...
czardas Posted October 16, 2017 Share Posted October 16, 2017 Ah okay, I don't know about this. operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
wuruoyu Posted October 16, 2017 Author Share Posted October 16, 2017 Is it possible to use MenuStrip control (from .Net Framework) in AutoIt Form (GUICreate) which has a gradient background from left to right (dark to light) with different style than the standard menu. I am Just thinking out loud here and have tried using @ptrex .Net CLR Framework, and created the MenuStrip with following code, but unable to create menu items, also it's created under "System.Windows.Forms" not using AutoIt GUICreate. Local $oAssembly = _CLR_LoadLibrary( "System.Windows.Forms" ) Local $MenuStrip = _CLR_CreateObject($oAssembly, "System.Windows.Forms.MenuStrip") $MenuStrip.Parent = $oForm Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted October 16, 2017 Moderators Share Posted October 16, 2017 Stick to one topic, please. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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