473,508 Members | 2,303 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom Scrollbar

22 New Member
I find the default vertical scrollbar to be inadequate for my use (continuous form); it's small and positioned too far to the right of other control buttons. Is there a simple-to-set-up alternative? I thought about an active-x slider control but not sure that this is the right approach.
Aug 14 '18 #1
8 4482
PhilOfWalton
1,430 Recognized Expert Top Contributor
AFAIK, you can't do anything with the default scrollbars (other than showing them or hiding them)

However, if on the design tab, you select More --> ActiveX Controls--> Microsoft Forms 2.0 ScrollBar, that should get you started. Regret I have never used one, but certainly you can alter it's size.

There is an example here:-
https://access-programmers.co.uk/for...d.php?t=243278

Phil
Aug 14 '18 #2
twinnyfo
3,653 Recognized Expert Moderator Specialist
Phil!

Shame on you! I figured if anyone would have already done this, it would be you.

I can't believe you don't have this pre-packaged!

;-)
Aug 14 '18 #3
PhilOfWalton
1,430 Recognized Expert Top Contributor
I'm wounded to the core. Hari-Kari is the only option now. Bye.....

Actually there is a reason - In the past I used a Treeview control found in MSCOMCTL.DLL as menu system similar to this



The trouble was with every version of Access and every version of Windows, I had to find a version of MSCOMCTL that worked, and in the end gave up and now use a VBA userform.

So that's my excuse, and I'm sticking to it.

:-)

Phil
Aug 14 '18 #4
Squiddley1957
22 New Member
Ok so no custom scrollbar. Could I use two buttons, one up, one down? Presumably there's code to incrementally move by x amount the continuous subform. Is that feasible?
Aug 14 '18 #5
twinnyfo
3,653 Recognized Expert Moderator Specialist
The two buttons would be very doable. However, it would be very much similar to a “Move Next” or “Move Previous”. When all is said and done, though, if I had the choice, I would probably just suffer through the scroll bars.

But, if you want to try out something, we’d be glad to help you work through it.
Aug 14 '18 #6
PhilOfWalton
1,430 Recognized Expert Top Contributor
I think I sounded too pessimistic in my previous post.

My problems were with the ActiveX Treeview in MSCOMCTL.Dll. The scrollbar you need is also an ActiveX but in Microsoft Forms 2. So as that is part of Access, it probably will work OK

In the link I gave you, the scrollbar works perfectly, so I would give it a try.

The other thought is can you apply some sort of Filter to the Subform to reduce the number of records you need to trawl through?

Phil
Aug 15 '18 #7
zmbd
5,501 Recognized Expert Moderator Expert
Squiddley1957: There are some "work arounds;" however, they are not easy, simple, nor (IMHO) reliable replacements for the scroll bar using VBA.

The ActiveX Slider isn't a replacement for the scrollbar. It has no "hooks" nor events to allow one to easily sync its movements to the form window.

API calls, I've seen a few API type calls to user32.dll calls used in an attempt to set the vertical scroll position and to set; however, nothing that is complete enough to use without a lot of work.
Aug 15 '18 #8
Squiddley1957
22 New Member
Thanks to everyone. I already have two or three layers of filters but I will take another look. The most annoying thing about the scrillbar is its size - especially if you are a of a certain age.
Aug 15 '18 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

1
8487
by: gmtongar | last post by:
Hi, I've made a custom scrollbar which consists of three buttons and a panel. My problem is: How do I move it like a scrollbar slider? I've tried DoDragDrop, but it does not appear to be the same,...
0
2852
by: Tim Bücker | last post by:
Hello. Is it really not possible to hide the scrollbars of a listview ( this.listview.Scrollable = false; ) but do some scrolling anyway ( for instance: PostMessage(this.listview.Handle,...
1
4841
by: SJ | last post by:
Is it possible to have a Listbox with no scrollbar? I have 3 items in my listbox, and I have the Rows property set to 3. It still shows me the scrollbar. Any way to get rid of the vertical...
3
7144
by: weston | last post by:
I'm making a foray into trying to create custom vertical scrollbars and sliders, and thought I had a basic idea how to do it, but seem to be having some trouble with the implementation. My...
3
11838
by: jkarpago | last post by:
Hi: I have a javascript that creates a custom scrollbar for a div in the middle of my page. The problem is that when I scroll in my div it scrolls the div and the scroll of the page so I loose...
2
2107
by: MrNobody | last post by:
IF I am making a custom user control which draws stuff that might exceed its boundaries, can I get the user control to handle the scrolling for me? The AutoScroll property doesn't seem to be doing...
3
6538
by: papalarge | last post by:
Hey all... My boss typically dislikes the packaged components, and so I'm wondering if there's any code out there to modify the way a scrollbar looks. I'd love to change colors and, if...
1
2927
by: Hunter.lennon | last post by:
I want to create a custom scrollbar using particular images, which will then be placed on a canvas to control another window on the canvas. Right now I am inheriting from scrollbar, but I do the...
0
7120
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5050
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.