Page 1 of 1

How I do work scroll bar in tEdit

PostPosted: Fri Jul 06, 2018 12:54 pm
by Eroni
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

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

Re: How I do work scroll bar in tEdit

PostPosted: Fri Jul 06, 2018 7:10 pm
by Antonio Linares
Eroni,

Please add this Method to Class TEdit:

METHOD VScroll() VIRTUAL

Your example works fine with it

Re: How I do work scroll bar in tEdit

PostPosted: Wed Jul 11, 2018 12:45 am
by Eroni
Thank you Antonio.
Now works fine.