How I do work scroll bar in tEdit

Post Reply
User avatar
Eroni
Posts: 71
Joined: Fri Jul 21, 2006 7:15 pm
Location: Criciuma/SC Brazil
Contact:

How I do work scroll bar in tEdit

Post by Eroni »

Dears,

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

Code: Select all

// 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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How I do work scroll bar in tEdit

Post by Antonio Linares »

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
Eroni
Posts: 71
Joined: Fri Jul 21, 2006 7:15 pm
Location: Criciuma/SC Brazil
Contact:

Re: How I do work scroll bar in tEdit

Post by Eroni »

Thank you Antonio.
Now works fine.
FWH 1709 BCC72 MySql MariaDB
Visual Studio 2019 / Xamarin / C#
Post Reply