1. [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

new topic     » topic index » view message » categorize

2. Re: [Win32Lib] scroll a window with text?

Dan, this does it for me...

  idList =
create(List,"",mainWindow,0,0,screenWidth-2*widthFrame,sh-85,WS_SCROLLBARS),

george
----- Original Message -----
From: "Dan Moyer" <DANIELMOYER at prodigy.net>
To: "EUforum" <EUforum at topica.com>
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
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

3. 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,WS_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
> >
> >
>
>
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: [Win32Lib] scroll a window with text?

Derek,

Thanks, I'll give it a try & see if it's faster than re-writing all the text
from a variable.

Dan

----- Original Message -----
From: "Derek Parnell" <Derek.Parnell at SYD.RABOBANK.COM>
To: "EUforum" <EUforum at topica.com>
Subject: RE: [Win32Lib] scroll a window with text?


>
> 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
> >
> >
> ==================================================================
>
>
> ==================================================================
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: [Win32Lib] scroll a window with text?

well, i guess i don't know exactly what you're trying to do.
if you're adding items to the list and want it to scroll up as you add them
to the bottom, then i think you'll have to do that yourself.

george
----- Original Message -----
From: "Dan Moyer" <DANIELMOYER at prodigy.net>
To: "EUforum" <EUforum at topica.com>
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,WS_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
> > >
> > >
>
>
>

new topic     » goto parent     » topic index » view message » categorize

6. Re: [Win32Lib] scroll a window with text?

George,

As Derek pointed out, I didn't notice that you're referring to scrolling a
LIST, whereas I'm trying to get a WINDOW full of text to scroll.  Sorry for
the confusion.

Dan



----- Original Message -----
From: "George Walters" <gwalters at sc.rr.com>
To: "EUforum" <EUforum at topica.com>
Subject: Re: [Win32Lib] scroll a window with text?


>
> well, i guess i don't know exactly what you're trying to do.
> if you're adding items to the list and want it to scroll up as you add
them
> to the bottom, then i think you'll have to do that yourself.
>
> george
> ----- Original Message -----
> From: "Dan Moyer" <DANIELMOYER at prodigy.net>
> To: "EUforum" <EUforum at topica.com>
> Sent: Monday, June 24, 2002 7:47 PM
> 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,WS_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
> > > >
> > > >
>
>
>

new topic     » goto parent     » topic index » view message » categorize

7. Re: [Win32Lib] scroll a window with text?

Derek,

Actually, your example 12b already uses bitBlt in it, working just fine, but
only with the cursor keys.  I'd try to make it work with scrollbar, but I
don't understand what to use for "pageSize" in:
--/proc setWindowScrollRange ( id, typeScroll, min, max, pageSize)

Oh, and the html doc doesn't jump to the link for that procedure.

And since Topica is going to be down for who knows how long, better reply
direct, sigh!

Dan


----- Original Message -----
From: "Derek Parnell" <Derek.Parnell at SYD.RABOBANK.COM>
To: "EUforum" <EUforum at topica.com>
Sent: Monday, June 24, 2002 2:46 PM
Subject: RE: [Win32Lib] scroll a window with text?


>
> 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
> >
> >
> ==================================================================
>
>
> ==================================================================
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

8. Re: [Win32Lib] scroll a window with text?

Larry,

Ok, thanks, I'll take a look!

Dan Moyer

----- Original Message -----
From: "Larry Mears" <LarryMears at hotmail.com>
To: "EUforum" <EUforum at topica.com>
Subject: RE: [Win32Lib] scroll a window with text?


>
>
> 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
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

9. 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

new topic     » goto parent     » topic index » view message » categorize

10. Re: [Win32Lib] scroll a window with text?

Derek,

Somebody must be experimenting with slowing electronic transmissions down,
'cause when I sent this one you're responding to I didn't *have* your email
with info about your work with scrolling.  Wasn't a matter of not *reading*
it, I hadn't *received* it at that point in time.

Not sure exactly how the time stamps work, but here's my send info for this
one you're replying to, & below it is my receive info for the one from you
to me that I just now read:


From: "Dan Moyer" <DANIELMOYER at prodigy.net>
To: "Parnell, D \(Derek\)" <Derek.Parnell at SYD.RABOBANK.COM>
References: <307505342056D31199A100508B55407D0AFA1606@SYD1001032>
Subject: Re: [Win32Lib] setting range for window scrollbar; & bug in "setS
crollRange"?
Date: Thu, 27 Jun 2002 03:33:09 -0700



Message-Id: <307505342056D31199A100508B55407D0AFA1606@SYD1001032>
From: "Parnell, D (Derek)" <Derek.Parnell at SYD.RABOBANK.COM>
To: "'Dan Moyer'" <DANIELMOYER at prodigy.net>
Subject: RE: [Win32Lib] setting range for window scrollbar; & bug in
 "setS crollRange"?
Date: Thu, 27 Jun 2002 11:10:23 +0800


Just an electronic futz up  :)

Dan



----- Original Message -----
From: "Derek Parnell" <Derek.Parnell at SYD.RABOBANK.COM>
To: "EUforum" <EUforum at topica.com>
Sent: Thursday, June 27, 2002 1:57 AM
Subject: RE: [Win32Lib] scroll a window with text?


>
> 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]
> > Sent: Thursday, 27 June 2002 18:52
> > To: EUforum
> > 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
> >
> >
> ==================================================================
>
>
> ==================================================================
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

11. Re: [Win32Lib] scroll a window with text?

On 25 Jun 2002, at 6:03, Dan Moyer wrote:

> 
> Derek,
> 
> Actually, your example 12b already uses bitBlt in it, working just fine, but
> only with the cursor keys.  I'd try to make it work with scrollbar, but I
> don't
> understand what to use for "pageSize" in: --/proc setWindowScrollRange ( id,
> typeScroll, min, max, pageSize)
> 
> Oh, and the html doc doesn't jump to the link for that procedure.
> 
> And since Topica is going to be down for who knows how long, better reply
> direct, sigh!

And reply to the list, so those of us eavesdropping can learn too!!!!

Kat

new topic     » goto parent     » topic index » view message » categorize

12. Re: [Win32Lib] scroll a window with text?

Nothing like email delayed 2 days, is there?

Kat

On 25 Jun 2002, at 12:53, Kat wrote:

> 
> On 25 Jun 2002, at 6:03, Dan Moyer wrote:
> 
> > 
> > Derek,
> > 
> > Actually, your example 12b already uses bitBlt in it, working just fine, but
> > only with the cursor keys.  I'd try to make it work with scrollbar, but I
> > don't understand what to use for "pageSize" in: --/proc setWindowScrollRange
> > (
> > id, typeScroll, min, max, pageSize)
> > 
> > Oh, and the html doc doesn't jump to the link for that procedure.
> > 
> > And since Topica is going to be down for who knows how long, better reply
> > direct, sigh!
> 
> And reply to the list, so those of us eavesdropping can learn too!!!!
> 
> Kat 
> 
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu