Is possible to change widths of GRID after definiation?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
huangchenmin
Posts: 157
Joined: Mon Jun 07, 2010 2:24 am

Is possible to change widths of GRID after definiation?

Post by huangchenmin »

Dear all:
I try setproperty(Window's name,Control's name,Property's name,value) and failed.
Is that possible to do that ?
Best Regards
chen min
Last edited by huangchenmin on Thu Jun 14, 2012 1:55 am, edited 1 time in total.
User avatar
danielmaximiliano
Posts: 2763
Joined: Fri Apr 09, 2010 4:53 pm
DBs Used: DBF
Location: Argentina
Contact:

Re: Is possible to change widths og GRID after definiation?

Post by danielmaximiliano »

huangchenmin wrote:Dear all:
I try setproperty(Window's name,Control's name,Property's name,value) and failed.
Is that possible to do that ?
Best Regards
chen min
Hi Che:

post an example to avoid errors of interpretation
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
User avatar
danielmaximiliano
Posts: 2763
Joined: Fri Apr 09, 2010 4:53 pm
DBs Used: DBF
Location: Argentina
Contact:

Re: Is possible to change widths og GRID after definiation?

Post by danielmaximiliano »

danielmaximiliano wrote:
huangchenmin wrote:Dear all:
I try setproperty(Window's name,Control's name,Property's name,value) and failed.
Is that possible to do that ?
Best Regards
chen min
Hi Che:

post an example to avoid errors of interpretation
Properties Available For OnDblClick Procedure:
- This.CellRowIndex
- This.CellColIndex
- This.CellRow
- This.CellCol
- This.CellWidth
- This.CellHeight
- Note: These properties are not available when OnDblClick procedure
is fired by <Enter> key pressing.
file:///C:/hmg.3.0.40/doc/data/index.htm
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Is possible to change widths og GRID after definiation?

Post by mol »

Dear Che:
if you want to change widths of columns, it is possible only in this way:
you can release grid control and rebuild it with new definition.

"Widths" is available at control definition only


Marek
huangchenmin
Posts: 157
Joined: Mon Jun 07, 2010 2:24 am

Re: Is possible to change widths og GRID after definiation?

Post by huangchenmin »

danielmaximiliano wrote:
danielmaximiliano wrote:
huangchenmin wrote:Dear all:
I try setproperty(Window's name,Control's name,Property's name,value) and failed.
Is that possible to do that ?
Best Regards
chen min
Hi Che:
...
file:///C:/hmg.3.0.40/doc/data/index.htm
Dear danielmaximiliano:
As HMG reference mentions about, those properties is be got in certain conditions.
Thanks for replying to me.
Best Regards
chen min
huangchenmin
Posts: 157
Joined: Mon Jun 07, 2010 2:24 am

Re: Is possible to change widths og GRID after definiation?

Post by huangchenmin »

mol wrote:Dear Che:
if you want to change widths of columns, it is possible only in this way:
you can release grid control and rebuild it with new definition.
"Widths" is available at control definition only
Marek
Dear mol:
Thanks for replying to me.
That is really a good ideal.
Best Regards
chen min
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: Is possible to change widths og GRID after definiation?

Post by Rathinagiri »

Hi

If you just want to auto adjust the column width to fit the contents that is possible.

Just see here.

http://hmgforum.com/viewtopic.php?f=5&t=2010
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply