• Welcome to TodayPlus Boards v2.
 

Weather left arrow

Started by Blazingwolf, January 11, 2004, 10:17:33 AM

Previous topic - Next topic

joelw135

Scotty, I agree with you to one point, doing the copy and paste in this program sometimes doesn't work. But this time I typed it in, the reason I had my first problem is because I typed something wrong. If I removed the last endif, it crashed. Still can't figure it out.

Now here is a good one we ran into. I attempted to change the color of the temp high and lows for each day.  Added the code and it didn't work at first until I removed some of the blank spaces. Then the weirdest thing happened.  On refresh the first day dimmed but the buffer was not replaced.  How can a can a color change affect the code so drastically?
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

Scotty

Hi joelw135

Can you post your skin - I'll take a look. As I say above, I can't just accept that you need an extra endif -- darn it, the things should balance out !

Interesting that you, too, found that copy / paste didn't work.....I thought I was losing my mind  :D

All the best

Scotty

joelw135

Here is the skin, have fun. What ever you do don't purge the buffer, I am working on the update time turning red when information is 1 hour old. But if there is nothing in buffer it crashes. Maybe you can figure that one out.
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

Blazingwolf

Scotty,
It was all typed in by me. No cut and paste. I am still playing, but if it works I ain't going to complain.
Toshiba E800 WM2003 SE
Ipaq 3955 WM2003, SD and CF,Pocket Informant
Dell Axim X5 PPC2002 SD and CF (Wife's)

Scotty

Thanks, I'll take a look

Question:  above, in the code you posted, you wrote:

storevar,var0=1,0

what is the extra term at the end (,0)?? Why not just storevar,var0=1 ???

I suspect maybe things have changed (I am not enrolled as a beta tester, and the only reference file that I have access to is for 10.2 - and in that, the storevar command doesn't have the extra term that you included....)

All the best.......Scotty

Scotty

Quote from: BlazingwolfScotty,
It was all typed in by me. No cut and paste. I am still playing, but if it works I ain't going to complain.

I do know what you mean - but it should make sense......

All the best..............Scotty

Blazingwolf

I would like it to make sense also. The code I am using does not have the extra ,0 in like joelw135's and it still works like that. Here is the code in question:


initvar,var0,1

imagebutton,131,64,right_arrow.png,t,1,13,var0_1
button,131,64,12,24,0,4,0,0
imagebutton,120,64,left_arrow.png,t,1,13,var0_-1
button,120,64,12,24,0,2,0


   if,var,var0,,>,%var29%
      storevar,var0=1
      else
   endif

      if,var,var0,,<,1
          storevar,var0=%var29%
           else
       endif
endif

You can see where I added in some of the code you posted.
Toshiba E800 WM2003 SE
Ipaq 3955 WM2003, SD and CF,Pocket Informant
Dell Axim X5 PPC2002 SD and CF (Wife's)

joelw135

I am looking at the code, I don't no where you see that!
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

Blazingwolf

I think he meant the code you typed in an earlier post.
Toshiba E800 WM2003 SE
Ipaq 3955 WM2003, SD and CF,Pocket Informant
Dell Axim X5 PPC2002 SD and CF (Wife's)

Scotty

Hi joelw135

there is, I think, an extra endif in the skin that you posted. I have made your skin red, and the extra endif is in green.

// Icon is button to weather section

initvar,var0,1

imagebutton,144,23,right_arrow.png,t,1,13,var0_1
button,144,23,12,24,0,4,0,0
imagebutton,144,41,left_arrow.png,t,1,13,var0_-1
button,144,41,12,24,0,2,0

   if,var,var0,,>,%var29%
      storevar,var0=1
      else
   endif

      if,var,var0,,<,1
          storevar,var0=%var29%
           else
       endif

endif

load,city,%var0%

changefont,Frutiger Linotype,11,b
text,128,0,[name],c
changefont,Frutiger Linotype,12,

todayicon,114,23,,t
button,90,64,33,36,3,4,100,1
if,region,1,999
button,90,64,34,34,1,4,0,-1
button,90,64,34,34,4,4,999
button,90,64,34,34,10,4,999
else
endif
if,refresh
   color,font,125_125_125
else
   color,font,-1_4_-1
endif
color,font,0_255_255
today,realtemp,123,11,,°,c
color,font,255_255_255
color,font,255_153_0
today,humidity,142,11,,H,c
color,font,-1_4_-1

if,refresh
   color,font,-1_4_-1
else
      
endif

if,region,1,0
button,120,0,30,12,1,4,999,-1
else
button,120,0,30,12,1,4,0,-1
button,120,0,30,12,4,4,999
button,120,0,30,12,10,4,999
         if,region,4,0
         else
            if,region,10,0
            else
               button,169,0,11,11,-1,-1,0,-1
            endif
         endif
endif


Gotta go - my beloved is asking why I spend so much time at the computer  :wink:

All the best.....Scotty

Blazingwolf

That is the extra endif that makes this work for our skin. Can you see why we need it. I can't find anything that would need it.
Toshiba E800 WM2003 SE
Ipaq 3955 WM2003, SD and CF,Pocket Informant
Dell Axim X5 PPC2002 SD and CF (Wife's)

joelw135

That is the endif we are talking about, with out it the darn thing wouldn't work. Like you said it could be anything in the way the code was placed in the skin. I have had problems with spacing causing problems.
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

Scotty

Hi again

I left my wife watching TV  :)

I loaded joelw135's skin, and the scrolling worked....then I deleted the endif that we all agree should not be there -- and it STILL WORKED  :shock:

Curioser & curioser......

Just FYI, here's my skin (you'll recognize a lot of the code, Blazingwolf  :wink: ).....it's not really a ZIP, just DL, & change the extension from ZIP to TXT... then load it, and see if the scrolling works for you. Some of the images may not be there (we use different weather icons, and I've modifed a number of the buttons) but that's a detail...

Let me know....Scotty

Blazingwolf

Strange your works on my unit also. I think I will rewrite the whole section and see waht happens. Still doesn't make sense but we will see what happens.
Toshiba E800 WM2003 SE
Ipaq 3955 WM2003, SD and CF,Pocket Informant
Dell Axim X5 PPC2002 SD and CF (Wife's)

Scotty

One thing I have noticed about joelw135's skin:

Quoteimagebutton,144,23,right_arrow.png,t,1,13,var0_1
button,144,23,12,24,0,4,0,0
imagebutton,144,41,left_arrow.png,t,1,13,var0_-1
button,144,41,12,24,0,2,0

Several of the buttons overlap. Look at the left arrow button, drawn at 144,41. the "invisible" button drawn at 144,23 overlaps it (because that button is 12 by 24, so it extends down over the left arrow); and the top half of the "invisible" button at 144,41 also overlaps it....

Not sure if this is the problem.....but it means that, when you click on the left arrow, you activate 3 lines of code....

All the best.....Scotty