Posts: 2,404
Threads: 153
Joined: Jan 2005
I just got-to ask,.. is there a way to have more than on window? :???:
e.i. Have a menu bar,. then a editor window separite from it.. :roll:
Kevin (
x.t.r.GRAPHICS)
Posts: 525
Threads: 23
Joined: Oct 2004
lookup the CreateWindowEx API :-)...
Posts: 129
Threads: 15
Joined: Mar 2005
Are talking about a toolbar type window? If so use the WS_EX_TOOLWINDOW in the style parm of the CreatWindowEx function. You can then attach a toolbar and/or menus to it.
From the Win32 api help:
Quote:Creates a tool window; that is, a window intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the taskbar or in the dialog that appears when the user presses ALT+TAB.
For the editor window you will have to create a modeless dialog window and attach your edit field to the dialog. Dialogs require a dialog procedure to handle messages. You also have to explicitly destroy the dialog when the application shuts down using DestroyWindow.
I am not really sure what you are asking for, but maybe this will get you started.
Posts: 2,404
Threads: 153
Joined: Jan 2005
^_^ Right, I didn't want to go into any of the windows GUI via FB... Doesn't matter, I figured how to do what I wanted...
Code:
SHELL "Editor.exe"
SCREEN (Whatever)
'Code for menu...
This calls a editor to work in, then returns to the code for the menu... ^_^ hehe..
(@ Mystik): Guess this sorta tips what my new ASCII editor's lay out will be like.. ^_-
Kevin (
x.t.r.GRAPHICS)
Posts: 525
Threads: 23
Joined: Oct 2004
Oh? LOL...well that sounds interesting already ;-)