MouseOver Event?

Post

Posted
Rating:
#1 (In Topic #625)
Regular
01McAc is in the usergroup ‘Regular’
For my ongoing little project "A Personal Lens Register" I am desperately looking for a MouseOver sort-of-event. But first things first.
The form where the lens rating is shown (attached) has 10 criteria to rate a lens. My use case is just that simple: whenever I hovering the mouse over one of the 10 panels (e.g. Landscape, Lens Focal Throw, Vignetting, etc) a help text should appear on the right hand side. Any ideas how to show up a help text without clicking to any objects?
Image

(Click to enlarge)

Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
Run this code in a "Graphical application". I think this is what you are looking for.

Code (gambas)

  1. TextLabel1 As TextLabel
  2. HBox1 As HBox
  3. Label1 As Label
  4.  
  5. Public Sub Form_Open()
  6.  
  7.   With Me
  8.     .h = 200
  9.     .w = 700
  10.     .Padding = 5
  11.     .Arrangement = Arrange.Vertical
  12.  
  13.   With TextLabel1 = New TextLabel(Me) As "TextLabel1"
  14.     .Expand = True
  15.     .Alignment = Align.Center
  16.  
  17.   With HBox1 = New HBox(Me)
  18.     .H = 28
  19.  
  20.   With Label1 = New Label(HBox1) As "Label1"
  21.     .H = 28
  22.     .Expand = True
  23.     .Alignment = Align.Center
  24.     .background = Color.Yellow
  25.     .Font.Bold = True
  26.     .Text = "Hover over me!"
  27.  
  28.  
  29. Public Sub Label1_Enter()
  30.  
  31.   TextLabel1.Font = Font["55,bold"]
  32.   TextLabel1.Text = "Hello 01McAc!"
  33.  
  34.  
  35. Public Sub Label1_Leave()
  36.  
  37.   TextLabel1.Text = ""
  38.  
Online now: No Back to the top

Post

Posted
Rating:
#3
Regular
01McAc is in the usergroup ‘Regular’

cogier said

I think this is what you are looking for.

Indeed, this is it.
And it's the Enter-event! I am still blinded by Access.
Thank you.
Online now: No Back to the top
1 guest and 0 members have just viewed this.