Jump to content


Photo

Help with NextGrid.RowHeight at runtime.

NextGrid RowHeight runtime

  • Please log in to reply
3 replies to this topic

#1 lsquez

lsquez
  • Members
  • 18 posts

Posted 21 August 2018 - 04:11 AM

I want to resize both the entire font size of a NextGrid AND the RowHeight at the same time. I basically what to scale the view-ability of the grid.

 

This works...

NextGrid.Font.Size := NextGrid.Font.Size +1;

 

This does not

NextGrid.RowHeight := NextGrid.RowHeight +1;

 

Any suggestions?

Also any suggestions with regards to the overall Windows metrics would be helpful.

 

 

Thanks,

 

 



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 21 August 2018 - 08:39 AM

Hi,

If you already added cells, then you need to change RowHeight of specific row. For example for v6 this is NextGrid.Row[x].RowHeight := xy;

Hope it helps.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 lsquez

lsquez
  • Members
  • 18 posts

Posted 21 August 2018 - 04:17 PM

When I use that it won't compile. The error reads, "Undeclared identifier: 'RowHeight' ".



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 21 August 2018 - 06:15 PM

Hi,

My mistake. It is NextGrid61.Row[x].Height

If you are using old v5, then you have NextGrid.RowHeight[x] direct property.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users