Grid scrollbar height

TeeGrid VCL / FMX for Embarcadero RAD Studio, Delphi, C++ Builder and Lazarus Free Pascal.
Post Reply
InfraTec
Newbie
Newbie
Posts: 18
Joined: Tue May 09, 2023 12:00 am

Grid scrollbar height

Post by InfraTec » Mon Dec 11, 2023 12:22 pm

Is there any way to set the grid horizontal scrollbar height?

Marc
Site Admin
Site Admin
Posts: 1280
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Grid scrollbar height

Post by Marc » Tue Dec 12, 2023 8:51 am

Hello,

TeeGrid uses Embarcadero's TScrollBar (Windows scrollbar) and is limited by its possibilities.

Regards,
Marc Meumann
Steema Support

Robert
Newbie
Newbie
Posts: 5
Joined: Mon Dec 30, 2024 12:00 am

Re: Grid scrollbar height

Post by Robert » Tue Dec 31, 2024 9:14 am

Hello, i am also looking for a way to increase the width of the scrollbars, because in FMX Android you can't touch it correctly, so small, do you have found a solution ?
Thanks !

Marc
Site Admin
Site Admin
Posts: 1280
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Grid scrollbar height

Post by Marc » Tue Jan 14, 2025 10:35 pm

Hello Robert,

We'll review options for the Scrollbar and get back to you.

Regards,
Marc Meumann
Steema Support

Marc
Site Admin
Site Admin
Posts: 1280
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Grid scrollbar height

Post by Marc » Tue Jan 14, 2025 11:03 pm

Hello Robert,

I've seen that the ScrollBar width and Height can be changed directly in the TeeGrid source so we can probably make that accessible publicly.

In the meantime, it could be set directly in FMXTee.Control.pas.

Class TScrollableControl
Constructor CreateParent(const AParent:TControl);


eg.

Code: Select all

begin
  inherited Create; //(DoChanged);

  //IParent:=AParent;

  Horizontal:=CreateScrollBar(Horiz,Bottom);
  Vertical:=CreateScrollBar(Vert,Right);

  Horizontal.Height := 50; //<-- desired size
  Vertical.Width := 50; //<-- desired size
end;
Regards,
Marc
Steema Support

Robert
Newbie
Newbie
Posts: 5
Joined: Mon Dec 30, 2024 12:00 am

Re: Grid scrollbar height

Post by Robert » Wed Jan 15, 2025 6:26 pm

Hello Marc,

Thank you, the solution with the scrollbar width works fine, perfect.

What i'm not sure is how to handle this with the FMXTee.Control.pas, is it enough only add to the project,
i saved the changed version in project location, but where delphi normally takes it, if i add it only in the uses clause.

is it possible to place all this pas.data-files in a special delphi folder that i can reach direct with search deklaration and it shows me, like the standard delphi components ??

Thank you.

Robert

Marc
Site Admin
Site Admin
Posts: 1280
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Grid scrollbar height

Post by Marc » Mon Jan 20, 2025 8:02 am

Hello Robert,

You can add the TeeChart source to the project search path and compile directly from source.
eg.

Code: Select all

C:\Program Files (x86)\Steema Software\Steema TeeGrid for VCL & FMX Registered version-1.17\Sources\FMX
or compile the source with the modification (if you decide on a fixed value) and recreate the TeeGrid packages.

But we'll check how best we can make the properties accessible publicly for an update release.

Regards,
Marc
Steema Support

Robert
Newbie
Newbie
Posts: 5
Joined: Mon Dec 30, 2024 12:00 am

Re: Grid scrollbar height

Post by Robert » Sat Jan 25, 2025 10:17 am

Hello Marc,

Thank you for the tip, i will try, but i still not able to use the grid in android 64, delphi shows not and allows not.
I tried to uninstall, new install, the binary install, nothing helps.
But i know once it was possible to give it on a form for android 64, but i do not know if it has shown at this moment also the android 64 possibility. Maybe the whole problem occoured, because at beginning i was not sure, what to install, binary, registered, i tryed both, had then two same icons in the palette and so on.
What im wondering, that the installer shows on bottom always v 1.16 instead of 1.17, but this maybe only forgotten to change.

I wish you a nice weekend,
and thx you for your patience.

Robert

Marc
Site Admin
Site Admin
Posts: 1280
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Grid scrollbar height

Post by Marc » Mon Jan 27, 2025 11:35 am

Hello Robert,

Yes, you're right, the source compiler tool still reports v1.16, thank you for pointing that out. It doesn't affect the functionality but we'll correct it.

We're looking at Android 64 use for any possible problems that we might be unaware of.

Regards,
Marc
Steema Support

Post Reply