[Implemented] Suggestion For OpenSubWindow()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

[Implemented] Suggestion For OpenSubWindow()

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
Post Reply