GRID: invisible column

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
Barrimbhal
Posts: 13
Joined: Mon Aug 06, 2012 3:02 am
Location: Minas Gerais - Brazil
Contact:

GRID: invisible column

Post by Barrimbhal »

Would it be possible to make an invisible column into the grid?
Thanks!
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: GRID: invisible column

Post by Rathinagiri »

Yes. Make the column width to 0.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: GRID: invisible column

Post by esgici »

Barrimbhal wrote:Would it be possible to make an invisible column into the grid?
rathinagiri wrote:Yes. Make the column width to 0.
Here slightly modified SAMPLES\GRID.01\demo.prg :
Screen shoot for invisible column in GRID
Screen shoot for invisible column in GRID
GrdColInvis.PNG (95.65 KiB) Viewed 3944 times
GrdColInvis.zip
Source file for invisible column in GRID
(1.06 KiB) Downloaded 286 times
Happy HMG'ing :D
Viva INTERNATIONAL HMG :D
User avatar
Barrimbhal
Posts: 13
Joined: Mon Aug 06, 2012 3:02 am
Location: Minas Gerais - Brazil
Contact:

Re: GRID: invisible column

Post by Barrimbhal »

Ok, very grateful Rathinagiri / Esgici (very good code)!

And with respect to the last column on the right (excess) that is aesthetically ugly...
How to make so that it doesn't appear? :^)
Thanks!
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: GRID: invisible column

Post by esgici »

Barrimbhal wrote: How to make so that it doesn't appear? :^)
Very simple !

Don't include that unwanted column in your GRID definition ;)

And justify form metrics depending on structure of GRID.

Regards
Viva INTERNATIONAL HMG :D
User avatar
Barrimbhal
Posts: 13
Joined: Mon Aug 06, 2012 3:02 am
Location: Minas Gerais - Brazil
Contact:

Re: GRID: invisible column

Post by Barrimbhal »

Ok! But... How does not include, the undesirable column in the grid?
With relation to metric, with success when the size of the window is not resizable...
But sometimes it is necessary!!! :(
User avatar
Barrimbhal
Posts: 13
Joined: Mon Aug 06, 2012 3:02 am
Location: Minas Gerais - Brazil
Contact:

Re: GRID: invisible column

Post by Barrimbhal »

In the context of the metrics...
I know that can be either resolved via code, but it's painful and unnecessary process, take the dimensions of the GRID whenever this is resized... If there were such as to inhibit the last empty column that is always added automatically.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: GRID: invisible column

Post by esgici »

Barrimbhal wrote:How does not include, the undesirable column in the grid?
Well; this example shows how not include the undesirable column in the grid ;)
Screen shoot of Grid Column Unwanted
Screen shoot of Grid Column Unwanted
GrdColumnUnwanted.PNG (67.22 KiB) Viewed 3910 times
GrdColumnUnwanted.zip
Source code for Grid Column Unwanted
(1.12 KiB) Downloaded 296 times
Barrimbhal wrote:With relation to metric, with success when the size of the window is not resizable...
If important, you can re-size your controls depending on resized form.
Barrimbhal wrote:If there were such as to inhibit the last empty column that is always added automatically.
IMHO no, because this is standard Windows behavior.

Abowe sample doesn't include ( in fact doesn't show ;) last empty column. But with a little (!) penalty : Horizontal scroll bar :!:
Barrimbhal wrote:..but it's painful and unnecessary process...
Certainly right !

except assist to a friend ;)

Saudações
Viva INTERNATIONAL HMG :D
User avatar
Barrimbhal
Posts: 13
Joined: Mon Aug 06, 2012 3:02 am
Location: Minas Gerais - Brazil
Contact:

Re: GRID: invisible column

Post by Barrimbhal »

Dear new friend...
Very, but very grateful even!!!
Remedied the problem!

F.a.n.t.a.s.t.i.c!
Melhores saudações!!! :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: GRID: invisible column

Post by esgici »

Barrimbhal wrote:Dear new friend...
Very, but very grateful even!!!
Remedied the problem!

F.a.n.t.a.s.t.i.c!
Melhores saudações!!! :D
Ola

I'm glad that you have liked it :)

You are a nice friend,

( except your avatar :( )

Saudações desde Turkiye :)

Happy HMG'ing :D

By the way, I have liked your logo ;)
Logo of Quasarium
Logo of Quasarium
quasarium.PNG (70.15 KiB) Viewed 3892 times
Viva INTERNATIONAL HMG :D
Post Reply