Product, version and build: PowerShell Studio 2016 5.3.130
32 or 64 bit version of product: 64 bits
Operating system: Windows 7
32 or 64 bit OS: 64 bits
PowerShell Version: 4.0
Hi everyone,
I'm new to PowerShell studio, there are lots of controls that can be used to build GUI form. However I'm struggling to find code examples for some of these controls.
Example:
I cannot find enough example for Menu strip or Menu button, of how I can populate the menu, and how click event can be triggered when you click on individual menu item.
Can someone please point me to the right direction.
Thanks!
Code example for controls
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Code example for controls
For help on how to use GUI controls, please refer to our info.sapien.com page:
http://info.sapien.com/index.php/guis
In PowerShell Studio, you can to go Ribbon->Help Tab->Product Support->Samples and it will take you to some sample contain in the SAPIEN Document Explorer. We are currently in the process of creating a new batch of GUI samples and we hope to release them sometime soon.
You can access Microsoft's MSDN help website directly from the designer by right-clicking the control and navigating to the help menu from the designer content menu:
You can also access our Spotlight on Controls articles with the context menu.
http://info.sapien.com/index.php/guis
In PowerShell Studio, you can to go Ribbon->Help Tab->Product Support->Samples and it will take you to some sample contain in the SAPIEN Document Explorer. We are currently in the process of creating a new batch of GUI samples and we hope to release them sometime soon.
You can access Microsoft's MSDN help website directly from the designer by right-clicking the control and navigating to the help menu from the designer content menu:
You can also access our Spotlight on Controls articles with the context menu.
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Code example for controls
When you add a menu you can add items. Just type in the name. TO access the click event double click the item in the designer and it will create the event for that item.
Be sure to review all of the items in David's post as it will save you time later and help you to approach a design more easily.
Be sure to review all of the items in David's post as it will save you time later and help you to approach a design more easily.
Re: Code example for controls
Thanks,
For the menu strip control
the http://info.sapien.com/index.php/guis link only shows ContextMenuStrip Control.
When I right click on menu strip, it does not bring up Help context menu...
There's no spot light article.
I've finally figured out how to use menu strip by looking at new form -> Menu template, with the help of WinForms Control Reference for PowerShell.
That the menu items are in the Items collection of the parent object. Thanks jvierra's comment.
For Menu Button control, if I add it and right click on it, all the help context are pointing to standard button... This appears to be a PowerShell studio specific customized control.
As for MSDN articles, I have been personally trying to avoid it as it's so dry to read, and lack of examples... I will only use it if I have exhausted all other resources.
For the menu strip control
the http://info.sapien.com/index.php/guis link only shows ContextMenuStrip Control.
When I right click on menu strip, it does not bring up Help context menu...
There's no spot light article.
I've finally figured out how to use menu strip by looking at new form -> Menu template, with the help of WinForms Control Reference for PowerShell.
That the menu items are in the Items collection of the parent object. Thanks jvierra's comment.
For Menu Button control, if I add it and right click on it, all the help context are pointing to standard button... This appears to be a PowerShell studio specific customized control.
As for MSDN articles, I have been personally trying to avoid it as it's so dry to read, and lack of examples... I will only use it if I have exhausted all other resources.
Re: Code example for controls
A MenuStrip does not have a button.
A MenuButton is a custom control set.
The top panel is a good place to search for help.
Use MSDN Help section for help with MenuStrip and other Microsoft controls that have no "Spotlight" article..
A MenuButton is a custom control set.
The top panel is a good place to search for help.
Use MSDN Help section for help with MenuStrip and other Microsoft controls that have no "Spotlight" article..