1. window question
- Posted by gwalters at sc.rr.com
Mar 14, 2002
I would like to create a window inside another window and the 'child' window
would be fixed so it can't be moved "nomove", or minimized or
maximized....Is this possible and if so how can I do it?
thanks..
george
2. Re: window question
- Posted by gwalters at sc.rr.com
Mar 14, 2002
Ok, I found 'CCS_NORESIZE, but the 'CCS_NOMOVEY' doesen't seem to work (the
CCS_NORESIZE does work).
george
----- Original Message -----
From: <gwalters at sc.rr.com>
To: "EUforum" <EUforum at topica.com>
Subject: window question
>
> I would like to create a window inside another window and the 'child'
window
> would be fixed so it can't be moved "nomove", or minimized or
> maximized....Is this possible and if so how can I do it?
>
> thanks..
>
> george
>
>
>
>
3. Re: window question
- Posted by gwalters at sc.rr.com
Mar 14, 2002
Thanks MIke.... I beleive that demo has every kind you could think of..
george
----- Original Message -----
From: "Mike" <vulcan at win.co.nz>
To: "EUforum" <EUforum at topica.com>
Subject: RE: window question
>
> Hi George,
>
> Win32lib has a demo program called Wstyles.exw which demonstrates what
> you want..
>
> Mike
>
> gwalters at sc.rr.com wrote:
> > I would like to create a window inside another window and the 'child'
> > window
> > would be fixed so it can't be moved "nomove", or minimized or
> > maximized....Is this possible and if so how can I do it?
> >
> > thanks..
> >
> > george
> >
>
>
>
>
4. Re: window question
- Posted by gwalters at sc.rr.com
Mar 14, 2002
MIke, the windows on the demo are close to what I want but not quite, Here's
what I would like....{WS_DLGFRAME,WS_CAPTION,WS_POPUP}. The caption would be
desirable but for the window to not be moved or resized
like{WS_DLGFRAME,WS_POPUP} does. When I add the WS_CAPTION, then the window
can be moved. Is there a solution to this?
george
----- Original Message -----
From: "Mike" <vulcan at win.co.nz>
To: "EUforum" <EUforum at topica.com>
Subject: RE: window question
>
> Hi George,
>
> Win32lib has a demo program called Wstyles.exw which demonstrates what
> you want..
>
> Mike
>
> gwalters at sc.rr.com wrote:
> > I would like to create a window inside another window and the 'child'
> > window
> > would be fixed so it can't be moved "nomove", or minimized or
> > maximized....Is this possible and if so how can I do it?
> >
> > thanks..
> >
> > george
> >
>
>
>
>
5. Re: window question
George,
Maybe just fake a caption for a non-movable window with a colored emulated
text label? There's some code below that someone posted or sent me that
does that, maybe it was Derek?
Looks like I could make Wstyles demo more useful if the style constants
showed up as tooltips over the respective windows or something.
Here's all the style constants I could find, doesn't look like any of them
will make a window with a caption and no-move, but I could be wrong:
WS_BORDER = #800000,
WS_CAPTION = #C00000,
WS_CHILD = #40000000,
WS_CHILDWINDOW = #40000000,
WS_CLIPCHILDREN = #2000000,
WS_CLIPSIBLINGS = #4000000,
WS_DISABLED = #8000000,
WS_DLGFRAME = #400000,
WS_GROUP = #20000,
WS_HSCROLL = #100000,
WS_ICONIC = #20000000,
WS_MAXIMIZE = #1000000,
WS_MAXIMIZEBOX = #10000,
WS_MINIMIZE = #20000000,
WS_MINIMIZEBOX = #20000,
WS_OVERLAPPED = 0,
WS_OVERLAPPEDWINDOW = #CF0000,
WS_POPUP = #80000000,
WS_POPUPWINDOW = #80880000,
WS_SIZEBOX = #40000,
WS_SYSMENU = #80000,
WS_TABSTOP = #10000,
WS_THICKFRAME = #40000,
WS_TILED = 0,
WS_TILEDWINDOW = #CF0000,
WS_VISIBLE = #10000000,
WS_VSCROLL = #200000,
-- colored "label" code:
include win32lib.ew
without warning
constant
mainWin = create(Window, "Test Coloured Labels", 0, 0, 0, 400, 300, 0),
labelArea = create(LText, "", mainWin, 5, 5, 200, 25, 0)
procedure labelArea_Paint(integer left, integer top, integer width, integer
height)
-- Draw the background
setPenColor(labelArea, Blue)
drawRectangle(labelArea, 1, left, top, width, height)
-- Draw a border
setPenColor(labelArea, BrightCyan)
drawRectangle(labelArea, 0, left, top, width, height)
drawRectangle(labelArea, 0, left+1, top+1, width-1, height-1)
-- Draw the text
setPenPos(labelArea, 3, 3)
wPuts(labelArea, "Hello, World!")
end procedure
onPaint[labelArea] = routine_id("labelArea_Paint")
-- These need only to be done once, not every paint event.
setFont(labelArea, "Courier New", 14, Normal)
setTextColor(labelArea, BrightWhite)
WinMain(mainWin, 0)
-- end code
Dan Moyer
----- Original Message -----
From: <gwalters at sc.rr.com>
To: "EUforum" <EUforum at topica.com>
Sent: Thursday, March 14, 2002 3:14 PM
Subject: Re: window question
>
> MIke, the windows on the demo are close to what I want but not quite,
Here's
> what I would like....{WS_DLGFRAME,WS_CAPTION,WS_POPUP}. The caption would
be
> desirable but for the window to not be moved or resized
> like{WS_DLGFRAME,WS_POPUP} does. When I add the WS_CAPTION, then the
window
> can be moved. Is there a solution to this?
>
>
> george
>
> ----- Original Message -----
> From: "Mike" <vulcan at win.co.nz>
> To: "EUforum" <EUforum at topica.com>
> Sent: Thursday, March 14, 2002 3:06 PM
> Subject: RE: window question
>
>
> > Hi George,
> >
> > Win32lib has a demo program called Wstyles.exw which demonstrates what
> > you want..
> >
> > Mike
> >
> > gwalters at sc.rr.com wrote:
> > > I would like to create a window inside another window and the 'child'
> > > window
> > > would be fixed so it can't be moved "nomove", or minimized or
> > > maximized....Is this possible and if so how can I do it?
> > >
> > > thanks..
> > >
> > > george
> > >
> >
>
>
>
6. window question
This is a multi-part message in MIME format.
------=_NextPart_000_0005_01C2DA5D.C68FED10
charset="iso-8859-1"
Hi,
Can anyone tell me if its possible to contain a euphoria graphics-mode =
console program in a full-size window?(not one of those half-sized =
windows that you maximize but dont really get that much bigger).And if =
possible, maybe you could tell me how to do it?
=
-J.Dube
------=_NextPart_000_0005_01C2DA5D.C68FED10
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Can anyone tell me if its possible to =
contain a=20
euphoria graphics-mode console program in a full-size window?(not one of =
those=20
half-sized windows that you maximize but dont really get that much =
bigger).And=20
if possible, maybe you could tell me how to do it?</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2> &nbs=
p;  =
; =
&=
nbsp; &n=
bsp; =20
------=_NextPart_000_0005_01C2DA5D.C68FED10--
7. Re: window question
On Sat, 22 Feb 2003 10:33:01 -0500, dubetyrant at hotmail.com wrote:
>
>Hi,
>Can anyone tell me if its possible to contain a euphoria graphics-mode =
console program in a full-size window?(not one of those half-sized =
windows that you maximize but dont really get that much bigger).And if =
possible, maybe you could tell me how to do it?
> =
-J.Dube
Is this what you mean?
include win32lib.ew
constant Full=3Dcreate(Window,"",0,0,0,Default,Default,{WS_POPUP})
WinMain(Full,Maximize)
Pete
PS You'll have to use Alt-F4 to close it.
8. Re: window question
If you mean full-size DOS box, just hit Alt+Enter to go full screen...
----- Original Message -----
From: Pete Lomax <petelomax at blueyonder.co.uk>
Subject: Re: window question
On Sat, 22 Feb 2003 10:33:01 -0500, dubetyrant at hotmail.com wrote:
>
>Hi,
>Can anyone tell me if its possible to contain a euphoria graphics-mode console
>program in a
full-size window?(not one of those half-sized windows that you maximize but dont
really get that
much bigger).And if possible, maybe you could tell me how to do it?
> -J.Dube
Is this what you mean?
include win32lib.ew
constant Full=create(Window,"",0,0,0,Default,Default,{WS_POPUP})
WinMain(Full,Maximize)
Pete
PS You'll have to use Alt-F4 to close it.
==^^===============================================================
This email was sent to: g.haberek at comcast.net
TOPICA - Start your own email discussion group. FREE!
9. Re: window question
Thanks for replying. What I meant was hard to describe. On my computer, when
I open the euphoria editor for instance, it appears inside a window which I
cannot maximize, the only way to maximize it is by ctrl-enter, then it takes
over the whole screen and makes multitasking difficult. I want to write a
program which utilizes graphics-mode 261, yet is within a window which can
be maximized, but not take the whole screen. I guess I'm asking what the
best way to perform windowed-graphics. Graphics within a window which can be
maximized to almost the entire screen, just leaving the windows taskbar on
bottom, with the traditional minimize and maximize buttons on top. I thought
maybe there was some win32 routines I could use, that would be fairly simple
to implement. You know what I mean though? One giant window which I can run
a graphical program inside, which still fits with the rest of the windows
environment.
>From: Pete Lomax <petelomax at blueyonder.co.uk>
>Reply-To: EUforum at topica.com
>To: EUforum <EUforum at topica.com>
>Subject: Re: window question
>Date: Sat, 22 Feb 2003 18:45:19 +0000
>
>
>On Sat, 22 Feb 2003 10:33:01 -0500, dubetyrant at hotmail.com wrote:
>
> >
> >Hi,
> >Can anyone tell me if its possible to contain a euphoria graphics-mode
>console program in a full-size window?(not one of those half-sized windows
>that you maximize but dont really get that much bigger).And if possible,
>maybe you could tell me how to do it?
> >
>-J.Dube
>Is this what you mean?
>
>include win32lib.ew
>constant Full=create(Window,"",0,0,0,Default,Default,{WS_POPUP})
>WinMain(Full,Maximize)
>
>Pete
>PS You'll have to use Alt-F4 to close it.
>
>==^^===============================================================
>This email was sent to: dubetyrant at hotmail.com
>
>
>TOPICA - Start your own email discussion group. FREE!
10. Re: window question
As far as I know, you're going to be stuck with one of those half-sized windws
when maximized,
since the DOS box has to be a specific size. Take for example, a 12 x 20 size
font, in a screen
that is 80 x 25 characters. the screen will be 960 x 500, so even when
maximized, the window
will still be that size (plus the size of the toolbar, etc) your best bet is to
find a decent
font size which best matches the size of your screen.
----- Original Message -----
From: <dubetyrant at hotmail.com>
Subject: Re: window question
Thanks for replying. What I meant was hard to describe. On my computer, when
I open the euphoria editor for instance, it appears inside a window which I
cannot maximize, the only way to maximize it is by ctrl-enter, then it takes
over the whole screen and makes multitasking difficult. I want to write a
program which utilizes graphics-mode 261, yet is within a window which can
be maximized, but not take the whole screen. I guess I'm asking what the
best way to perform windowed-graphics. Graphics within a window which can be
maximized to almost the entire screen, just leaving the windows taskbar on
bottom, with the traditional minimize and maximize buttons on top. I thought
maybe there was some win32 routines I could use, that would be fairly simple
to implement. You know what I mean though? One giant window which I can run
a graphical program inside, which still fits with the rest of the windows
environment.
>From: Pete Lomax <petelomax at blueyonder.co.uk>
>Reply-To: EUforum at topica.com
>To: EUforum <EUforum at topica.com>
>Subject: Re: window question
>Date: Sat, 22 Feb 2003 18:45:19 +0000
>
>
>On Sat, 22 Feb 2003 10:33:01 -0500, dubetyrant at hotmail.com wrote:
>
> >
> >Hi,
> >Can anyone tell me if its possible to contain a euphoria graphics-mode
>console program in a full-size window?(not one of those half-sized windows
>that you maximize but dont really get that much bigger).And if possible,
>maybe you could tell me how to do it?
> >
>-J.Dube
>Is this what you mean?
>
>include win32lib.ew
>constant Full=create(Window,"",0,0,0,Default,Default,{WS_POPUP})
>WinMain(Full,Maximize)
>
>Pete
>PS You'll have to use Alt-F4 to close it.
>
>==^^===============================================================
>This email was sent to: dubetyrant at hotmail.com
>
>
>TOPICA - Start your own email discussion group. FREE!
TOPICA - Start your own email discussion group. FREE!