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
[Implemented] Suggestion For OpenSubWindow()
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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.
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.
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by VPureBasic.
Roger
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.But I think he wants a child window dependant of the main...
Roger
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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)
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)
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by VPureBasic.
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
Thx All for your suggestions...PureBasic is only there for supporting
10 ways out of 1 millions, because of
its "platform compatibility" (dont laught!).
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