It is currently Fri Apr 18, 2014 6:50 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Multiple forms
PostPosted: Fri Feb 05, 2010 1:32 pm 
Offline
Enthusiast
Enthusiast

Joined: Sun Jan 11, 2009 1:04 am
Posts: 240
I'm designing an application whitch uses multiple forms. However when I open one form the one bellow disapears. How can I avoid that and mantain all forms on the screen?

Thank You


Top
 Profile  
 
 Post subject: Re: Multiple forms
PostPosted: Fri Feb 05, 2010 1:42 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Mar 19, 2006 1:57 pm
Posts: 4833
Location: Germany
provide a new Window-Number for each form.
you can open the new Window using #PB_Any and store the returnvalue in a LList.
also, when using multiple Windows of the same layout, create ALL Gadgets on these with #PB_Any to make sure they have unique IDs.
and better use one single EventLoop for all your Windows.

_________________
oh... and have a nice day.


Top
 Profile  
 
 Post subject: Re: Multiple forms
PostPosted: Fri Feb 05, 2010 1:45 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Mar 25, 2004 2:15 pm
Posts: 557
Location: Spain
ClueLess wrote:
I'm designing an application whitch uses multiple forms. However when I open one form the one bellow disapears. How can I avoid that and mantain all forms on the screen?

Thank You
Can be this?:
Code:
OpenWindow(0,10,10,400,200, "Hi, I'm the window one")
OpenWindow(1,380,100,400,200, "Hi, I'm the window two, Pushme")

StickyWindow(0, #True)

Repeat: Until WindowEvent()=#PB_Event_CloseWindow

_________________
PB 4.x, PureVision and EsGrid User.
Pure FileMaster as portable FileManager


Top
 Profile  
 
 Post subject: Re: Multiple forms
PostPosted: Mon Feb 08, 2010 9:00 am 
Offline
Enthusiast
Enthusiast

Joined: Sun Jan 11, 2009 1:04 am
Posts: 240
I did'n tell (did'n think it was important) that the forms are called from a menubar. The main form is OK. stays visible all the time. I call the second one and it stays on top of the main one, but when I call the third, the second disapear from the screen. What I would like is keeping all forms visible.

Thanks


Top
 Profile  
 
 Post subject: Re: Multiple forms
PostPosted: Mon Feb 08, 2010 1:40 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Mar 19, 2006 1:57 pm
Posts: 4833
Location: Germany
this is nothing immanent, but you are making a fundamental mistake.
my suspect is, you are reusing the ID of the first window.
however, without checking your code we can't tell nothing.

_________________
oh... and have a nice day.


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 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:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye