Problem with Second Toolbar
Posted: Mon Jun 28, 2004 3:17 am
My program has a main window, plus several child windows
The main window has a toolbar created with the standard PB toolbar commands - it works with no problems
But, I tried adding a second toolbar, to one of the child windows.
It seems to work properly too, except for this:
If I try to use a Path Requester, it now opens in back of the program's window. If I then click on the program window, I get the "error sound", then the requester come to the front and works properly.
This happens every time, and only for the path requester - message requesters, save file, open file, etc. all come up in front as they should.
And, it is definately caused by adding the second toolbar - removing it fixes the problem.
So, is this a known problem? Is it only allowed to have one toolbar per program? Is it a bug with the Path Requester? Am I doing something wrong?
The second toolbar is created exactly the same as the first:
Window is opened, then the toolbar is created, then the window's gadgets.
I have Windows98se, if it matters.
The main window has a toolbar created with the standard PB toolbar commands - it works with no problems
But, I tried adding a second toolbar, to one of the child windows.
It seems to work properly too, except for this:
If I try to use a Path Requester, it now opens in back of the program's window. If I then click on the program window, I get the "error sound", then the requester come to the front and works properly.
This happens every time, and only for the path requester - message requesters, save file, open file, etc. all come up in front as they should.
And, it is definately caused by adding the second toolbar - removing it fixes the problem.
So, is this a known problem? Is it only allowed to have one toolbar per program? Is it a bug with the Path Requester? Am I doing something wrong?
The second toolbar is created exactly the same as the first:
Window is opened, then the toolbar is created, then the window's gadgets.
I have Windows98se, if it matters.