1. Win32Lib scroll bug
- Posted by =?iso-8859-2?B?qWtvZGE=?= <tone.skoda at SIOL.NET> Aug 25, 2000
- 460 views
------=_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> </DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2>wmScroll( hWnd, = wParam, lParam=20 ) </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 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> </DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2>Any ideas how this = bug could be=20 removed?</FONT></DIV> <DIV> </DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2>CODE:</FONT></DIV> <DIV><FONT color=3D#808000 face=3DVerdana=20 <DIV> </DIV> <DIV> </DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2>without = warning<BR>with=20 trace<BR>include win32lib.ew</FONT></DIV> <DIV> </DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2><BR>atom = ok,mainwnd</FONT></DIV> <DIV> </DIV> <DIV><FONT color=3D#808000 face=3DVerdana = size=3D2>mainwnd=3Dcreate(Window,"scroll=20 > <DIV> </DIV> <DIV><FONT color=3D#808000 face=3DVerdana=20 ------=_NextPart_000_0007_01C00EA7.0C413060--
2. Re: Win32Lib scroll bug
- Posted by =?iso-8859-2?B?qWtvZGE=?= <tone.skoda at SIOL.NET> Aug 25, 2000
- 442 views
- Last edited Aug 26, 2000
------=_NextPart_000_004F_01C00ECF.669C1CA0 charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable This should be fixed, Win32Lib must be error-free, right? I have no idea how to fix it. David Cuny's suggestion to have new class ScrollWindow wouldn't solve it either, i think. only if you had window_scrollbar for *every* window would. ------=_NextPart_000_004F_01C00ECF.669C1CA0 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>This should be = fixed,</FONT></DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2>Win32Lib must be = error-free,=20 right?</FONT></DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2><FONT color=3D#808000 = face=3DVerdana=20 size=3D2>I have no idea how to fix it.</FONT></FONT></DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2><FONT color=3D#808000 = face=3DVerdana=20 size=3D2>David Cuny's suggestion to have new class</FONT></FONT></DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2>ScrollWindow wouldn't = solve it=20 either, i think.</FONT></DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2>only if you had=20 window_scrollbar</FONT></DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2>for *every* window=20 ------=_NextPart_000_004F_01C00ECF.669C1CA0--
3. Re: Win32Lib scroll bug
- Posted by Ad Rienks <kwibus at ZONNET.NL> Aug 25, 2000
- 455 views
------=_NextPart_000_0030_01C00EC5.637A9CE0 charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Hello Tone, I think the problem lies in the function getScrollPos(). This function = only returns the scroll positions for the window types ScrollBar, = TrackBar and ProgressBar. Not for the 'parent window scrollbar', AFAICT = (as far as I can tell) Ad ----- Oorspronkelijk bericht -----=20 Van: =A9koda=20 Aan: EUPHORIA at LISTSERV.MUOHIO.EDU=20 Verzonden: vrijdag 25 augustus 2000 15:13 Onderwerp: Win32Lib scroll bug 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 =20 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_0030_01C00EC5.637A9CE0 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.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT size=3D2>Hello Tone,</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>I think the problem lies in the function = getScrollPos(). This=20 function only returns the scroll positions for the window types = ScrollBar,=20 TrackBar and ProgressBar. Not for the 'parent window scrollbar', AFAICT = (as far=20 as I can tell)</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>Ad</FONT></DIV> <BLOCKQUOTE=20 style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: = 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"> <DIV style=3D"FONT: 10pt arial">----- Oorspronkelijk bericht ----- = </DIV> <DIV=20 style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = black"><B>Van:</B>=20 <A href=3D"mailto:tone.skoda at SIOL.NET" = title=3Dtone.skoda at SIOL.NET>=A9koda</A>=20 </DIV> <DIV style=3D"FONT: 10pt arial"><B>Aan:</B> <A=20 href=3D"mailto:EUPHORIA at LISTSERV.MUOHIO.EDU"=20 title=3DEUPHORIA at LISTSERV.MUOHIO.EDU>EUPHORIA at LISTSERV.MUOHIO.EDU</A> = </DIV> <DIV style=3D"FONT: 10pt arial"><B>Verzonden:</B> vrijdag 25 augustus = 2000=20 15:13</DIV> <DIV style=3D"FONT: 10pt arial"><B>Onderwerp:</B> Win32Lib scroll = bug</DIV> <DIV><BR></DIV> <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> </DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2>wmScroll( hWnd, = wParam, lParam=20 ) </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 could use it in </FONT></DIV> <DIV><FONT color=3D#808000 face=3DVerdana=20 size=3D2>getScroll(id),setScroll(id),...</FONT></DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2>You can just get = the id of parent=20 window of scrolls.</FONT></DIV> <DIV> </DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2>Any ideas how this = bug could be=20 removed?</FONT></DIV> <DIV> </DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2>CODE:</FONT></DIV> <DIV><FONT color=3D#808000 face=3DVerdana=20 size=3D2>---------------------------------</FONT></DIV> <DIV> </DIV> <DIV> </DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2>without = warning<BR>with=20 trace<BR>include win32lib.ew</FONT></DIV> <DIV> </DIV> <DIV><FONT color=3D#808000 face=3DVerdana size=3D2><BR>atom = ok,mainwnd</FONT></DIV> <DIV> </DIV> <DIV><FONT color=3D#808000 face=3DVerdana = size=3D2>mainwnd=3Dcreate(Window,"scroll=20 = > <DIV> </DIV> <DIV><FONT color=3D#808000 face=3DVerdana=20 = ------=_NextPart_000_0030_01C00EC5.637A9CE0--