Results 1 to 14 of 14

Thread: [RESOLVED] Image Glow Efect [help]

  1. #1

    Thread Starter
    Addicted Member *PsyKE1*'s Avatar
    Join Date
    Jun 2010
    Location
    Spain
    Posts
    243

    Resolved [RESOLVED] Image Glow Efect [help]

    Hi all, to see if you can help me:
    I have an Image and I wanted to give a button, it acquired a glow effect.
    Currently I do is put two pictures and when I hit the hidden button and show the normal which has the glow effect ...
    But I think it could be done using APIs, right?

    Thanks in advance

  2. #2

  3. #3

    Thread Starter
    Addicted Member *PsyKE1*'s Avatar
    Join Date
    Jun 2010
    Location
    Spain
    Posts
    243

    Re: Image Glow Efect [help]

    Normal:

    Whit Glow effect:


    Thanks

  4. #4
    Addicted Member reacen's Avatar
    Join Date
    Jul 2009
    Location
    c:\windows\system32\gdi32.dll
    Posts
    243

    Re: Image Glow Efect [help]

    Hi, do you mean something like this? (see attached file).
    Attached Files Attached Files
    DoEvents

  5. #5
    Fanatic Member FireXtol's Avatar
    Join Date
    Apr 2010
    Posts
    874

    Re: Image Glow Efect [help]

    GDI+ can probably do something like that, depending on how elaborate you want to make it I'd say it can do exactly what you want.

  6. #6

    Thread Starter
    Addicted Member *PsyKE1*'s Avatar
    Join Date
    Jun 2010
    Location
    Spain
    Posts
    243

    Re: Image Glow Efect [help]

    Thank you very much reacen!
    I was doing something similar, but I think it can be done with APIs and based on only the normal button, can I explain?

    GDI+ can probably do something like that, depending on how elaborate you want to make it I'd say it can do exactly what you want.
    Yeah i wanna something like that!
    I do not need a very professional result :P

  7. #7
    Addicted Member reacen's Avatar
    Join Date
    Jul 2009
    Location
    c:\windows\system32\gdi32.dll
    Posts
    243

    Re: Image Glow Efect [help]

    Quote Originally Posted by *PsyKE1* View Post
    Thank you very much reacen!
    I was doing something similar, but I think it can be done with APIs and based on only the normal button, can I explain?
    Im sorry, I don't understund. Do you mean like a command-button? A simple OCX control instead of all that code?
    and by "glow effect" do you mean the fading in, and fading out effect?

    Sorry about my english..
    DoEvents

  8. #8

    Thread Starter
    Addicted Member *PsyKE1*'s Avatar
    Join Date
    Jun 2010
    Location
    Spain
    Posts
    243

    Re: Image Glow Efect [help]

    Ok, suppose I have this button:

    Then when I positioned the cursor over it, showed an effect similar to this:

    But without having to use two images, ie using Apis.

    Regards

  9. #9
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Image Glow Efect [help]

    I don't know about anyone else, but I cannot see any of your pictures.

    Rather than uploading them to an external site, please attach them here instead - which you can do by clicking "Post Reply" (or "Go Advanced" from the Quick Reply or Edit), then "Manage Attachments".

  10. #10
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Image Glow Efect [help]

    Try this... (without using API's)

    Set the backcolor of commandbutton to anything except the default color
    Set the style of commandbutton to graphical

    Code:
    Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, _
    X As Single, Y As Single)
        If Command1.BackColor <> &HFFFF00 Then _
        Command1.BackColor = &HFFFF00
    End Sub
    
    Private Sub Form_MouseMove(Button As Integer, Shift As Integer, _
    X As Single, Y As Single)
        If Command1.BackColor <> &HC0C0C0 Then _
        Command1.BackColor = &HC0C0C0
    End Sub
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  11. #11

    Thread Starter
    Addicted Member *PsyKE1*'s Avatar
    Join Date
    Jun 2010
    Location
    Spain
    Posts
    243

    Re: Image Glow Efect [help]

    Ok, but i haven't a command i have a image...

    Thacks :P

  12. #12
    Addicted Member reacen's Avatar
    Join Date
    Jul 2009
    Location
    c:\windows\system32\gdi32.dll
    Posts
    243

    Re: Image Glow Efect [help]

    Well, I still don't know what you mean. But here you have all the three ways I know to make a graphic button, please see the attached file.
    Attached Files Attached Files
    DoEvents

  13. #13

    Thread Starter
    Addicted Member *PsyKE1*'s Avatar
    Join Date
    Jun 2010
    Location
    Spain
    Posts
    243

    Re: Image Glow Efect [help]

    OK, thanks It can help me...
    Which of the three ways you make me advice?

    Thanks!

  14. #14
    Addicted Member reacen's Avatar
    Join Date
    Jul 2009
    Location
    c:\windows\system32\gdi32.dll
    Posts
    243

    Re: Image Glow Efect [help]

    I'd say the ActivX one (OCX), as its verry simple, less code, and clean.
    Good luck.
    DoEvents

Posting Permissions

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



Click Here to Expand Forum to Full Width