Add object to GetList?
Posted: Wed Oct 13, 2010 4:16 am
Some ActiveX-components I use in my apps are created this way:
A sample for this is the TX Text Control, which consists of up to four or five objects (the control itself, a ruler, a button bar and so on, each of them a single control, joined using handles). There is a unique function to create this set of controls, and the function also adds a context menu and stuff like this. I'd like to keep it this way, but the control(s) don't become part of the GetList, so AUTORESIZE a.s.o. don't react on them.
Is there a simple way to add those controls to the GetList, so the DCREADER reacts on them?
Or is this the best one:
Is this safe?
Code: Select all
@ n,n DCSAY '' SIZE x,y OBJECT oControlParent
...
DCREAD GUI ... EVAL {||oControl := CreateMyControl(oControl,oControlParent)}
Is there a simple way to add those controls to the GetList, so the DCREADER reacts on them?
Or is this the best one:
Code: Select all
Aadd(GetList,DC_GetTemplate(GETLIST_ACTIVEX))
DC_GetListSet(GetList,abcnGetListOption,xOption) ... // for example: DC_GetListSet(GetList,nGETLIST_STARTROW,20)