Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How to create interactive buttons?
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Ashi_Mashi2




PostPosted: Thu Apr 21, 2005 8:57 pm   Post subject: How to create interactive buttons?

Hey guys....i want to know how can i create the interactive buttons in VB..like the ones that Win XP uses (turns blue on mouse-over) or the ones in MSN plus..thanks
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Fri Apr 22, 2005 8:37 am   Post subject: (No subject)

I haven't done VB in a long while, but I think in the code window, you select your object from a dropdown in top left, and event from top right (or something like that.

So. myButton -> mouseOver
code:

Sub myButton_mouseOver()
    myBotton.property = value
end


don't forget to change it back when the mouse is no longer over. I don't remember which event that is, but it's there Laughing
Ashi_Mashi2




PostPosted: Fri Apr 22, 2005 5:11 pm   Post subject: (No subject)

thanks....but, i wanna know if there's any special application/api that would automatically convert the buttons to the cool ones...i dont want to define everything for it;)....thx
Tony




PostPosted: Fri Apr 22, 2005 6:13 pm   Post subject: (No subject)

I donno..

if you use an array of buttons instead, you'd have to define everything just once.
Brightguy




PostPosted: Tue Apr 26, 2005 12:10 am   Post subject: Re: How to create interactive buttons?

There's a MouseMove event, but from that alone you can't tell when the cursor has moved off the button. You could use the Form_MouseMove event to tell that, but it's not perfect. Alternatively, you could try the GetCursorPos winAPI function.

If you want all of your buttons to have a special feature, you could start your own ActiveX control and write the necessary code in that, and then use that control in place of the normal command buttons.
betaflye




PostPosted: Thu Apr 28, 2005 7:32 pm   Post subject: (No subject)

http://www.ingenuware.com/ makes some Visual BASIC activex controls which may be helpful to achieve some "flash" to your program. ImpulseStudio 3 has some button controls I find particularly useful and pretty. The timer, multimedia and new form controls are nice, it's particularily expensive though given it's for VB6 only and hasn't been updated in a while.
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: