-
March 26th, 2014, 06:42 AM
#1
javascript effect in vc++
home page of http://paolapalaciosdesign.com/ has thumbnails and when you hovering them, you can see transparent thumbnail will show up on the same thumbnail. but this have done in javascript.
What I want is, to do this in VC++ for a software. And in that software, that transparent thumbnail should be showed underneath the hovering thumbnail. Then all the other thumbnails(contents) which were below that thumbnail should automatically move to downside.
Please anyone know how to do that?
-
March 26th, 2014, 07:24 AM
#2
Re: javascript effect in vc++
1) by writing a lot of code.
2) per pixel Transparency is done either using GDI+ or by using the AlphaBlend() GDI function.
-
March 26th, 2014, 09:44 PM
#3
Re: javascript effect in vc++
By using Visual C++, you can use GDI+ or Direct2D to do this. But Direct2d need Windows 7 UP.
Andy
--------------------------------------------
E-XD++ Visualization Kit at code-home.com
-
March 27th, 2014, 01:19 PM
#4
Re: javascript effect in vc++
A quick and easy solution would be using MouseMove() message handler to track hovering area and change respective image using memory dc and BitBlt and finally DrawText on desired location.
Basically this method requires, different state images to be supplied.
◄◄ hypheni ►►
-
March 27th, 2014, 02:07 PM
#5
Re: javascript effect in vc++
Originally Posted by hypheni
A quick and easy solution would be using MouseMove() message handler to track hovering area and change respective image using memory dc and BitBlt and finally DrawText on desired location.
Basically this method requires, different state images to be supplied.
Yep, if you view source on the website, you can see that they are doing exactly that, i.e using two different images.
-
March 28th, 2014, 03:05 AM
#6
Re: javascript effect in vc++
I assume it is too hard to do it in an application using C++. So I change the mind to do an alternative thing instead of what i explained to do in the post.
Thanks for the all replies. Those helped to get some idea about this.
-
March 29th, 2014, 02:22 AM
#7
Re: javascript effect in vc++
Originally Posted by jrmkr
I assume it is too hard to do it in an application using C++. So I change the mind to do an alternative thing instead.
Well, seems you give up too easy. There's nothing hard in doing this using C++. Start with a single thumbnail and understand the principle. Later you can expand your solution.
Best regards,
Igor
-
March 28th, 2014, 03:45 AM
#8
Re: javascript effect in vc++
Yes you need to have some grip on VC++ alnog with C++ to do this. And its quite possible to implement the same in desktop application.
◄◄ hypheni ►►
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|