Page 1 of 1
[Implemented] Suggestion For OpenSubWindow()
Posted: Tue Aug 06, 2002 1:13 am
by BackupUser
Restored from previous forum. Originally posted by VPureBasic.
Hi All,
I would like make a suggestion to Fred...
Can you add a new function as:
OpenSubWindow( #Parent,#Wnd,X,Y,W,H,Flags,Title ) ,or something like
OpenWindow( #Wnd,X,Y,W,H,Flags,Title,[Parent] )...
because we can't open a child window without using the API function SetParent_( Child,Parent ). ( Please Fred, release the default Flags for OpenWindow... Let it to 0... Let users set it as they want )
Roger Beausoleil
Posted: Tue Aug 06, 2002 4:03 am
by BackupUser
Restored from previous forum. Originally posted by Franco.
You could use El_Choni's PopupWindow Lib.
Look under Paul's resource site under 'User Libraries'.
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
Posted: Fri Aug 09, 2002 1:45 pm
by BackupUser
Restored from previous forum. Originally posted by El_Choni.
But I think he wants a child window dependant of the main, that is, confined to its boundaries and that, like MessageRequesters, doesn't allow input in the main window until it's closed, isn't it?
El_Choni
Posted: Fri Aug 09, 2002 3:25 pm
by BackupUser
Restored from previous forum. Originally posted by Franco.
Like a Dialog Window
That's easy...
You can play with 'PopUpWindow', 'GetFocus_' and 'SetFocus_'.
If the Dialog Window opens set the focus to it.
If the parent Window gets the focus set the focus to the Dialog Window.
The Dialog Window only has a X (close) button in the Title Bar.
That's it.
Hey El_Choni you could add it to your marvelous library.
Have a nice day...
Franco
Sometimes you have to go a lonely way to accomplish genius things.
Posted: Fri Aug 09, 2002 9:15 pm
by BackupUser
Restored from previous forum. Originally posted by VPureBasic.
But I think he wants a child window dependant of the main...
It's not really it! I want to open a child window with a frame around to display something from OpenGL in... like a 3D modeler views... one child window for perspective view, Top, side and Front.
Roger
Posted: Sat Aug 10, 2002 4:47 am
by BackupUser
Restored from previous forum. Originally posted by Danilo.
Thats what a CHILD Window is -
a Window in a Window.
Best thing is to use API for that,
because you can use Child-Windows
in 1 Million different ways.
PureBasic is only there for supporting
10 ways out of 1 millions, because of
its "platform compatibility" (dont laught!).
Simply use CreateWindowEx_() for your ChildWin.
Because you can use childs in soo many ways,
its needed to deal with the handle of the window -
and PB doesnt use the handles in the language.
Just write a small procedure OpenChildWindow()
and have fun.
cya,
...Danilo
(registered PureBasic user)
Posted: Sat Aug 10, 2002 11:42 am
by BackupUser
Restored from previous forum. Originally posted by VPureBasic.
PureBasic is only there for supporting
10 ways out of 1 millions, because of
its "platform compatibility" (dont laught!).
Thx All for your suggestions...
I already use API for my OpenGL 3D Library. I did this suggestion only to make in mind of Fred, that's a lack in PureBasic. And, I think that a mistake to try to write functions for "platform compatibility", because as we already can see, some functions are only for Win, or Amiga.
I think that Fred should develops PureBasic as long as he can for each platform independantly... to reatch a high level for each them.
Roger