GRID

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
serge_girard
Posts: 3166
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

GRID

Post 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
There's nothing you can do that can't be done...
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: GRID

Post by Rathinagiri »

Is this virtual grid or ordinary grid?

Can you make a sample?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
serge_girard
Posts: 3166
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: GRID

Post 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...
There's nothing you can do that can't be done...
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: GRID

Post by andyglezl »

Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
serge_girard
Posts: 3166
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: GRID

Post by serge_girard »

Thanks Andres, This is an old pain.... Some problems solves itselfs.... some get worse and wont disappear: like this one.

Serge
There's nothing you can do that can't be done...
Post Reply