From: Michael K. <mic...@ch...> - 2005-01-21 13:35:08
|
Leif W wrote: > Err, Hi! *blink* Nobody answered yet? Nope and i already gave up hope ;) > That's DynAPI 3 beta 1, correct? Did you by chance try to get the CVS > version? I assume it's the latest CVS version. I found a snapshot on some page (don't remember which one) but i got files from oktober 2003 in it and beta 1 was released before that, but if it helps i can get the latest CVS HEAD again. >> var LoginButton=LoginCredentials.addChild(new >> Button(null,77,127,111,27,'ButtonImage')); >> LoginButton.setLocalStyleAttribute('imageOn',dynapi.functions.getImage('images/login_button.jpg',110,27)); >> >> LoginButton.setLocalStyleAttribute('imageOff',dynapi.functions.getImage('images/login_button.jpg',110,27)); > Well I'll go try this code myself with both DynAPI 3 beta 1 and the CVS > version. Would you do it differently? > In which browser(s) and which version(s) and which operating system(s)? > And what were the error messages, if any? Is debugging enabled in the > browser (IE)? Or anything in the JavaScript console (Mozilla family). Windows XP with Opera 8 (*g*), IE 6 something (SP2) and latest FireFox. No Error in any of the browser builtin console. I used the dynapi debugger to inspect my LoginButton. Interesting thing it shows this: x = 77 y = 127 w = 22 h = 22 Width and Height are both set to 22 (default image size) >> Any wild guesses here? > Nope! Only some very timid guesses, but they're sleeping right now. Another thing i noticed: If i load the page i see the Button (22x22 size of course) with blue default image. If i click it i see my image (again a clipped version only upper left 22 pixel) after mouse button is released i see the imageOff version (clipped again). So i think there is something wrong with the loading and init procedure of the button. It first sets the size to default image and shows it. If i use the button it takes my images (always cut to the 22 pixel) hope this helps to track it down. Investigating the LoginButton.imageOff with dynapi debugger shows nothing wrong. it's the correct image and the correct sizes. > BTW Farscape is awesome! I know. Whish it had even more support to return to TV screen. -- Michael Kunze http://www.smrealms.de How much Sex can you have? - I don't know. I havn't maxed out yet. (John Crichton in Farscape) |