1. Win32Lib.ew child windows

Hi all, im back.

I just got the newest win32lib hope'n it would fix a problem i have... It
did not. I am making my main window then trying to add 2 child windows but
it crash's when i declare the 2nd window as a child.
I tried using modal windows but i dont see how to use them correctly.
What i am trying to do is have 2 windows that both take input with the
onXXXXX statments(eg onClick[Window1] = routine_id "onClick_Window1" ) with
our having to redraw the full screen(@ 800X600 it is slow with win32lib) Can
someone point out my oversight?

TIA
J. Reeves
Grape Vine

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » topic index » view message » categorize

2. Re: Win32Lib.ew child windows

J. Reeves wrote:

> I just got the newest win32lib hope'n it would fix a
> problem i have... It did not. I am making my main
> window then trying to add 2 child windows but
> it crashes when i declare the 2nd window as a child.

Could you give a short example? At the end of this message is an example
that doesn't crash.

-- David Cuny

include win32lib.ew

constant
    W1 = create( Window, "Main", 0, Default, Default, 200, 200, 0 ),
    W2 = create( Window, "Child1", W1, Default, Default, 100, 100, 0 ),
    W3 = create( Window, "Child2", W1, Default, Default, 100, 100, 0 )

procedure onOpen_W1()
    openWindow( W2, Normal )
    openWindow( W3, Normal )
end procedure
onOpen[W1] = routine_id("onOpen_W1")

WinMain( W1, Normal )

new topic     » goto parent     » topic index » view message » categorize

3. Re: Win32Lib.ew child windows

>From: David Cuny <dcuny at LANSET.COM>
>Reply-To: Euphoria Programming for MS-DOS <EUPHORIA at LISTSERV.MUOHIO.EDU>
>To: EUPHORIA at LISTSERV.MUOHIO.EDU
>Subject: Re: Win32Lib.ew child windows
>Date: Tue, 19 Oct 1999 23:50:57 -0700
>
>J. Reeves wrote:
>
> > I just got the newest win32lib hope'n it would fix a
> > problem i have... It did not. I am making my main
> > window then trying to add 2 child windows but
> > it crashes when i declare the 2nd window as a child.
>
>Could you give a short example? At the end of this message is an example
that doesn't crash.
<snip>

I think the poplem is in the way i want the child window to act.
i used
constant
MWnd = create( Window, "Game", 0, 0, 0, 800, 600, 0 ),
W2 = create( Window, "PlayWnd", MWnd, 0, 0, 400, 600, WS_CHILD )

..as long as i didnt use WS_CHILD it worked(kinda)
I want the child windows to be confined to the inside of the MWnd window...I
am trying to take 1/2 the screen(left side) as the play window...then most
of the right as the map window with a small command (buttons) bar in the
middle....Maybe i misunderstand how a child window works(i rerad in the
win32 docs that a child window was cliped to the parent window and was not
alowed to draw out side of the parent..am i wrong?)

thanx for your help

J. Reeves
Grape Vine

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » goto parent     » topic index » view message » categorize

4. Re: Win32Lib.ew child windows

I think you want to use a MDI window for your main window.
I don't think that MDI windows are supported yet in the win32 library.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Win32Lib.ew child windows

Bernie Ryan wrote:

> I think [J. Reeves] want to use a MDI window for
> your main window. I don't think that MDI windows
> are supported yet in the win32 library.

That's correct; Win32Lib does not support MDI windows.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

6. Re: Win32Lib.ew child windows

A) is win32lib going to support them anytime soon?

B)If not where can i find a Eu lib that will let me?

C)Is there any place online i can find info on MDI window programming?(i
will look when i am done with this mail)

D)If all the above fail then "Omega Galaxy-The quest for Freedom" will be
closed until this is sloved

TIA to all

J. Reeves
Grape Vine
ICQ# 13728824l
>From: "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV>
>Reply-To: Euphoria Programming for MS-DOS <EUPHORIA at LISTSERV.MUOHIO.EDU>
>To: EUPHORIA at LISTSERV.MUOHIO.EDU
>Subject: Re: Win32Lib.ew child windows
>Date: Wed, 20 Oct 1999 17:23:11 -0700
>
>Bernie Ryan wrote:
>
> > I think [J. Reeves] want to use a MDI window for
> > your main window. I don't think that MDI windows
> > are supported yet in the win32 library.
>
>That's correct; Win32Lib does not support MDI windows.
>
>-- David Cuny
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » goto parent     » topic index » view message » categorize

7. Re: Win32Lib.ew child windows

On Wed, 20 Oct 1999 14:46:15 PDT, Grape_ Vine_ <g__vine at HOTMAIL.COM> wrote:

><snip>
>
>I think the poplem is in the way i want the child window to act.
>i used
>constant
>MWnd = create( Window, "Game", 0, 0, 0, 800, 600, 0 ),
>W2 = create( Window, "PlayWnd", MWnd, 0, 0, 400, 600, WS_CHILD )
>
>..as long as i didnt use WS_CHILD it worked(kinda)
>I want the child windows to be confined to the inside of the MWnd
window...I
>am trying to take 1/2 the screen(left side) as the play window...then most
>of the right as the map window with a small command (buttons) bar in the
>middle....Maybe i misunderstand how a child window works(i rerad in the
>win32 docs that a child window was cliped to the parent window and was not
>alowed to draw out side of the parent..am i wrong?)
>
>thanx for your help
>
>J. Reeves
>Grape Vine

Do you really need a Child Window? If I understand you well, I think a
Panel on the right and the left hand side in the main window could also
solve your problem.

 ^  |
/-\<|

new topic     » goto parent     » topic index » view message » categorize

8. Re: Win32Lib.ew child windows

