New topic: 

Modal page not retaining property value

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

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        richmanscott          Post subject: Modal page not retaining 
property valuePosted: Sun Oct 14, 2012 2:58 am                         
Joined: Fri Feb 24, 2012 2:25 am
Posts: 29                I have created a page that I use as a message box.  I 
display this page modally.  When the user clicks on one of the 3 buttons, the 
Action property sets the Property ButtonPressed to the index of the button that 
was pressed.
Sub Action(index as Integer)
  ButtonPressed = index
  self.Close


When I evaluate the dlgMessage.ButtonPressed property, it always fails.

dlgMessage.ShowModal

if dlgMessage.ButtonPressed = 2 then
  Quit
else
  dlgMessage.Close
end if


Not sure what to do here.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
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