![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Programmer
Join Date: Dec 2007
Posts: 93
Rep Power: 1
![]() |
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. |
|
|
|
|
|
#2 |
|
Professional Programmer
|
Re: Animation Issue -
__________________
JG-Webdesign |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Dec 2007
Posts: 93
Rep Power: 1
![]() |
Re: Animation Issue -
I sort of got confused on the second link, could you please explain?
|
|
|
|
|
|
#4 |
|
Programmer
Join Date: Dec 2007
Posts: 93
Rep Power: 1
![]() |
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?
|
|
|
|
|
|
#5 | |
|
Caffeinated Neural Net
![]() Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,033
Rep Power: 5
![]() |
Re: Animation Issue -
Quote:
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.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
|
|
#6 |
|
Programmer
Join Date: Dec 2007
Posts: 93
Rep Power: 1
![]() |
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! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |