Jump to content


Photo

Scrollbar not always displayed in latest version 5.3.2011.1


  • Please log in to reply
5 replies to this topic

#1 AIM

AIM

    Senior Member

  • Honorable Members
  • PipPip
  • 202 posts

Posted 30 April 2011 - 06:28 PM

In the latest version 5.3.2011.1 the scrollbar in TNextGrid is not always displayed. This happens to the vertical scrollbar, not sure if the horizontal scrollbar is also affected.

I saw that you changed various things in the scrollbar code, but I don't know what exactly causes this problem. I reverted back to version 5.1.11.1 for now and everything is working well again.

Beside the bug I described at http://www.bergsoft....?showtopic=3774 this is the only bug I discovered.

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 30 April 2011 - 07:33 PM

Hello Aim,

Please correct next line in NxScrollControl.pas:

procedure TNxCustomScrollBar.SetPageSize(const Value: Integer);
begin
if FPageSize <> Value then
begin
FPageSize := Value;
if FPageSize < 1 then FPageSize := 1; // <--------------
UpdateScrollBar;
end;
end;

Please sorry for this bug.

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 AIM

AIM

    Senior Member

  • Honorable Members
  • PipPip
  • 202 posts

Posted 30 April 2011 - 08:32 PM

It's better now, but it does not fully fix this problem. The last line is ignored to show the toolbar.

Reverting also back the functions SetMax and UpdateScrollBar to the previous version fully fixes this problem...

Concretely:

Un-commenting that line:
if FMax = Value then Exit;

and commenting that line:
{ Hide scrollbar if necessary }
//ShowScrollBar(FOwner.Handle, BarFlag, IsVisible);

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 30 April 2011 - 08:38 PM

Hello Aim,

I have fix this too. I will upload files tomorrow. Please sorry for this problem again.

Boki
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 AIM

AIM

    Senior Member

  • Honorable Members
  • PipPip
  • 202 posts

Posted 30 April 2011 - 08:51 PM

QUOTE
I have fix this too. I will upload files tomorrow.


Thanks.

Could you please also fix that one:
http://www.bergsoft....?showtopic=3774

Simply use the following code that initializes FLeft/FTop/FBottom/FRight to the correct values:

CODE
constructor TNxIndent.Create;
begin
  inherited;
  FLeft := 0;
  FTop := 0;
end;


and:

CODE
constructor TNxMargins.Create;
begin
  inherited;
  FBottom := 0;
  FRight := 0;
end;


#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 30 April 2011 - 09:48 PM

Hello Aim,

It is done. I have a lot of troubles with this properties and they behave very strange somehow sad.gif

I hope that now there will be no problems.
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