473,395 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Display hidden items with animation (easing/scrolling).

13
Does anyone knows how to display hidden items using easing/scrolling animation (can also be a component)?

Similar to the one use in the Weather docklet in ObjectDock (the video shows the 5-days being displayed the way I'd like to do)?


Thanks in advanced.
Feb 24 '09 #1
6 2716
tlhintoq
3,525 Expert 2GB
As for the dock... Looks like a total copy of the Macintosh dock.
Feb 25 '09 #2
skipbr
13
That dock was meant to be a copy, just like we have Vista alike apps in XP.

But what about the weather docklet? Any tip about how to achieve anything like that in C# (hover the mouse over an icon and then make it reveal another 5 items using motion)?
Feb 25 '09 #3
tlhintoq
3,525 Expert 2GB
Use the MouseHover event?

http://gallery.me.com/tlhintoq#10007...&bgcolor=black

Feb 25 '09 #4
skipbr
13
I know that... I thing I'm not being clear enough here.

Let me change my question them... How to make some animated effects in C#?
If you watch the movie in the first post, at 0:45, you'll notice the weather docklet working. When the mouse hover it for a while, it shows 5 items (upcoming days).
Those items have some sorta of easing/motion effect (it goes straight up and them unfold other 4 items) and that is what I'd like to learn how to do.
Feb 25 '09 #5
tlhintoq
3,525 Expert 2GB
Now I'm with you. You want to be able to do this...



Someone more knowledgable than I would have to describe how to do it via DirectX. I know that creating sprites would be one way.

But if it were me... I would design some sort of "WeatherPanelObject" class that is the white date, black panel, weather icon, weather text and temperatures. This can be something as simple as a form with a transparent back and no frame.

It will need methods for MoveLeft, MoveRight, MoveUp, MoveDown... SetDay, SetWeather, SetTemp and so on. (Change the .Location property) Looks like it will also need a SetOpacity method.

The animation is then just a matter of...

Expand|Select|Wrap|Line Numbers
  1. SetDay("Friday");
  2. SetWeather("Cloudy");
  3. SetTemp(35,Temp.Centigrade);
  4. SetOpacity(10);
  5. MoveUp();
  6. MoveUp();
  7. SetOpacity(15);
  8. MoveUp();
  9. MoveLeft();
  10. SetOpacity(25);
And so on to create the desired direction of movement.

Of course there are dozens of variations on exactly how certain parts could be done. That's where your programming style comes in. Maybe you don't want to explicity set the opacity as you move it. (Too much work for the sending method) So your WeatherPanelObject has its own timer that starts when it is first displayed and automatically increases the opacity every 500 milliseconds.

Maybe instead of having to send lots of MoveLeft(), MoveRight() commands you just want to send it an Argument of where it is supposed to be located like Position(1,5) meaning take up position 1 out of 5, which would be a different calculated position than if it were Position(1,3);

My personal plan would probably have all the methods for the parent class to move or change it, but send it an Argument class at creation that has all of its data (Temp, day, weather, position x out of y, etc.) then have it take control of itself from there. The creating parent class just has to make it. The child is does the rest on its own. The parent then can occassionally send updates if it is still on screen.
Feb 26 '09 #6
skipbr
13
Got it now.
In fact, I'm already working with a borderless form with no background, however I didn't think about creating others forms for the extra items... That way It definitely can be set its transparency (fading in/out)...

Thanks for clear up my mind. Have a nice day.
Feb 26 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: hiroshi ochi | last post by:
Hello, Using MSIE 6.0 and above, with javascript is it possible to display an individual tooltip for each item in a listbox? I need this functionality to show the listitems that are longer...
3
by: bitsyboffin | last post by:
Hi all, does anybody know of a bug in MacIE which prevents style.display = 'none' and style.visibility = 'hidden' from "sticking" in MacIE? I'm making some graphical checkboxes & radios (I know,...
13
by: Benjamin Smith | last post by:
I am controlling the display status of a table row using the following code. <TR id="CCRow" style="DISPLAY:none"> Instead of hard coding "none" above, I would like to change that value using a...
2
by: Jake Barnes | last post by:
Imagine I've this block of HTML: <p>Alex Schein Mailing List <input type="checkbox" name="newslettersToUse" value="133156"> (<a href="mcControlPanel.php"...
3
by: Mark Szlazak | last post by:
The following page simulates a pool cue and cue ball: http://members.aol.com/myscript/cue.html Mouse cursor position around the cue ball determines where a roll-over of 179 pool cue images is...
1
by: rbinington | last post by:
Hi, I am trying to write a DNN module that has the ability to insert articles into an article repository. I want the users to be able to move pages around and enter text into the FCKEditor. I...
2
by: assgar | last post by:
Hi Multiple rows of dynamically created data is retrived from the database and displayed properly. When I get 50 rows displayed scrolling is necessary. The problem is when I scroll to see the...
4
by: avicalc | last post by:
I need help with the structure of a JavaScript program. My process is as follows: 1) Get JSON data via XMLHttpRequest. 2) When done with the above, process the JSON data which may take up to 3...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.