Jump to content


Photo

AutoSize RowHeight


  • Please log in to reply
10 replies to this topic

#1 p2001

p2001
  • Members
  • 11 posts

Posted 27 June 2017 - 09:57 PM

How can I set properties of NextGrid6 or other components?

 

Column 3 - NxTreeColumn;

Width - Fixed;

MultiLine - True;

Height - Auto (all text visible)

 

Attached File  AutoSizeRowHeight.jpg   69.46KB   0 downloads



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 28 June 2017 - 07:34 PM

Hi,

You can for example call NextGrid61.BestFitRow(x) after adding each row.

FixedWidth column in your screenshot is maybe auto-size column? For this please set AutoSize = True of column.

And of course set WordWrap to True for text column.
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 p2001

p2001
  • Members
  • 11 posts

Posted 28 June 2017 - 07:59 PM

Hi, Boki.

This no work.

 

1. FIxedWidth column is NxTreeColumn.

AutoSize=True

Attached File  1.jpg   76.63KB   0 downloads

 

WordWrap is WrapKind = wkWordWrap in NxTreeColumn?

Attached File  2.jpg   106.83KB   0 downloads

 

2. Adding row (N1Click)

Attached File  3.jpg   118.15KB   0 downloads

 

3. Result: no work

Attached File  4.jpg   42.05KB   0 downloads



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 28 June 2017 - 08:44 PM

Hi,

1. If you don't want user to resize column, then Resizeable property is what you need. Set it to False. You can unset AutoSize to False.

2. Yes, correct.

3. I will check it now, maybe I miss something.
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.

#5 p2001

p2001
  • Members
  • 11 posts

Posted 29 June 2017 - 09:00 AM

Hi, Boki!

1. Resizable and AutoSize in any combination (True/False) - no work (AutoRowHeight)

3. Result?



#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 29 June 2017 - 01:39 PM

In two days I will change this and use Resizeable = False in account when BestFit is called.

At the moment column is never fixed-sized and BestFit calculation gives result as column is fully expanded.
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.

#7 p2001

p2001
  • Members
  • 11 posts

Posted 29 June 2017 - 01:57 PM

Autochange column width works correct.

Autochange row height (multiline - true) no work.

 

I need fixed column width (user can't change it) and autofit row height.



#8 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 29 June 2017 - 09:46 PM

Hi,

I have re-uploaded files. Tell me if now work fine.

If Column.Resizeable = False then BestFit should work differently.
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.

#9 p2001

p2001
  • Members
  • 11 posts

Posted 30 June 2017 - 08:35 AM

Hi,

I have re-uploaded files. Tell me if now work fine.

If Column.Resizeable = False then BestFit should work differently.

Hi!

 

Where can I download it to check?



#10 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 30 June 2017 - 01:29 PM

Hi,


You can find it inside bms.bergsoft.net (users section). If you are using free version, I will update it in couple days.
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.

#11 p2001

p2001
  • Members
  • 11 posts

Posted 03 July 2017 - 02:47 PM

Hi,

I have re-uploaded files. Tell me if now work fine.

If Column.Resizeable = False then BestFit should work differently.

 

Hi. Now work fine.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users