New topic: 

WebContainer question.

<http://forums.realsoftware.com/viewtopic.php?t=47992>

         Page 1 of 1
   [ 4 posts ]                 Previous topic | Next topic          Author  
Message        BrianOBrien          Post subject: WebContainer question.Posted: 
Mon May 27, 2013 8:19 pm                                 
Joined: Wed Jul 07, 2010 2:55 pm
Posts: 719
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                Jason_Adams          Post 
subject: Re: WebContainer question.Posted: Mon May 27, 2013 9:00 pm             
                    
Joined: Fri Nov 10, 2006 4:10 pm
Posts: 1852
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                BrianOBrien          Post 
subject: Re: WebContainer question.Posted: Mon May 27, 2013 9:08 pm             
                    
Joined: Wed Jul 07, 2010 2:55 pm
Posts: 719
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                Jason_Adams          Post 
subject: Re: WebContainer question.Posted: Mon May 27, 2013 9:34 pm             
                    
Joined: Fri Nov 10, 2006 4:10 pm
Posts: 1852
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             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 4 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to