Does anyone know how to create a command button
like IE's command button? What I meant is
the button raises when the mouse hover over it.
Are there any ActiveX out? Please let me know.
Thanks,
Laura
Printable View
Does anyone know how to create a command button
like IE's command button? What I meant is
the button raises when the mouse hover over it.
Are there any ActiveX out? Please let me know.
Thanks,
Laura
Laura,
I think that Microsoft have just used the MouseMove event.
I think it was something like that: (or close to it)
Where the Blah-Blah lines are the code for highlighting the command box object.Code:Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
'blah
'blah
End Sub
Lior, An Israeli Programmer.
Hello Laura,
If you are using VB6 then take a look at the toolbar. It has the ability to be used as a "flat" toolbar along with the three types of images that the IE toolbar has. If you don't have VB6 then you will need to impliment your own toolbar. Take a look around the net I have seen in the past quite a few "toolbar" demo apps out there.
Hope this helps a little.
Roger
Hi everyone, If you find any activeX that acts like IE toolbar, please let me know. I'm using VB5
hi kedman, what do ya need exactly, a toolbar acts like IE's or a button does the same thing, if it's a button i remember i'v coded some activex control does the same thing, if so let me know and i'll try to find it and send it to you,,,,
What I meant was a command button replacement for the VB6 command button that acts like IE's command button. Mih_flyer, if you have the activeX please email me.
Thanks,
Laura
Laura, I'm little confused by what exactly you're asking for. Do you mean the "floating toolbars" that IE uses? If this is what you're asking for then you can find the control by adding it from the Project > Components dialog. Add the following Control:
Microsoft Windows Common Controls-3 6.0
This will add the CoolBar control. Naturally, this can only be added in VB6, it may be available in VB5, but I'm unsure from where.
I hope this is what you're where asking for, if not explain what it is you need exactly.
Hi Mih_Flyer! Yes! send me that ActiveX to me, please. Thanks!
Hello Laure,
I was thinking about your post and I once wrote a Tic Tac Toe game with buttons like the IE toolbar. The way I did this was with a array of picture boxes and separate images for the flat up and down positions. I still have that game on my machine here someplace if you would like to see it I could send it over to you. I know it's not a control that would be too easy but still it does what your looking for.
Best
Roger
RVA, Please send it to me. My email is [email protected].
THanks,
Laura
Hello kedman, The activex i told ya about i lost it, but i can make one for you if you would like to, i'm free and i have nothing to do, sorry coz my replay came late coz i had to travel and i just came back, please reply as soon as possible.
Have a look at the vbaccelerator site.
They have all kind of cool controls, and you can download the source code to.
http://www.vbaccelerator.com/codelib/comctl/retbar.htm
Thanks to everyone helping me out. Especially the last one.
Frans, I'm having problem installing the control from vbaccelerator. I downloaded vbalTbar.OCX and cNewMenu.DLL but still not work.
The exefile shows this error:
Run-time error "429": ActiveX component can't create object
and the code stops at "Private WithEvents m_cMenu As cPopupMenu" where it says "Can't find project or library"
I don't get it. Please help.1
Don't forget to read the small print.
These projects require the SSubTmr.DLL component. Make sure you have loaded and registered this before trying any project.
http://www.vbaccelerator.com/codelib...mr/ssubtmr.htm
P.S. You can use regsvr32 to register.
Still don't work, what is that Service pack 2? Do I need that?
Try the DevPower (http://www.devpower.com) flat button control. I've used it for a long time and it is great! The only problem is that it doesn't have what I was looking for, a MouseEnter and MouseExit event, but it does the eye candy that you're talking about.
I think the problem is that these controls where compiled with vb5. If you use vb6, you need the msvbvm50.dll.
Or maybe even better, download the source code and compile them yourselve. That way you don't need to deploy 2 of these bulky vb dll's with your app.
I download the Flat Button, how do you add the menu items to
the button?
i HAVE VB5 and I run both the source code, and the exe, the ocx is already compiled (and I don't want to boy the source for it) So I'm out of ideas, I really like to have that activeX. I installed the goldfish, but it doesn't work, the goldfish crashes.
I tested flatbutton to but it's too unstable, pressing a button here, pressing another button, and it crashes. And for the souce, it crashes my system.
:mad::mad::mad::mad::mad::mad::mad::mad::mad::mad::mad::mad::mad:
AARGH! I'm just about to make my own control, and it allready supports mouseenter and exit.
Sorry, but I am out of ideas.