Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 25th, 2008, 4:48 PM   #1
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Exclamation Animation Issue -

Sup guys,

Recently I found out how to handle/work with dialog boxes and have run into a snag. As most of you should know; when you're setting the size of the dialog in the resource it is NOT in pixels but rather something called dialog units. This causes an issue in my program because I need to do an animation(using SetWindowPos(...)) that works with it's size. But the thing is that it's size varies computer to computer, so if I correct the animation on my computer it comes up messed on another one . Is there anyway to keep the animation the same/a constant on other computers?

Please help! :-|

Thanks.
pcbrainbuster is offline   Reply With Quote
Old Jan 25th, 2008, 5:28 PM   #2
Wizard1988
Professional Programmer
 
Wizard1988's Avatar
 
Join Date: Oct 2005
Location: Chitown
Posts: 416
Rep Power: 3 Wizard1988 is on a distinguished road
Send a message via AIM to Wizard1988
Re: Animation Issue -

How about using Google??


http://www.google.com/search?hl=en&q...=Google+Search
__________________
JG-Webdesign
Wizard1988 is offline   Reply With Quote
Old Jan 25th, 2008, 7:13 PM   #3
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Re: Animation Issue -

I sort of got confused on the second link, could you please explain?
pcbrainbuster is offline   Reply With Quote
Old Jan 25th, 2008, 7:15 PM   #4
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Re: Animation Issue -

Now that I think about it, is there a way to keep the font the same no matter what the default is?
pcbrainbuster is offline   Reply With Quote
Old Jan 27th, 2008, 3:18 AM   #5
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 925
Rep Power: 4 lectricpharaoh will become famous soon enough
Re: Animation Issue -

Quote:
Originally Posted by pcbrainbuster
Now that I think about it, is there a way to keep the font the same no matter what the default is?
The whole point of using dialog units is to accommodate various display properties (font size in particular).

If you've ever been presented with a fixed-size window where text or various controls run off the edge, and thereby become inaccessible, you will know the dangers inherent in assuming the user has certain settings in place. Some users may have changed the default fonts, and so long as you specify your own fonts (and these fonts are installed), this won't be a problem. A more serious issue arises when users enable font scaling, in particular to use larger-than-normal fonts for visibility (perhaps their monitor has a very fine pitch, or their vision is sub-par). This will scale up all fonts, and if you assume (or force) GDI rendering to be in terms of pixels, you'll have problems.

You should be able to convert the absolute (pixel) units to the logical (dialog) units at runtime, and adjust the positioning of your animation and controls accordingly.
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp
lectricpharaoh is offline   Reply With Quote
Old Jan 27th, 2008, 7:06 AM   #6
pcbrainbuster
Programmer
 
Join Date: Dec 2007
Posts: 93
Rep Power: 1 pcbrainbuster is on a distinguished road
Re: Animation Issue -

But I just can't seem to understand that Actually I have an idea; could someone please create an example in which they use WM_TIMER for animations in a dialog? Just increase the dialog by 10 dialog units in the animation, this should clear up my problems.

Thanks!
pcbrainbuster is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Animation on WebForms JO90 Visual Basic .NET 4 Nov 14th, 2007 12:08 AM
Major IE6 issue + CSS Kezzer HTML / XHTML / CSS 1 May 29th, 2007 7:52 AM
Infinate Loop Issue emdiesse Java 1 May 22nd, 2007 2:54 AM
deciphering animation binary rwm C++ 7 Jan 11th, 2007 9:28 AM
Display Driver Issue with Widescreen LCD brokenhope Coder's Corner Lounge 7 Dec 25th, 2006 10:00 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:47 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC