Page 1 of 1

GRID

Posted: Thu Jun 18, 2020 3:26 pm
by serge_girard
Hello,

I have a GRID and sometimes it is 'blocked' and I cannot select (double click) a row.

ON DBLCLICK I take the record in edit
ON HEADCLICK I sort on this field.

After some editing the GRID becomes unselectable with mouse-click but with cursors mostly it will. When nothing works on HEADCLICK will make cursor-click work again.
All very strange and very annoying.

Anybody has a suggestion what might go wrong OR how to solve?

Greetings, Serge

Re: GRID

Posted: Thu Jun 18, 2020 3:34 pm
by Rathinagiri
Is this virtual grid or ordinary grid?

Can you make a sample?

Re: GRID

Posted: Thu Jun 18, 2020 3:45 pm
by serge_girard
Rathi,

Simple grid:

Code: Select all

@ 70,10 GRID Grid_Main_Selection		;  
   WIDTH  MAX_WIDTH-50			;
   HEIGHT 700			;    	 	 	 	 	 	 	 	
   HEADERS {'ID',        'Gender' , 'Fam name', 'Surname', 'Father', 'Mother', '#Ch', 'Birth date' ,'Birth place', 'Birth country'  ,'Death date', 'Death place','Death country',  'Level', 'Occupation', 'Age' };
   WIDTHS  {60,          20,             200,     150 ,     200,        200,   40,       120,      150  ,       120,          120,          150,           120   ,     50     ,         100 ,   50} ;
   JUSTIFY {GRID_JTFY_LEFT, GRID_JTFY_LEFT, GRID_JTFY_LEFT, GRID_JTFY_LEFT, GRID_JTFY_LEFT, GRID_JTFY_LEFT, GRID_JTFY_LEFT, GRID_JTFY_LEFT, GRID_JTFY_LEFT, GRID_JTFY_LEFT, GRID_JTFY_LEFT, GRID_JTFY_LEFT, GRID_JTFY_LEFT, GRID_JTFY_LEFT, GRID_JTFY_LEFT, GRID_JTFY_LEFT };
   FONT "Arial" SIZE 09	   ;
   ON DBLCLICK Edit_Genealogy('W');
   ON HEADCLICK { { || Sort_Grid_Main_Selection(1)}  , {|| Sort_Grid_Main_Selection(2)}  , { || Sort_Grid_Main_Selection(3)},  { || Sort_Grid_Main_Selection(4)} , { || Sort_Grid_Main_Selection(5)} , ;
                  { || Sort_Grid_Main_Selection(6)}  , {|| Sort_Grid_Main_Selection(7)}  , { || Sort_Grid_Main_Selection(8)},  { || Sort_Grid_Main_Selection(9)} , { || Sort_Grid_Main_Selection(10)}, ;
                  { || Sort_Grid_Main_Selection(11)} , {|| Sort_Grid_Main_Selection(12)} , { || Sort_Grid_Main_Selection(13)}, { || Sort_Grid_Main_Selection(14)}, { || Sort_Grid_Main_Selection(15)}, { || Sort_Grid_Main_Selection(16)} } ;
   DYNAMICBACKCOLOR  { { || BC_Grid_Main_Selection()}, {||BC_Grid_Main_Selection()}, {||BC_Grid_Main_Selection()}, {||BC_Grid_Main_Selection()} , {||BC_Grid_Main_Selection()} , {||BC_Grid_Main_Selection()}  , {||BC_Grid_Main_Selection()}, {||BC_Grid_Main_Selection()} , ; 
                       { || BC_Grid_Main_Selection()}, {||BC_Grid_Main_Selection()}, {||BC_Grid_Main_Selection()}, {||BC_Grid_Main_Selection()} , {||BC_Grid_Main_Selection()} , {||BC_Grid_Main_Selection()}  , {||BC_Grid_Main_Selection()}, {||BC_Grid_Main_Selection()}}    

No tricky stuff etc...

Re: GRID

Posted: Fri Jun 19, 2020 12:20 am
by andyglezl

Re: GRID

Posted: Fri Jun 19, 2020 6:34 am
by serge_girard
Thanks Andres, This is an old pain.... Some problems solves itselfs.... some get worse and wont disappear: like this one.

Serge