Hello.
I would like to replace the defalt Scroll Bars with custom buttons in a continuous form.
I've tryed to make command buttons with the goto next/previous record macros, but those aren't acting in the same way as the scroll bars, for example, the control has to be focused in order for the goto next/previous record macros to work.
So, is there a way to compose a buttons that will imitate the scroll bar?
Much thanks, Michael.
4 8538 ADezii 8,834
Recognized Expert Expert
Hello.
I would like to replace the defalt Scroll Bars with custom buttons in a continuous form.
I've tryed to make command buttons with the goto next/previous record macros, but those aren't acting in the same way as the scroll bars, for example, the control has to be focused in order for the goto next/previous record macros to work.
So, is there a way to compose a buttons that will imitate the scroll bar?
Much thanks, Michael.
The simplest way to mimic the scrolling behavior on a Continuous Form via Command Buttons is as follows: - 'In the Click() Event of a Command Button in the Form Footer with the
-
Caption Scroll Up, place the following single line of code
-
Private Sub cmdScrollUp_Click()
-
SendKeys "{PGUP}"
-
End Sub
- 'In the Click() Event of a Command Button in the Form Footer with the
-
Caption Scroll Down, place the following single line of code
-
Private Sub cmdScrollDown_Click()
-
SendKeys "{PGDN}"
-
End Sub
NeoPa 32,572
Recognized Expert Moderator MVP
I think that to imitate the scrollbars with full-functionality is actually quite involved as there are various things the scroll bars respond to :
Clicking above / below; dragging; keystrokes; etc.
Some of the more important (to you) functionality can be mimicked but it's quite detailed work.
ADezii 8,834
Recognized Expert Expert
I think that to imitate the scrollbars with full-functionality is actually quite involved as there are various things the scroll bars respond to :
Clicking above / below; dragging; keystrokes; etc.
Some of the more important (to you) functionality can be mimicked but it's quite detailed work.
It would seem as though imitating fully functional Scroll Bars via Command Buttons would be next to impossible until I had a brainstorm. What do you think about using the Auto Repeat property of a Command Button? As long as this Property is set to True, code within the Click() Event of the button will execute as long as the button is pressed. With an appropriate delay factor programmed in to slow down Record Navigation, it may not be as difficult as we think. Of course the other factors that you mentioned such as Clicking above / below; dragging; keystrokes would be next to impossible to duplicate. Checking for BOF and EOF would probably be difficult also because of the Repeat factor. Please excuse me if I am ranting on - just wanted your input.
NeoPa 32,572
Recognized Expert Moderator MVP
Not at all ADezii, I'm always pleased to discuss matters towards anyone's better understanding (mine included).
Let me first issue another request to initiate Private Message contact though. Can you let me know if you have any difficulty with this (in here or by PM).
Certainly the auto-repeat feature could add similarity to the effect. I would also say that PageUp & PageDown controls could also be added in such a way as to look like the scroll bar. I wouldn't do it myself unless for an exercise, and I wouldn't want to take someone through it on here unless they could communicate well.
I've implemented record level controls on a bound form before to replace the defaults but I would see Scroll bars as an extra level of complication.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Richard Hollenbeck |
last post by:
The only reason I made the continuous forms form into a subform is because I
like the scrolling behavior better. For example, I don't like how the
vertical scrollbar spans the height of the entire form, but if it's inside a
subform, then it's only as high as the subform. Maybe we have more control
over how scrollbars work, but I don't know about it if there is. The main
reason for this post is that when the user is at or near the bottom...
|
by: Typehigh |
last post by:
I am a good programmer, but this one stumps me!
I have a form with a continuous subform. The continuous subform
contains records of data and may reach a depth of 1000's of entities.
I have created a search button on my form and it does its job quite
well. It presents the user with an inputbox, prompting for the string
to search. Then the code returns with a record number of the record
which contains the string.
Here's the problem. I...
|
by: John Smith |
last post by:
I have a continuous form. there is a command button with the following code
for the OnClick event:
DoCmd.OpenForm "frmPlants", , , "PlantsID =" & Me!PlantsID
I click the button and frmPlants opens up with the record that corresponds
to the one on the cont. form.
I put that same code for the OnClick of an image control (i.e. the user
clicks a little icon to open the form instead of a button) and frmPlants
|
by: avanti |
last post by:
How can I achieve continuous scrolling with a vertical scrollbar in C#?
Thanks,
Avanti
|
by: Wayne |
last post by:
Is there a workaround to the bug that loses the first record in a
continuous form after using the scroll wheel if the available records
don't fill the form? I know that the "up arrow" section of the
scrollbar can be clicked to show the record again but this is hardly
intuitive to the user.
Any help is appreciated.
| |
by: Dave |
last post by:
Hello All,
These one may be a bit tricky, and what I'd like to do may not even be
possible. I would love to hear any ideas you guys have for solving
this.
Here is the situation: I have a form that displays the high-level data
for a set of records in continuous forms mode. I have a simple command
button that will open another form with the details of the selected
record.
|
by: lennyc |
last post by:
I would like to make a simple auto scroll of images with little user interactioin. It would be images moving horizontally in a continuous loop that stops on mouse over and starts up again on mouse out. I have been able to do this with a tween but it is not smooth. I have found may examples with thumbnails scrolling that click to bigger images etc. but nothing as simple as what I'm looking for. Can anyone point me in the direction of a tutorial...
|
by: Steve |
last post by:
I have a continuous form showing Product Code and Product Name. Product Code
is five digits and is sequential. I have a textbox in the form header. What
is the code to scroll the continuous form so that as I type in the the first
two or three numbers of the product code in the textbox, the first product
code record appears at the top of the form. I would like the continuous form
to act like a combox with auto expand.
Thanks!
|
by: Kevin Wilcox |
last post by:
Hi
I'm trying to emulate, within access, the gantt chart timeline / task planner aspects of ms project. Creating the chart on the form has been easy enough; I use a series of unbound text boxes in the header to show the week numbers, with correlating unbound text boxes in the detail section of a continuous form to calculate a series of values for each task which, where these match the value in the header text box will change the colour of the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |