Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun May 28, 2017 1:39 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: WebContainer question.
PostPosted: Mon May 27, 2013 8:19 pm 
Offline
User avatar

Joined: Wed Jul 07, 2010 2:55 pm
Posts: 720
Location: University Of Calgary, Faculty Of Medicine
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?

_________________
If at first you don't succeed... Try REALBasic and if that doesn't work try Xojo.


Top
 Profile  
 
 Post subject: Re: WebContainer question.
PostPosted: Mon May 27, 2013 9:00 pm 
Offline
User avatar

Joined: Fri Nov 10, 2006 4:10 pm
Posts: 1855
Location: Michigan, USA
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.

_________________
Windows 8 x64
Windows XP Pro SP3
Ubuntu 11.04 via Virtual Box
RS Enterprise 2012r1.1

Programming Tutorials & Free Projects: http://www.JasonTheAdams.com
"Christianity has not been tried and found wanting; it has been found difficult and not tried." - G.K. Chesterton


Top
 Profile  
 
 Post subject: Re: WebContainer question.
PostPosted: Mon May 27, 2013 9:08 pm 
Offline
User avatar

Joined: Wed Jul 07, 2010 2:55 pm
Posts: 720
Location: University Of Calgary, Faculty Of Medicine
Oh of course..
Ohh me and oo programming...

_________________
If at first you don't succeed... Try REALBasic and if that doesn't work try Xojo.


Top
 Profile  
 
 Post subject: Re: WebContainer question.
PostPosted: Mon May 27, 2013 9:34 pm 
Offline
User avatar

Joined: Fri Nov 10, 2006 4:10 pm
Posts: 1855
Location: Michigan, USA
BrianOBrien wrote:
Ohh me and oo programming...

You got this. ;)

_________________
Windows 8 x64
Windows XP Pro SP3
Ubuntu 11.04 via Virtual Box
RS Enterprise 2012r1.1

Programming Tutorials & Free Projects: http://www.JasonTheAdams.com
"Christianity has not been tried and found wanting; it has been found difficult and not tried." - G.K. Chesterton


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group