J. Reeves wondered:

> is win32lib going to support [MDI] anytime soon?

Probably not. I've glanced at the code needed to create them, but I haven't
really had a chance to go over it in depth. If it's fairly trivial, I might
give it a shot.

> If not where can i find a Eu lib that will let me?

I can't answer that one.

> Is there any place online i can find info on MDI window programming?

Can't help there, either.

> If all the above fail then "Omega Galaxy-The quest for Freedom" will be
> closed until this is solved

MDI isn't the only, or often even the best approach. Perhaps splitting up
your window into several areas might be sufficient. It's not difficult to
emulate a window, either - take a look at IDE, for example. The 'child'
window that is being created in the window (and all the controls) is drawn
entirely by the application. In the initial version, even the toolbar was
emulated.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

9. Re: Win32Lib.ew child windows

From: David Cuny

>J. Reeves wondered:
>
> > is win32lib going to support [MDI] anytime soon?
>
>Probably not. I've glanced at the code needed to create them, but I haven't
>really had a chance to go over it in depth. If it's fairly trivial, I might
>give it a shot.
>
> > If not where can i find a Eu lib that will let me?
>
>I can't answer that one.
>
> > Is there any place online i can find info on MDI window programming?
>
>Can't help there, either.
>
> > If all the above fail then "Omega Galaxy-The quest for Freedom" will be
> > closed until this is solved
>
>MDI isn't the only, or often even the best approach. Perhaps splitting up
>your window into several areas might be sufficient. It's not difficult to
>emulate a window, either - take a look at IDE, for example. The 'child'
>window that is being created in the window (and all the controls) is drawn
>entirely by the application. In the initial version, even the toolbar was
>emulated.
>
>-- David Cuny
I will look at it. I was hoping to stay away from having to make my program
handle the input for a large window and decide what should be done in what
window...so that it can handle input better(i think that a if..end if loop
will slow it down to much)..

Thanks for help

J Reeves
Grape Vine

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » goto parent     » topic index » view message » categorize

10. Re: Win32Lib.ew child windows

<snip>
<
Do you really need a Child Window? If I understand you well, I think a
Panel on the right and the left hand side in the main window could also
solve your problem.
>

What do you mean by panel?(I am clueless on the most part about window types
and such)

J Reeves
Grape Vine

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » goto parent     » topic index » view message » categorize

11. Re: Win32Lib.ew child windows

I'm sorry; I just looked at the doc file of Win32Lib, but that doesn't
provide a Panel control. But I think a Group control can also be used in the
manner I'm referring to.
It is not a seperate window, but a part of the parent window, just like a
Button.
I'm a bit unsure here, for I also read that a Group in Win32Lib can not
receive events. I think that means that it can not be used for your purpose,
unless modified. I want to look into this further, but not now, I don't have
the time.
It will be next week. In the mean time, maybe someone else can help you
further.

Ad.

PS. I thought I knew a bit about the use of Win32Lib, but unfortunately for
you that is not the case. I'm into VEL more since some time.

----- Oorspronkelijk bericht -----
Van: Grape_ Vine_ <g__vine at HOTMAIL.COM>
Aan: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Verzonden: vrijdag 22 oktober 1999 6:33
Onderwerp: Re: Win32Lib.ew child windows


> <snip>
> <
> Do you really need a Child Window? If I understand you well, I think a
> Panel on the right and the left hand side in the main window could also
> solve your problem.
> >
>
> What do you mean by panel?(I am clueless on the most part about window
types
> and such)
>
> J Reeves
> Grape Vine
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com

new topic     » goto parent     » topic index » view message » categorize

12. Re: Win32Lib.ew child windows

Thanx for your time. I think i will change to Win32api by Bernard Ryan ..I
looked at it and it has better control then win32lib but more work(not
afraid of it..just dont like to do extra if its not needed..)...Again thanx
for your time and help

J Reeves
Grape Vine
ICQ# 13728824




>From: Ad Rienks <kwibus at ZONNET.NL>
>Reply-To: Euphoria Programming for MS-DOS <EUPHORIA at LISTSERV.MUOHIO.EDU>
>To: EUPHORIA at LISTSERV.MUOHIO.EDU
>Subject: Re: Win32Lib.ew child windows
>Date: Fri, 22 Oct 1999 08:50:05 +0200
>
>I'm sorry; I just looked at the doc file of Win32Lib, but that doesn't
>provide a Panel control. But I think a Group control can also be used in
>the
>manner I'm referring to.
>It is not a seperate window, but a part of the parent window, just like a
>Button.
>I'm a bit unsure here, for I also read that a Group in Win32Lib can not
>receive events. I think that means that it can not be used for your
>purpose,
>unless modified. I want to look into this further, but not now, I don't
>have
>the time.
>It will be next week. In the mean time, maybe someone else can help you
>further.
>
>Ad.
>
>PS. I thought I knew a bit about the use of Win32Lib, but unfortunately for
>you that is not the case. I'm into VEL more since some time.
>
>----- Oorspronkelijk bericht -----
>Van: Grape_ Vine_ <g__vine at HOTMAIL.COM>
>Aan: <EUPHORIA at LISTSERV.MUOHIO.EDU>
>Verzonden: vrijdag 22 oktober 1999 6:33
>Onderwerp: Re: Win32Lib.ew child windows
>
>
> > <snip>
> > <
> > Do you really need a Child Window? If I understand you well, I think a
> > Panel on the right and the left hand side in the main window could also
> > solve your problem.
> > >
> >
> > What do you mean by panel?(I am clueless on the most part about window
>types
> > and such)
> >
> > J Reeves
> > Grape Vine
> >
> > ______________________________________________________
> > Get Your Private, Free Email at http://www.hotmail.com

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu