Jump to content


Photo

Scroll bar disappearing on grid clear/populate


  • Please log in to reply
8 replies to this topic

#1 konfoo

konfoo
  • Members
  • 7 posts

Posted 23 November 2006 - 04:45 AM

Using the latest available NextSuite download -

- Compile demo 1
- Add 10,000 rows
- Clear all rows
- Add 10,000 rows

The first time the rows are added the vertical scroll bar appears as it should. The second time it is not shown. If the form is resized it appears. I can reproduce this every time.

Any quick tip to fix this problem? smile.gif

#2 WEI

WEI
  • Members
  • 11 posts

Posted 23 November 2006 - 09:50 PM

QUOTE (konfoo @ Nov 22 2006, 10:45 PM) <{POST_SNAPBACK}>
Using the latest available NextSuite download -

- Compile demo 1
- Add 10,000 rows
- Clear all rows
- Add 10,000 rows

The first time the rows are added the vertical scroll bar appears as it should. The second time it is not shown. If the form is resized it appears. I can reproduce this every time.

Any quick tip to fix this problem? smile.gif


Hi, Boki

Any idea about this?

WEI

#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 23 November 2006 - 11:46 PM

Hello,

I have fix it. Please open file NxScrollControl.pas (located in Sources\ foder).

Add one more line inside method procedure TNxCustomScrollBar.SetMax(const Value: Integer);

CODE
SetVisible(FVisible);


I hope that this help.

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.

#4 WEI

WEI
  • Members
  • 11 posts

Posted 24 November 2006 - 03:07 AM

QUOTE (Boki (Berg) @ Nov 23 2006, 05:46 PM) <{POST_SNAPBACK}>
Hello,

I have fix it. Please open file NxScrollControl.pas (located in Sources\ foder).

Add one more line inside method procedure TNxCustomScrollBar.SetMax(const Value: Integer);

CODE
SetVisible(FVisible);


I hope that this help.

regards


Hi, Boki

Just wondering, to replace FVisible := (FMax > 0) or (not AutoHide) with Visible := (FMax > 0) or (not AutoHide); will have the same effect?

Thanks

WEI

#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 24 November 2006 - 05:04 AM

Hello WEI,

I think yes smile.gif

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.

#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 24 November 2006 - 05:56 AM

Hello,

There is a need to update few more lines in code.

1) Move SetVisible of TNxCustomScrollBar to protected and add virtual:

procedure SetVisible(const Value: Boolean); virtual;

and change it to:

CODE
procedure TNxCustomScrollBar.SetVisible(const Value: Boolean);
begin
  FVisible := Value;
end;


2) Add in TNxScrollBar inside protected:

procedure SetVisible(const Value: Boolean); override;

CODE
procedure TNxScrollBar.SetVisible(const Value: Boolean);
begin
  inherited SetVisible(Value);
  Windows.ShowScrollBar(FOwner.Handle, BarFlag, Value);
end;


I hope that this help. I have update files inside users area too.


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.

#7 WEI

WEI
  • Members
  • 11 posts

Posted 24 November 2006 - 07:04 AM

QUOTE (Boki (Berg) @ Nov 23 2006, 11:56 PM) <{POST_SNAPBACK}>
I hope that this help. I have update files inside users area too.
regards


Hi, Boki

Since I'm new to Berg forum. Where is the users area, Is it one of the section of this support forum(if so, I can not see it when I login)? or just user.bergsoft.net?

Regards,

WEI

#8 konfoo

konfoo
  • Members
  • 7 posts

Posted 24 November 2006 - 09:06 PM

QUOTE (Boki (Berg) @ Nov 23 2006, 08:56 PM) <{POST_SNAPBACK}>
I hope that this help. I have update files inside users area too.


Thanks for the quick response smile.gif

#9 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 25 November 2006 - 03:28 AM

Hello WEI,

Yes, users area is on http://users.bergsoft.net/

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