Skip to content

SEO-206704-Image-Alt-Missing-WindowsForms-Hotfix #1299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: hotfix/hotfix-v30.1.37
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ To add ColorUIControl to a PopupMenu, we need to use PopupMenu, PopupControlCont
1. Drag and drop a ColorUIControl, a PopupMenu control, a PopupControlContainer control, a label control and a Panel control onto the form. Place the ColorUIControl inside the PopupControlContainer and the label inside the panel control.
2. Right click PopupMenu and select 'Add Default ParentBarItem" from the verbs.

![](FAQ_images/Overview_img240.jpeg)
![add default parent bar item in colorui.](FAQ_images/Overview_img240.jpeg)

3. In the property grid of PopupMenu, expand ParentBarItem, then add a DropDownBarItem to the ParentBarItem using BarItem Collection Editor. Also set the PopupControlContainer as the DropDownBarItem's PopupControlContainer as shown in the image below.

![](FAQ_images/Overview_img241.jpeg)
![the drop down bar item’s popup control container in colorui](FAQ_images/Overview_img241.jpeg)

4. In the MouseUp event of the Panel control call the PopupMenu.Show method.

Expand All @@ -43,6 +43,6 @@ End Sub
{% endcapture %}
{{ codesnippet1 | OrderList_Indent_Level_1 }}

![](FAQ_images/Overview_img242.jpeg)
![the panel control call the popup menu.show method in colorui.](FAQ_images/Overview_img242.jpeg)

N> You can close the popup whenever a color is selected at run time. This is done using ColorUIControl.ColorSelected Event.