1. RE: Disallowing moving a window (>JUDITH)
- Posted by cklester at yahoo.com
Jul 21, 2001
This is a multi-part message in MIME format.
------=_NextPart_000_0010_01C111FC.1FA62EE0
charset="iso-8859-2"
Hurray! I'm glad somebody figured this out. ;)
-----Original Message-----
From: martin.stachon at worldonline.cz [mailto:martin.stachon at
worldonline.cz]
Sent: Saturday, July 21, 2001 9:31 AM
To: EUforum
Subject: Disallowing moving a window (>JUDITH)
------=_NextPart_000_0010_01C111FC.1FA62EE0
Content-Type: text/html;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-2">
<META content=3D"MSHTML 5.50.4616.200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><SPAN class=3D910454420-21072001><FONT face=3DArial color=3D#0000ff =
size=3D2>Hurray! I'm glad somebody figured this out. =
;)</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B>=20
martin.stachon at worldonline.cz=20
[mailto:martin.stachon at worldonline.cz]<BR><B>Sent:</B> Saturday, July =
21, 2001=20
9:31 AM<BR><B>To:</B> EUforum<BR><B>Subject:</B> Disallowing moving a =
window=20
=
TML>
------=_NextPart_000_0010_01C111FC.1FA62EE0--
2. RE: Disallowing moving a window (>JUDITH)
Hi, Martin,
I was disappointed to find that on my Windows98 SE with Win32lib.ew
version 55.1 that the ghosting still persists using your program.
What system are you using?
Judith
martin.stachon at worldonline.cz wrote:
> Hello,
> this example shows how to disallow moving a window
> (better method then setting postion back with each move,
> which causes flickering and appearing 'ghost' window - the method IDE
> uses)
> I have written it for Judith, but I think this can be useful also for
> others.
>
> <CODE :>
>
> include win32lib.ew
>
> constant
> WM_WINDOWPOSCHANGING = #0046
>
> constant
> flags = 4+4+4+4+4+4
> -- six members in the WINDOWPOS struct
> -- before flags
>
> constant mainWindow create (Window, "Test", 0, 100, 100, 100, 100, 0)
> -- testing window
>
> procedure onEvent_mainWindow(atom event, atom wParam, atom lParam)
> -- lParam is pointer to WINDOWPOS structure
> atom cur_flags
> if event = WM_WINDOWPOSCHANGING then -- Windows tell us they are about
> to move a window
> cur_flags = peek4u(lParam + flags) -- give the current flags (UInt)
> poke4(lParam+flags,or_bits(SWP_NOMOVE,cur_flags)) -- combine the current
> flags with
> end if --SWP_NOMOVE, which disallows moving
> end procedure
> onEvent[mainWindow] = routine_id("onEvent_mainWindow")
> -- register for as much windows as you want
>
> WinMain(mainWindow, Normal)
>
>
>
> </CODE>
>
> ___
> Regards,
> Martin Stachon
> martin.stachon at worldonline.cz
> http://www.webpark.cz/stachon
>
>
3. RE: Disallowing moving a window (>JUDITH)
martin.stachon at worldonline.cz wrote:
> Hello Judith,
> >
> > Hi, Martin,
> >
> > I was disappointed to find that on my Windows98 SE with Win32lib.ew
> > version 55.1 that the ghosting still persists using your program.
> >
> > What system are you using?
> >
> > Judith
>
> Win 98 + win32lib v0551.
> With this program, you cannot move a window at all,
> so it should not flicker. Did you removed the moveWindow() calls ?
>
I ran your test program. It does not flicker. But there is a ghost
window that moves. Your message said it removed the flicker *and*
ghosting.
Judith
> Martin
>
>
4. RE: Disallowing moving a window (>JUDITH)
I'm using win95 and i also get a 'ghost' window