Jump to content


Photo

Workaround for wrong horizontal scroll bar


  • Please log in to reply
3 replies to this topic

#1 IVO GELOV

IVO GELOV
  • Members
  • 7 posts

Posted 01 May 2009 - 01:27 PM

I noticed another bug. It can be reproduced in this way:
1. Create a new application in Delphi
2. Place a NextGrid component on the main form
3. Create 3 textual columns - first column should be AutoSize, and last column should be Invisible
4. Now run the application
The bug is that there is a horizontal scroll-bar although the last column is invisible.
Here is a screenshot:
Attached File  wrong.gif   9.99KB   1 downloads

The workaround (I am too lazy to dive into the source code to make a fix) is to manually set
the "Options" property of the grid inside OnFormCreate handler, like this:
....
myGrid.Options:=myGrid.Options;
....

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 01 May 2009 - 04:04 PM

Hello Ivo,

I will fix it, I hope that isn't hard to do it.

Best regards
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 IVO GELOV

IVO GELOV
  • Members
  • 7 posts

Posted 01 May 2009 - 06:25 PM

Hi, Boki.
I think this will not be so easy as the missing DoDeselectCell() in DeleteRow(), for example.
When I debug, I see multiple calls to UpdateHorzScrollBar() and in one of this calls, the last column`s
"Visible" property very strangely is shown as TRUE in the watches - may be this points to the root of
the bug ...

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 01 May 2009 - 06:57 PM

Hello Ivo,

Thank you for any suggestion,

I will work on this bug on weekend.

Best regards
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