FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How I do work scroll bar in tEdit
Posts: 114
Joined: Fri Jul 21, 2006 07:15 PM
How I do work scroll bar in tEdit
Posted: Fri Jul 06, 2018 12:54 PM
Dears,

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

Code (fw): Select all Collapse
// 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 / xHarbour / BCC / MySql

Visual Studio / Harbour / DotNet Maui / C#
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How I do work scroll bar in tEdit
Posted: Fri Jul 06, 2018 07: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
Posts: 114
Joined: Fri Jul 21, 2006 07:15 PM
Re: How I do work scroll bar in tEdit
Posted: Wed Jul 11, 2018 12:45 AM

Thank you Antonio.
Now works fine.

FWH / xHarbour / BCC / MySql

Visual Studio / Harbour / DotNet Maui / C#

Continue the discussion