Real Software Forums
http://forums.realsoftware.com/

WebContainer question.
http://forums.realsoftware.com/viewtopic.php?f=23&t=47992
Page 1 of 1

Author:  BrianOBrien [ Mon May 27, 2013 8:19 pm ]
Post subject:  WebContainer question.

I have an Ok and Cancel button on my WebContainer.
The WebContainer is shown/hidden by setting the Visible Property.

When the user presses a button on the web page the WebContainer's visible property is set to true.
But how do I know when the button has been pressed?
I capture the event OkButton / CancelButton in the class.. I'm just not sure how I would send an event to the main web page.
Can I just call WebPage1.MyAction or something?

Author:  Jason_Adams [ Mon May 27, 2013 9:00 pm ]
Post subject:  Re: WebContainer question.

I usually use an Event Definition for this. When the user presses the OK button, runs some WebContainer code and call RaiseEvent OkPushed. Then, within your WebPage, add code to the WebContainer.OkPushed event.

Hope this helps! :)

P.S. This doesn't really belong in this section. WebControlSDK is for the SDK created for turning javascript controls into WE controls.

Author:  BrianOBrien [ Mon May 27, 2013 9:08 pm ]
Post subject:  Re: WebContainer question.

Oh of course..
Ohh me and oo programming...

Author:  Jason_Adams [ Mon May 27, 2013 9:34 pm ]
Post subject:  Re: WebContainer question.

BrianOBrien wrote:
Ohh me and oo programming...

You got this. ;)

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/