1. RE: [Win32Lib] scroll a window with text?
- Posted by Derek Parnell <Derek.Parnell at SYD.RABOBANK.COM> Jun 24, 2002
- 406 views
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C21BC8.BFA47330 charset=iso-8859-1 I'm just guessing here, but you might be able to use bitBlt() to shift the window's image of the existing text around then write the new text line to the top or bottom as required. Special attention might be needed if the text doesn't fill the current window. > -----Original Message----- > From: Dan Moyer [mailto:DANIELMOYER at prodigy.net] > Sent: Monday, 24 June 2002 23:49 > To: EUforum > Subject: [Win32Lib] scroll a window with text? > > > > If I have a window with scroll bars, and have "filled" the > window with text, > is there a way to make that text *scroll* via the scroll > bars??? I mean > other than re-writing the text from a new top line as is done > in example 12, > colored text & re-drawing the window? > > Dan Moyer > > > > ================================================================== De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt wordt u verzocht de inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren. ================================================================== The information contained in this message may be confidential and is intended to be exclusively for the addressee. Should you receive this message unintentionally, please do not use the contents herein and notify the sender immediately by return e-mail. ================================================================== ------_=_NextPart_000_01C21BC8.BFA47330 Content-Type: application/ms-tnef
2. RE: [Win32Lib] scroll a window with text?
- Posted by Derek Parnell <Derek.Parnell at SYD.RABOBANK.COM> Jun 24, 2002
- 384 views
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C21BDF.BD03B930 charset=iso-8859-1 Dan, notice that George is using a List to hold the text and not the Window surface. > -----Original Message----- > From: Dan Moyer [mailto:DANIELMOYER at prodigy.net] > Subject: Re: [Win32Lib] scroll a window with text? > > > > George, > > I'd neglected to notice that one, but I'd already found & > used WS_VSCROLL & > WS_HSCROLL, and all either WS_SCROLLBARS or the two h-v does > for me is put > scrollbars on the window, it doesn't "automatically" cause > scrolling of text > in the window on use. > > Do you get actual text scrolling?? > > Dan > > > ----- Original Message ----- > From: "George Walters" <gwalters at sc.rr.com> > To: "EUforum" <EUforum at topica.com> > Sent: Monday, June 24, 2002 8:56 AM > Subject: Re: [Win32Lib] scroll a window with text? > > > > Dan, this does it for me... > > > > idList = > > > create(List,"",mainWindow,0,0,screenWidth-2*widthFrame,sh-85,W > S_SCROLLBARS), > > > > george > > ----- Original Message ----- > > From: "Dan Moyer" <DANIELMOYER at prodigy.net> > > To: "EUforum" <EUforum at topica.com> > > Sent: Monday, June 24, 2002 9:46 AM > > Subject: [Win32Lib] scroll a window with text? > > > > > > > If I have a window with scroll bars, and have "filled" > the window with > > text, > > > is there a way to make that text *scroll* via the scroll > bars??? I mean > > > other than re-writing the text from a new top line as is > done in example > > 12, > > > colored text & re-drawing the window? > > > > > > Dan Moyer > > > > > > > > > ================================================================== De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt wordt u verzocht de inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren. ================================================================== The information contained in this message may be confidential and is intended to be exclusively for the addressee. Should you receive this message unintentionally, please do not use the contents herein and notify the sender immediately by return e-mail. ================================================================== ------_=_NextPart_000_01C21BDF.BD03B930 Content-Type: application/ms-tnef
3. RE: [Win32Lib] scroll a window with text?
- Posted by Larry Mears <LarryMears at hotmail.com> Jun 25, 2002
- 390 views
Dan Moyer wrote: > If I have a window with scroll bars, and have "filled" the window with > text, > is there a way to make that text *scroll* via the scroll bars??? I mean > other than re-writing the text from a new top line as is done in example > 12, > colored text & re-drawing the window? > > Dan Moyer > > Go to the archive and type music database. Inside my program you will find a function called AutoText. I put a lot of options in it because I figured I would use it again sometime. Larry Mears
4. RE: [Win32Lib] scroll a window with text?
- Posted by Derek Parnell <Derek.Parnell at SYD.RABOBANK.COM> Jun 27, 2002
- 376 views
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C21DB8.C422FB10 charset=iso-8859-1 Dan, you really must read your private mail first. I've answered all this stuff in a mail I sent to you about 6 hours ago. > -----Original Message----- > From: Dan Moyer [mailto:DANIELMOYER at prodigy.net] > Subject: Re: [Win32Lib] scroll a window with text? > > > > Could the person who contributed the procedure > "setWindowScrollRange" to Derek for Win32Lib > (or anyone else who might know), > explain what exactly to use for the "pageSize" parameter? > > The "setWindowScrollRange" procedure is defined thusly: > global procedure setWindowScrollRange(integer id, integer typeScroll, > integer min, > integer max, atom pageSize) > -- Martin : sets scroll range for window scrolbar > -- type idenitifies scrollbar - > -- SB_HORZ : window horizontal sb > -- SB_VERT : window vertical sb > -- SB_CTL : control (same as setScrollRange) > -- (maybe replace this with setHScrollRange, etc.) > -- pageSize specifies size of one page (allows set size > of proportional > scrollbar) > > > Alternatively, is it possible to use "global procedure > setScrollRange" to > set the scrollbars' ranges for a window? It looks like the > code for the > procedure makes it possible, but I don't know how to involve > & distinguish > horizontal & vertical scrollbars; I see "lMsgCode = SB_VERT" > & its sibling > in the code for "if the control is a window", but I can't see > how they are > presented or made available to the procedure. > > tia, > Dan Moyer > > > > ================================================================== De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt wordt u verzocht de inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren. ================================================================== The information contained in this message may be confidential and is intended to be exclusively for the addressee. Should you receive this message unintentionally, please do not use the contents herein and notify the sender immediately by return e-mail. ================================================================== ------_=_NextPart_000_01C21DB8.C422FB10 Content-Type: application/ms-tnef
5. RE: [Win32Lib] scroll a window with text?
- Posted by Martin Stachon <martin.stachon at worldonline.cz> Jun 27, 2002
- 373 views
Dan Moyer wrote: > I don't understand what to use for "pageSize" in: > --/proc setWindowScrollRange ( id, typeScroll, min, max, pageSize) Sorry Dan for replying so late, but I am kind of cutted-off the net. PageSize allows sizing of the proportional scroll thumb, eg. when scroll range is 0..99, and you set pageSize to 50, the thumb will be half the size of the scrollbar. > Oh, and the html doc doesn't jump to the link for that procedure. This is my fault - it is because of the space between Range and (, which confuses MAKEDOC. Derek has been informed some time ago. Martin
6. RE: [Win32Lib] scroll a window with text?
- Posted by Kat <gertie at PELL.NET> Jun 27, 2002
- 404 views
On 25 Jun 2002, at 10:29, Larry Mears wrote: > > > Dan Moyer wrote: > > If I have a window with scroll bars, and have "filled" the window with > > text, > > is there a way to make that text *scroll* via the scroll bars??? I mean > > other than re-writing the text from a new top line as is done in example 12, > > colored text & re-drawing the window? > > > > Dan Moyer > > > > > Go to the archive and type music database. Inside my program you will > find a function called AutoText. I put a lot of options in it because > I figured I would use it again sometime. I get this error: D:\Euphoria\music database\MDB.EXW:213 getRect has not been declared winxy = getRect(Win1) -- get the Printers Resolution Wassup? Kat
7. RE: [Win32Lib] scroll a window with text?
- Posted by Larry Mears <LarryMears at hotmail.com> Jun 27, 2002
- 403 views
Kat wrote: > On 25 Jun 2002, at 10:29, Larry Mears wrote: > > > > > Dan Moyer wrote: > > > If I have a window with scroll bars, and have "filled" the window with > > > text, > > > is there a way to make that text *scroll* via the scroll bars??? I mean > > > other than re-writing the text from a new top line as is done in example > > > 12, > > > colored text & re-drawing the window? > > > > > > Dan Moyer > > > > > > > > Go to the archive and type music database. Inside my program you will > > find a function called AutoText. I put a lot of options in it because > > I figured I would use it again sometime. > > I get this error: > > D:\Euphoria\music database\MDB.EXW:213 > getRect has not been declared > winxy = getRect(Win1) -- get the Printers Resolution > > Wassup? > Kat > > I haven't been doing any Euphoria programming in about 10 months so... Anyway getRect() is from win32Lib.eu maybe they renamed it in the newest version. That would be my first guess at the problem since it says not declared. Yep, I use the same routine for printer output. Larry Mears