Scrollbar style
#1
Posted 25 May 2007 - 02:26 PM
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.
grid_scrollbar.PNG 4KB 9 downloads
#2
Posted 25 May 2007 - 03:22 PM
It is on to-do list, but somehow it is allways jumped for new release
regards
--
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
Posted 29 June 2007 - 09:54 AM
The current scrollbar looks a bit outdated and Win3.1 stylish in your very well looking components
#4
Posted 29 June 2007 - 10:01 AM
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
--
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
Posted 29 June 2007 - 10:45 AM
Just a thought...
Martin
#6
Posted 29 June 2007 - 12:09 PM
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 I will need to find some workaround for this.
Best regards
--
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
Posted 04 September 2007 - 02:21 PM
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
Posted 04 September 2007 - 02:26 PM
Thank you for your code. I will take a look on it.
Ill be back here today after testings.
Best regards
--
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
Posted 18 October 2007 - 09:47 AM
.sundance.
#10
Posted 18 October 2007 - 10:25 AM
This will be implemented as soon I finish with one task for NextDBGrid.
Best regards
--
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
Posted 18 October 2007 - 11:01 AM
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
#12
Posted 08 January 2008 - 12:27 PM
#13
Posted 08 January 2008 - 12:36 PM
Feature is still in progress. I hope that it will be ready soon.
Best regards
--
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
Posted 12 July 2008 - 09:05 PM
#15
Posted 12 July 2008 - 10:02 PM
I am sorry for my delay. This bug gives a headache to me. I will try once again to solve it.
Best regards
--
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
Posted 13 July 2008 - 11:48 AM
what's the exact problem with the scrollbar style?
#17
Posted 13 July 2008 - 08:22 PM
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
Best regards
--
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
Posted 13 July 2008 - 09:20 PM
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
Posted 13 July 2008 - 09:26 PM
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
--
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
Posted 13 July 2008 - 10:59 PM
Thank to you, this feature will be included in next release.
Best regards
--
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