Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

invoking user object events that was added at runtime

Status
Not open for further replies.

furei1976

Programmer
Aug 1, 2011
24
0
0
US
Hi,

I have a main window object (win_a) with a tab control in it. On runtime, this tab control will have a tabpage (a userobject). I would like to access the user object's event. I am not sure if this will ever work so I did some testing.

On the response window close event, I added:
message.stringparm = 'E'​

On the Activate event of win_a, I added:
if message.stringparm='E' then
//code here
end if

I would like to add a code in the Activate event to invoke the user object's event. is that even possible?

thanks in advance,

furei
 
I was able to figure it out.

I just did a dot notation of the ancestor's user object.

uo_parent luo_object
long ll_tabix

if message.stringparm='E' then

luo_object[ll_tabix].cb_1(clicked!)​
end if

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top