Bílý vrch
icon TrekBuddy
www.trekbuddy.net
Outdoor companion.
  • internal / bluetooth / simulator GPS
  • offline raster maps
  • smart GPX / raw NMEA logs
  • waypoints and simple navigation
  • custom views
  • MIDP and Symbian phones
  • Blackberry
  • Android
Visit wiki to see all features, guides and howtos. Project tracker.

Partners:    (Polish/Polski)(Polski) Compass mapy      (Polish/Polski)(Polski) Galileos mapy      (Polish/Polski)(Polski) CartoMedia      (Czech/Èesky)(Èesky) Eaglesoft trasy      (Polish/Polski)(Polski) ExpressMap     

 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
scrolling images like .g-sliding does

 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Themes
View previous topic :: View next topic  
Author Message
eternnit



Joined: 01 Dec 2008
Posts: 3

PostPosted: Fri Jan 15, 2010 10:36 am    Post subject: scrolling images like .g-sliding does Reply with quote

Hello,

This code allows to show a portion of the image "compass.png"

<area x="0" y="167" w="200" h="25" image="compass.png">
<value>{course.g-sliding}</value>
</area>


In a similar way, I try to build a graph by scrolling several images.

"grph.png" is an image 100x100 pixels. I try to show the section of the image delimited by the rectangle x=10 y=0, x=11 y=100 in the
coordinates 80,80:

<area x="80" y="80" w="1" h="100" image="grph.png">
<value>10</value>
</area>


But I get unexpected results. ¿Which is the real value of the variable course.g-sliding?

thanks in advance
Back to top
View user's profile Send private message
MrTom



Joined: 10 Nov 2009
Posts: 143
Location: SW Utah, U.S.A.

PostPosted: Fri Jan 15, 2010 11:28 pm    Post subject: Reply with quote

Hopefully some information here will provide a flash of inspiration:
http://www.hecl.org/docs/midp20commands.html

http://www.hecl.org/docs/lcdui_image.html
RUN TICKER SCRIPT: http://www.heclbuilder.com/scripts/show/155
http://www.hecl.org/docs/lcdui_ticker.html
lcdui.ticker — Creates a ticker that scrolls horizontally.
**********************************************************
set ticker [lcdui.ticker -text "The time is [clock format [clock time]]"]
set form [lcdui.form -title "Ticker Example" -ticker $ticker]
$form setcurrent

proc updateTicker {ticker} {
$ticker configure -text "The time is [clock format [clock time]]"
after 1000 [list updateTicker $ticker]
}

after 1000 [list updateTicker $ticker]
**********************************************************
Back to top
View user's profile Send private message
eternnit



Joined: 01 Dec 2008
Posts: 3

PostPosted: Mon Jan 18, 2010 8:01 am    Post subject: Reply with quote

Thanks.

But this is not exactly what I looking for Sad

I want to show one single column (1 pixel width) of this image:

[grph.png]

So each <area> represents a single data item in a column chart:

<area x="80" y="80" w="1" h="100" image="grph.png">
<value>10</value>
</area>

<area x="81" y="80" w="1" h="100" image="grph.png">
<value>50</value>
</area>

<area x="82" y="80" w="1" h="100" image="grph.png">
<value>30</value>
</area>

...

In similar way that {course.g-sliding} is used to scroll the image compass.png



grph.png
 Description:
image base to build chart
 Filesize:  23.38 KB
 Viewed:  5206 Time(s)

grph.png



grphbuild.gif
 Description:
chart build howto
 Filesize:  17.47 KB
 Viewed:  5206 Time(s)

grphbuild.gif


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> Themes All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group