Jump to content


Photo

Autosizing of Rows is Partially Working.


  • Please log in to reply
4 replies to this topic

#1 Speed

Speed
  • Members
  • 190 posts
  • Gender:Male

Posted 31 May 2022 - 01:43 AM

Hi Boki,

 

I'm having some difficulty getting rows to automatically resize correctly.

 

Each column is a TNxMemoColumn6.

 

Each column is set to Resizable = False, AutoSize = False, and MultiLineEditOptions = meWordWrap.

 

BestFitRow is used as each row is added.

 

I have attached two example screenshots.  The issue is shown in the cell numbered 25.

 

In the attached image NextGrid - Autosize Row - 1, there are actually two rows missing.  The column width is 150.

 

In the attached image NextGrid - Autosize Row - 2, the two missing rows are shown.  The column width is 200.

 

NextSuite Version Number is 6.7.2.

 

What can I do to fix this?

 

= Steve

Attached Files



#2 Speed

Speed
  • Members
  • 190 posts
  • Gender:Male

Posted 02 June 2022 - 08:40 AM

Any ideas?



#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 02 June 2022 - 08:17 PM

Hello Steve,

 

Sorry for my delay,

 

I'm not sure if I fully understand the layout of cells and if day of a month string is a separate cell or one custom drawn?

 

If you can maybe send code with one filled out so I can debug it?


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.

#4 Speed

Speed
  • Members
  • 190 posts
  • Gender:Male

Posted 03 June 2022 - 01:09 AM

Hello Steve,

 

Sorry for my delay,

 

I'm not sure if I fully understand the layout of cells and if day of a month string is a separate cell or one custom drawn?

 

If you can maybe send code with one filled out so I can debug it?

 

The day numbering is custom drawn in the column draw background event.  The text is just strings added to the cell, with the first line blank so that the text doesn't overwrite the number.

 

I could send you the code but it's all part of a class I wrote, which needs data from database so you won't be able to run it.  Did you still want it?

 

= Steve



#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 04 June 2022 - 04:43 PM

Hi,

 

Maybe a single cell with a hardcoded content will also help. I'm not sure how the custom draw content is included into your calculation.


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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users