FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Can't select text in get with mouse if it start with bracket
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Can't select text in get with mouse if it start with bracket
Posted: Mon Jan 29, 2018 09:52 AM
Hi guys,
I just noticed this behaviour. If a get's content starts with a "(", can't select the content using mouse.
Immediately after you release the mouse button the selection is gone.

I tested with BCC7+FWH15.01using SAMPLES\testget2.prg



TIA
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Can't select text in get with mouse if it start with bracket
Posted: Mon Jan 29, 2018 05:52 PM
Hua,

You have to modify FWH\source\classes\tget.prg in METHOD LButtonUp( nRow, nCol, nFlags ) CLASS TGet:
Code (fw): Select all Collapse
      if Left( cText, 1 ) == "("
         ::nPos = 2
         ::SetPos( ::nPos )
      elseif Empty( cText ) .or. RTrim( cText ) == "  /  /" .or. ;

remove the first if comparison

What tool are you using to create the posted animated gif ? :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: Can't select text in get with mouse if it start with bracket
Posted: Tue Jan 30, 2018 02:36 AM
Thanks Antonio!

Antonio Linares wrote:
What tool are you using to create the posted animated gif ? :-)


I used LICEcap that Antonino mentioned
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion