Showing results 1 to 3 of 3

Thread: MouserOver on button

  1. #1
    Join Date
    26.10.2018
    Posts
    2

    Default MouserOver on button

    Hi,

    I want to add a mouseOver effect on buttons using VBA. So far my code goes as follows :

    Public Sub MouseOver_Color(obElem As Element, vPosX As Variant, vPosY As Variant)
    obElem.BackColor = RGB(246, 152, 4)
    obElem.ForeColor = RGB(255, 255, 255)
    obElem.Update
    End Sub

    But I would like to also modify the shadow and transparency of the button when the mouse is on it. 
    How can I achieve that?

    Thanks !


  2. #2
    Join Date
    12.05.2019
    Posts
    2

    Frage Re: MouserOver on button

    Hi,
    did you find something?
    I did also what you did but I want to cancel the MouseOver!
    Are you now how can i this implement

  3. #3
    Join Date
    26.10.2018
    Posts
    2

    Default Re: MouserOver on button

    Quote Originally Posted by Omarzubair View Post
    Hi,
    did you find something?
    I did also what you did but I want to cancel the MouseOver!
    Are you now how can i this implement

    Hi,
    I think you can use Nixon's solution, it is described on this thread https://forum.copadata.com/showthread.php?7441-MouseOver-HoverEffect-With-VBA-Free-Code-snippet


Similar Threads

  1. Button creation
    By satyngar in forum zenon Supervisor
    Replies: 1
    Last Post: 14th July 2014, 11:37
  2. Button flashing
    By tihomir in forum zenon Energy Edition
    Replies: 3
    Last Post: 25th April 2013, 13:00
  3. button with password
    By apet in forum zenon Supervisor
    Replies: 1
    Last Post: 12th April 2013, 12:19
  4. Button
    By rookie in forum zenon Supervisor
    Replies: 4
    Last Post: 28th September 2010, 06:52
  5. Button
    By rookie in forum zenon Supervisor
    Replies: 1
    Last Post: 24th September 2010, 12:20

Tags for this Thread

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •