🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.visual.misc
Article #517

Re: scrolling text

#517
From: HaBee RodBall
Date: Mon, 17 Aug 1998 00:00
56 lines
2378 bytes
Hi, Bernie

You can test some code like this:

'Declarations section
Public Const EM_LINESCROLL = &H406
Declare Function SendMessage& Lib "user" (ByVal hWd%, ByVal wMsg%,
ByVal wParam%, ByVal lParam&)

'If you want to scroll one line at a time (embedded in your code) ...

>Private Sub cmdAdd_Click()
>Dim stUID As String
 Dim ret%
>stUID = "(UserName)"
>rtb1.Text = rtb1.Text + vbNewLine + stUID + ":>" + rtbAdd.Text
>
ret% = SendMessage(txtCtrl.hWnd, EM_LINESCROLL, 0, 1)
>
>End Sub


Hope this helps...


On Mon, 17 Aug 1998 00:04:51 -0400, "bernie" <deforest@mkl.com> wrote:

>i am building a small chat program. it looks like AOL's imstand messanger.
>it uses to rich text boxes and  the bottom one sends text to the top one
>using the code below to send the text to the box on the next line. the top
>box everyone see's EX>
>
>Private Sub cmdAdd_Click()
>Dim stUID As String
>stUID = "(UserName)"
>rtb1.Text = rtb1.Text + vbNewLine + stUID + ":>" + rtbAdd.Text
>
>
>End Sub
>
>it works correctly but i when there is too many lines the new text can't be
>seen i have the scroll bar and you can scroll by hand but i want itto
>automaticly scroll to that last line of text.
>
>if anyone can help me with this or anything doing with building an chat
>program please post or email me at deforest@mkl.com
>
>

.
..
...
____________________________________
 H a B e e � R o d B a l l
  rodball (arroba) ctv.es
X i x � n � A S T U R I E S
Technical Details
Message-ID: <35d8d7fa.4370341@news.ctv.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6r8a4b$kkd$1@news0-alterdial.uu.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 110e3b,ffdf18a07582d99
X-Google-Attributes: gid110e3b,public
X-Google-Thread: 1053fc,ffdf18a07582d99
X-Google-Attributes: gid1053fc,public
X-Google-Thread: 1212f1,ffdf18a07582d99
X-Google-Attributes: gid1212f1,public
X-Google-Thread: 11629a,ffdf18a07582d99
X-Google-Attributes: gid11629a,public
From: h_rodball@��NO�SPAM�PLEASE��hotmail.com (HaBee RodBall)
Subject: Re: scrolling text
Date: 1998/08/17
Message-ID: <35d8d7fa.4370341@news.ctv.es>
X-Deja-AN: 381879014
Content-Transfer-Encoding: 8bit
References: <6r8a4b$kkd$1@news0-alterdial.uu.net>
Organization: Telefonica Transmision de Datos
Content-Type: text/plain; charset=ISO-8859-1
Mime-Version: 1.0
Newsgroups: comp.lang.basic.visual.misc,comp.lang.clipper.visual-objects,es.comp.lenguajes.visual-basic,microsoft.public.visualj.debugger