Did something change in API2.0 and the new DesktopUIControl classes and control sets? I’ve always done controls sets like this…
1.) Create your first control in the IDE and set it as a control set.
2.) In code before you create any of your new controls, close that first item in the control set.
3.) Create your new controls.
So let’s say you have a DesktopPopUpMenu call MyList and it’s a control set. In the opening event of the window, I could do this:
Sub Opening
MyList(0).Close
For i as integer = 0 to 5
Dim mList as New MyList
mList.top = 50+I*5
mList.left = 20
Next
End Sub
I have this in a Window where I do this kind of code (but more complicated) but the Control Set is not created. I can create all the controls, add them to an array, etc. but the control set is closed and goes away when I call that first Close command. This appears to be different than the old controls as code that has worked fine for well over 10 years is now broken…
Thoughts?
6 posts - 3 participants