Jump to content


Photo

Scrollbar style


  • Please log in to reply
43 replies to this topic

#1 Dmitry

Dmitry
  • Members
  • 34 posts

Posted 25 May 2007 - 02:26 PM

Hello, Boki.
The grid draws its scrollbars with fixed small thumb size. But usual the Windows' controls with scrollbars draw their scrollbars so that the thumb size depends on the size of the client area AND scroll range. Is there any possibility to make the grid draw the scrollbars in that way?

If my explanation isn't clear, please check attached screenshots.
Attached File  grid_scrollbar.PNG   4KB   9 downloads

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 25 May 2007 - 03:22 PM

Hello Dmitry,

It is on to-do list, but somehow it is allways jumped for new release sad.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.

#3 AIM

AIM

    Senior Member

  • Honorable Members
  • PipPip
  • 202 posts

Posted 29 June 2007 - 09:54 AM

Another vote for that.

The current scrollbar looks a bit outdated and Win3.1 stylish in your very well looking components wink.gif

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 29 June 2007 - 10:01 AM

Hello AIM,

I am using SetScrollInfo(); WinAPI function to update control's scroll bar and set ScrollInfo.nPage to specific PageSize, but for some reason , PageSize won't work as expected, and I have set it to default value (this is why it have static PageSize).

One user have contribute me a code for fixing it but it was complex to add it in this time. I will try to find this code again.

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.

#5 AIM

AIM

    Senior Member

  • Honorable Members
  • PipPip
  • 202 posts

Posted 29 June 2007 - 10:45 AM

Probably you should take a look at VirtualStringTree how Mike has solved the scrollbar and Unicode-Hint functionality. Maybe I'm wrong, but it doesn't seem to be very much effort... I think these both features would make many developers happy smile.gif

Just a thought...
Martin

#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 29 June 2007 - 12:09 PM

Hello Martin,

I will try to look at it once more, I hope that now I will have more luck.

There is a one small problem with unicode Hint's. There are a lot of custom hint components on market and many users like to override standard Hint look. It may happen that this hint's doesn't support unicode strings. I have try to create my own THintWindow class, but ActivateHint procedure have string parameter, not WideString sad.gif I will need to find some workaround for this.

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.

#7 AIM

AIM

    Senior Member

  • Honorable Members
  • PipPip
  • 202 posts

Posted 04 September 2007 - 02:21 PM

QUOTE
I am using SetScrollInfo(); WinAPI function to update control's scroll bar and set ScrollInfo.nPage to specific PageSize, but for some reason , PageSize won't work as expected, and I have set it to default value (this is why it have static PageSize).


I played around a bit, below you can find my changes which seem to work fine for the functionalities I use myself.

Things which do not work yet:
1. Grids with variable row size (see comments in my code)
2. Grids with hidden rows
3. Proper handling of the PgDown or End key
4. Other functionalities I don't use myself (no idea what else could cause problems)

But probably the code below is a good starting point for future development.

Changes in NxCustomGridControl.pas:

(code deleted)

#8 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 04 September 2007 - 02:26 PM

Hello Aim,

Thank you for your code. I will take a look on it.

Ill be back here today after testings.

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.

#9 sundance

sundance
  • Members
  • 10 posts
  • Gender:Male

Posted 18 October 2007 - 09:47 AM

... and another vote for that scrollbar enhancement!

.sundance.

#10 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 18 October 2007 - 10:25 AM

Hello,

This will be implemented as soon I finish with one task for NextDBGrid.

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.

#11 AIM

AIM

    Senior Member

  • Honorable Members
  • PipPip
  • 202 posts

Posted 18 October 2007 - 11:01 AM

The code above worked fine with NextGrid 4.1.5, but was somehow broken with v4.1.7.

I had no time yet to adapt it to v4.2, but it still shows a possible idea or "hack". Boki will probably find a better solution smile.gif

#12 sundance

sundance
  • Members
  • 10 posts
  • Gender:Male

Posted 08 January 2008 - 12:27 PM

Any news on that?

#13 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 08 January 2008 - 12:36 PM

Hello Sundance,

Feature is still in progress. I hope that it will be ready soon.

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.

#14 anro

anro
  • Members
  • 2 posts

Posted 12 July 2008 - 09:05 PM

I asked for the correct scrollbar thumb style (size depending on the content) back in 2006 (customer since then), and until now nothing has been implemented. Disappointing taking into account that almost all other similar controls out there have the correct behaviour but BergComponents don't.

#15 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 12 July 2008 - 10:02 PM

Hello Anro,

I am sorry for my delay. This bug gives a headache to me. I will try once again to solve 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.

#16 AIM

AIM

    Senior Member

  • Honorable Members
  • PipPip
  • 202 posts

Posted 13 July 2008 - 11:48 AM

Boki,

what's the exact problem with the scrollbar style?

#17 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 13 July 2008 - 08:22 PM

Hello Aim,

Problem is that when you set PageSize to other value than 0, it start to act strangely. One user have sent me contribution for how to solve it, but I have failed to made it. I am working on this bug every few months sad.gif

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.

#18 AIM

AIM

    Senior Member

  • Honorable Members
  • PipPip
  • 202 posts

Posted 13 July 2008 - 09:20 PM

I think I was the user who made this contribution.

I use it for many months now in my projects without problems. But I haven't solved the following things because until now I did not need them:

1. Grids with variable row size (see comments in my code)
2. Grids with hidden rows
3. Tree columns

But everything else should work fine (horizontal/vertical scrollbar, report and slide mode). I have attached a compiled EXE and a document how to patch the sources. Probably you can find some ideas how to solve it completely in NextGrid...

Attached Files



#19 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 13 July 2008 - 09:26 PM

Hello Aim,

Thank you very much!! I will work on it next 2 days and I hope that I will succedd. Thank you again, this will solve me a big problem.

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.

#20 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 13 July 2008 - 10:59 PM

Hello Aim,

Thank to you, this feature will be included in next release.

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users