Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » Popup child controls Collapse All
Subject Author Date
Eric LeVin Aug 12, 2009 - 3:57 AM


I am adding buttons to a popup menu in code.

The problem is that the buttons added do not have the mouse-over shading effect. Everything else, including the click event works.

What am I missing?


My code:

Dim Temp As New Elegant.Ui.Button
For I As Integer = 0 To 10
Temp = New Elegant.Ui.Button
Temp.Name = "bm" & I
Temp.Text = "Hello " & I
AddHandler Temp.Click, AddressOf BookmarkHandle

Technical Support Aug 12, 2009 - 4:27 AM

When using a popup menu in Elegant Ui, you should always use the PopupMenu class which has the Items property. You can use PopupMenu.Items.Add() method for adding controls to your popup menu.