How I do work scroll bar in tEdit

How I do work scroll bar in tEdit

Postby Eroni » Fri Jul 06, 2018 12:54 pm

Dears,

Anyone know how to make the scroll bar work in the tedit() class?

Code: Select all  Expand view
// Testing Class TEdit that implements GETs without using a Harbour embedded GET

#include "FiveWin.ch"

//----------------------------------------------------------------------------//

function Main()

   local oDlg, cFirst := ""
   local a


   FOR a := 1 to 700
      cFirst += Strzero(a,4)+" ABCDEFGHIJKWLMNOPQRSTUVXYZ"+CRLF
   NEXT a


   DEFINE DIALOG oDlg SIZE 500, 250
   
   @ 1, 1 EDIT cFirst OF oDlg SIZE 235, 90 MEMO
 
 
   @ 6, 35 BUTTON "Cancel" ACTION oDlg:End()

   ACTIVATE DIALOG oDlg CENTERED

return nil

//----------------------------------------------------------------------------//
FWH 1709 BCC72 MySql MariaDB
Visual Studio 2019 / Xamarin / C#
User avatar
Eroni
 
Posts: 98
Joined: Fri Jul 21, 2006 7:15 pm
Location: Criciuma/SC Brazil

Re: How I do work scroll bar in tEdit

Postby Antonio Linares » Fri Jul 06, 2018 7:10 pm

Eroni,

Please add this Method to Class TEdit:

METHOD VScroll() VIRTUAL

Your example works fine with it
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How I do work scroll bar in tEdit

Postby Eroni » Wed Jul 11, 2018 12:45 am

Thank you Antonio.
Now works fine.
FWH 1709 BCC72 MySql MariaDB
Visual Studio 2019 / Xamarin / C#
User avatar
Eroni
 
Posts: 98
Joined: Fri Jul 21, 2006 7:15 pm
Location: Criciuma/SC Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 109 guests