Expanded Hover (1 Viewer)

Thales750

Formerly Jsanders
Local time
Today, 10:13
Joined
Dec 20, 2007
Messages
2,093
Modern buttons are made to be extremely user friendly by the hover effect.

Casual users can instantly navigate complicated links and functions.

Microsoft uses it everywhere: From selecting files to open, to highlighting in the navigation pain, even in the relationship window the hover-change color effect, is everywhere.

Yet, they have left off this function from, List Boxes, Datasheet Views, or Continuous Forms.

Why is that?
 

spikepl

Eledittingent Beliped
Local time
Today, 16:13
Joined
Nov 3, 2010
Messages
6,142
You want us to debate a decision already made by Microsoft and then agree with it or disagree with it or pontificate upon it?
 

Thales750

Formerly Jsanders
Local time
Today, 10:13
Joined
Dec 20, 2007
Messages
2,093
I want to start a dialog, with the goal of getting Microsoft to evaluate their decision.

However, I am also interested in other people's opinion of this concept.
 
Last edited:

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 09:13
Joined
Feb 28, 2001
Messages
27,150
Given the number of questions we get on this forum about conditional formatting for continuous forms to implement one-line highlighting, I suspect that there is some difficulty in the hover effect staying focused on and limited to one item among the many clones thereof potentially on the same page.

Given that datasheet view is actually a "default" continuous form with all its fields in a minimalist tabular format, I would guess that the problem from continuous forms spilled over into datatsheet view.

I honestly hadn't noticed the issue for List Boxes but your comment makes me suspect that some part of the code for list boxes must somehow be shared from continuous forms and datasheet views. Whatever the source of the difficulty, all three of those features share it.

I'm not where I can easily check this. Does the problem extend to combo boxes, too?
 

AccessBlaster

Registered User.
Local time
Today, 07:13
Joined
May 22, 2010
Messages
5,920
Modern buttons are made to be extremely user friendly by the hover effect.

Casual users can instantly navigate complicated links and functions.

Microsoft uses it everywhere: From selecting files to open, to highlighting in the navigation pain, even in the relationship window the hover-change color effect, is everywhere.

Yet, they have left off this function from, List Boxes, Datasheet Views, or Continuous Forms.

Why is that?
The real question is can you put a control on a control. I don't think so. You can place controls on objects like forms.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 09:13
Joined
Feb 28, 2001
Messages
27,150
Blaster, there is always the "ToolTips" function that puts a PROPERTY on a control that makes the hover function non-trivial. That is, in a way, putting a text-box control on a control of some other type. So it isn't quite as trivial as saying you can't put a control on a control.
 

Thales750

Formerly Jsanders
Local time
Today, 10:13
Joined
Dec 20, 2007
Messages
2,093
Well, there are some technological road blocks to overcome. But I'm guessing the super Geeks out in Redmond would be able to solve them, given a certain level of motivation.

So I'm going to champion this, because we currently, as far as I know, have no way to create a hover event over a dynamic list.

However, I was thinking that a finite list could be made from a column of toggle buttons that had their visibility, caption, and option value, controlled by a loop, then the on-update event of the option group could refer to a query or a select case for opening a form or report etc.
 

AccessBlaster

Registered User.
Local time
Today, 07:13
Joined
May 22, 2010
Messages
5,920
... as far as I know, have no way to create a hover event over a dynamic list.

Lets say you could create a hover event on a listbox. How would you use it? Would the listbox change color when hovered?

Richard
 

jdraw

Super Moderator
Staff member
Local time
Today, 10:13
Joined
Jan 23, 2006
Messages
15,379
I saw this code on a different list. The OP had a button on a form and wanted to do something when the mouse pointer was on the button vs off the button. Perhaps you can modify/adjust to get something working.

Here is the code/response that was given:

Code:
 If you are looking for a solution that is self contained within
 control's MouseMove event. You could experiment with sample code 
given below:

' Code in form's module
'==============================
' Declarations section
Private gX As Single, gY As Single
'---------------------------------------------

Private Sub CmdTest_MouseMove( _
                    Button As Integer, _
                    Shift As Integer, _
                    X As Single, Y As Single)

    With Me.CmdTest
        Me.CmdTest.Caption = "Test (MM)"

        If gX <> 0 Then
            If (X > (0.9 * .Width) And X > gX) _
                        Or (X < (0.1 * .Width) And _
                        X < gX) Then
                Me.CmdTest.Caption = "Test"
            End If
        End If

        If gY <> 0 Then
            If (Y > (0.9 * .Height) And Y > gY) _
                        Or (Y < (0.1 * .Height) And _
                        Y < gY) Then
                Me.CmdTest.Caption = "Test"
            End If
        End If
    End With

    gX = X
    gY = Y
End Sub
'==============================

    Normal caption of command button named CmdTest is "Test". 
When mouse pointer is brought over it, the caption changes to "Test 
(MM)". As & when the mouse pointer moves away from the control,
 the caption reverts back to normal, i.e. "Test".

    Note:
    (a) MouseMove event fires in rapid-fire style. Values for X and Y 
returned by this event have a range from 0 upto the width and height 
(in twips) of the control in question.

    (b) The multiplying factors of 0.9 and 0.1 used in the sample code 
could perhaps be fine tuned further (say 0.95 and 0.05) so as to 
narrow down the twilight zone. However a coarser setting as adopted
 above, is found conducive to more consistent behavior. 
This is because a deliberately wild mouse sweep by the user can result
in X or Y value getting truncated short of the potential maximum, even 
though the mouse pointer has moved out. [[COLOR="Silver"]from ADT[/COLOR]]
 

Thales750

Formerly Jsanders
Local time
Today, 10:13
Joined
Dec 20, 2007
Messages
2,093
Lets say you could create a hover event on a listbox. How would you use it? Would the listbox change color when hovered?

Richard

Yes that record (line) would turn a color. Indicating preselection.
 

Users who are viewing this thread

Top Bottom