New topic in General: 

window question

rogerholmes - Sun Mar 30, 2008 9:04 pm

<http://forums.realsoftware.com/viewtopic.php?t=21540>
                                                                                
                                                                                
i am trying to create 3 forms (windows) that will be shown depending on screen 
size. each form has the same objects but only differ in wndow size and object 
size. for instance if the user screen rez is 640x480 than use MainWinS, if 
800-1024 use MainWinM if >1200 use MainWinL. 

//app.xWth is screen size

  if app.xWth<800 then
    dim rolodex as new MainWinS
    rolodex.title="Rolodex"
    rolodex.showmodal
  end
  
  if app.xWth>800  and app.xWth< 1024 then
    dim rolodex as new MainWinM
    rolodex.title="Rolodex"
    rolodex.showmodal
  end
  
  
  if app.xWth>1023 then
    dim rolodex as New MainWinL 
    rolodex.title="Rolodex"
    rolodex.showmodal
  end
  
My Problem is having a common way to access the screens like this:

var2=MainWinS(window(a)).statictext2.text

I want to access like this 
var2=Rolodex(window(a)).statictext2.text

what am i doing wrong?                                  
                                                                                
                                                                                
                                                                                
                                                                                
                                        




-- 
Over 900 classes with 18000 functions in one REALbasic plug-in. 
The Monkeybread Software Realbasic Plugin v8.1. 

&lt;http://www.monkeybreadsoftware.de/realbasic/plugins.shtml&gt;

[email protected]

Reply via email to