Win32Lib scroll bug

new topic     » topic index » view thread      » older message » newer message

------=_NextPart_000_0007_01C00EA7.0C413060
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

i am adding flat scrollbar to win32lib and
i found out this bug, if you want to scroll
window that is created with attached scrollbars
i don't know what to do

wmScroll( hWnd, wParam, lParam ) =20
hwnd is main window in this case, lparam is 0, what is wParam?
there is no way you can get id of scrolls, so you could use it in=20
getScroll(id),setScroll(id),...
You can just get the id of parent window of scrolls.

Any ideas how this bug could be removed?

CODE:
---------------------------------


without warning
with trace
include win32lib.ew


atom ok,mainwnd

mainwnd=3Dcreate(Window,"scroll =

WinMain(mainwnd,Normal)

------=_NextPart_000_0007_01C00EA7.0C413060
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-2" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#808000 face=3DVerdana size=3D2>i am adding flat =
scrollbar to=20
win32lib and</FONT></DIV>
<DIV><FONT color=3D#808000 face=3DVerdana size=3D2>i found out this bug, =
if you want=20
to scroll</FONT></DIV>
<DIV><FONT color=3D#808000 face=3DVerdana size=3D2>window that is =
created with=20
attached scrollbars</FONT></DIV>
<DIV><FONT color=3D#808000 face=3DVerdana size=3D2>i don't know what to=20
do</FONT></DIV>
<DIV><FONT color=3D#808000 face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#808000 face=3DVerdana size=3D2>wmScroll( hWnd, =
wParam, lParam=20
)&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT color=3D#808000 face=3DVerdana size=3D2>hwnd is main window =
in this case,=20
lparam is 0, what is wParam?</FONT></DIV>
<DIV><FONT color=3D#808000 face=3DVerdana size=3D2>there is no way you =
can get id of=20
scrolls, so you&nbsp;could use it in </FONT></DIV>
<DIV><FONT color=3D#808000 face=3DVerdana=20
<DIV><FONT color=3D#808000 face=3DVerdana size=3D2>You can just get the =
id of parent=20
window of scrolls.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#808000 face=3DVerdana size=3D2>Any ideas how this =
bug could be=20
removed?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#808000 face=3DVerdana size=3D2>CODE:</FONT></DIV>
<DIV><FONT color=3D#808000 face=3DVerdana=20
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#808000 face=3DVerdana size=3D2>without =
warning<BR>with=20
trace<BR>include win32lib.ew</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#808000 face=3DVerdana size=3D2><BR>atom =
ok,mainwnd</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#808000 face=3DVerdana =
size=3D2>mainwnd=3Dcreate(Window,"scroll=20
>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#808000 face=3DVerdana=20

------=_NextPart_000_0007_01C00EA7.0C413060--

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu