I must admit to "borrowing" some of Erel's event code to understand how Basic4ppc events work and to incorporate in this library. Apologies to him for appropriating his work - but for a good cause!
Yes, with the Door library. obj1 is a Door library ObjectPlease is there a way to get the number of items in a ToolStripComboBox?
obj1.Value = tscombo1.ControlRef
obj1.Value = obj1.GetProperty("ComboBox")
obj1.Value = obj1.GetProperty("Items")
obj1.Value = obj1.GetProperty("Count")
Msgbox(obj1.Value)
Xform.New2("Main","EMK v0.1",600,480)
XForm.HasControlBox=True
Xform.HasMaximizeBox=True
XForm.HasMinimizeBox=True
XForm.MaximumHeight=480 'If commented out these two lines, the form displays normally
XForm.MaximumWidth=600 ''If commented out these two lines, the form displays normally
XForm.WindowState=1
Yes, I know this happens but I can't really explain it. It is a .NET thing and seems to be caused by an interaction between the Maximum and Minimum Height and Width size settings which all default to 0, which means unlimited. Once you set one of them this effect appears so it is best to set them all then set the required size.So in order to make the form appear as I want, must I again, set the width and heigth of the form????? Why???
What am I missing ?
obj1.Value = tspSelect2.ControlRef
obj1.SetProperty("ToolTipText", "Select superpos")
[COLOR="DarkRed"][B]obj1.SetProperty("AutoSize", False)[/B][/COLOR]
obj1.SetProperty("Width", 60)
It's the item itself you need to specify, not its indexBut it seems that RemoveItem(n) doesn't do anything.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?