|
From: Michael K. <mic...@ch...> - 2005-01-17 01:07:12
|
Hi,
i got some problems with the new ButtonImage form the latest snapshot.
i've got the following code:
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));
I think i tried everything but the results are always the same. The
DynAPI just creates a small button with the default blueish image (22x22
pixel). Found that in the sourcecode.
Unfortunatly documentation is some kind limitted. Any wild guesses here?
--
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)
|
|
From: Leif W <war...@us...> - 2005-01-21 12:17:00
|
> Michael Kunze; 2005 January 16 Sunday 20:05
>
> Hi,
Err, Hi! *blink* Nobody answered yet?
> i got some problems
So have I. ;-)
> with the new ButtonImage form the latest snapshot.
That's DynAPI 3 beta 1, correct? Did you by chance try to get the CVS
version?
> i've got the following code:
>
> 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.
> I think i tried everything but the results are always the same. The
> DynAPI just creates a small button with the default blueish image
> (22x22
> pixel). Found that in the sourcecode.
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).
> Unfortunatly documentation is some kind limitted.
Yeah. :-\
> Any wild guesses here?
Nope! Only some very timid guesses, but they're sleeping right now.
> How much Sex can you have? - I don't know. I havn't maxed out yet.
> (John Crichton in Farscape)
BTW Farscape is awesome!
Leif
|
|
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)
|
|
From: Raymond I. <xw...@ya...> - 2005-01-24 15:24:08
|
The strange thing is that the snapshots should run
nightly builds but it just not doing it.
I've tried to get it working once but no luck what so
ever. I don't have access to do that task it seems.
The other thing is that we can't even get the website
updated. The guys who are mor knownledgeable about the
system have moved on to other things.
Try using CVS directly.
__
Raymond Irving
--- Michael Kunze <mic...@ch...> wrote:
> 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)
>
>
>
-------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW --
> Interactive Reporting
> Tool for open source databases. Create drag-&-drop
> reports. Save time
> by over 75%! Publish reports on the web. Export to
> DOC, XLS, RTF, etc.
> Download a FREE copy at
> http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Dynapi-Help mailing list
> Dyn...@li...
>
https://lists.sourceforge.net/lists/listinfo/dynapi-help
>
|