Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multible Windows?
#1
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)

[Image: 11895-r.png]
Reply
#2
lookup the CreateWindowEx API :-)...
hen they say it can't be done, THAT's when they call me ;-).

[Image: kaffee.gif]
[Image: mystikshadows.png]

need hosting: http://www.jc-hosting.net
All about ASCII: http://www.ascii-world.com
Reply
#3
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.
Reply
#4
^_^ 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.. Big Grin (@ Mystik): Guess this sorta tips what my new ASCII editor's lay out will be like.. ^_-
Kevin (x.t.r.GRAPHICS)

[Image: 11895-r.png]
Reply
#5
Oh? LOL...well that sounds interesting already ;-)
hen they say it can't be done, THAT's when they call me ;-).

[Image: kaffee.gif]
[Image: mystikshadows.png]

need hosting: http://www.jc-hosting.net
All about ASCII: http://www.ascii-world.com
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)