ADICON Support Forum Applied Digital, Inc.
Page 1 of 1 1
Topic Options
#12737 - 10/03/04 06:38 PM Rex's Icons (Displaying the Month)
Anonymous
Unregistered



This is a way to have months displayed as text without needing too many lines of code. Insert the icons into the System Map in chronological order. For example, place "Jan" as icon #21, "Feb" as icon #22 up to "Dec" as icon #32. The example icon files are for Leopard II.



Place a single (64x40) button where you want the month displayed. Check "Draw with hidden border" and leave set for "No Icon".



To display a month, load it into a variable, add the starting icon number less one (E.G. 20 if "Jan" is icon #21) and then set the icon for the required button/object from the variable.



Example code:



IF Month is > January (1) \Get current month

THEN Load Data to: Variable-#0-Tmp \into

ELSE Load Data to: Variable-#0-Tmp \variable.

IF Day of Month is > 0 \Always true,

THEN Variable-#0-Tmp + 20 \offset to 1 before Jan icon.

THEN Touch Object #1 displays Icon# in Variable-#0-Tmp \Set icon to name of month.





Best regards, Rex

Top
#12738 - 10/03/04 06:56 PM Re: Rex's Icons (Displaying the Month)
Anonymous
Unregistered




















Top
#12739 - 10/03/04 06:58 PM Re: Rex's Icons (Displaying the Month)
Anonymous
Unregistered




















Top
Page 1 of 1 1


Moderator:  Dan Smith, Monte G, ADI Tech Support, Guy Lavoie 
Hop to:
Who's Online
0 registered and 26 anonymous users online.
Recent Posts
how to post an icon
by manu
02/03/12 03:40 AM
Command Pair
by kuro
02/01/12 12:49 AM
Does anyone have a copy of the latest TSE?
by sevenzenith1
01/30/12 05:17 AM
Have HAL2000 do the work or the Ocelot?
by khem
01/28/12 02:49 PM
Ocelot + Powermid = Fail
by Guy Lavoie
01/27/12 03:37 PM
Shout Box

Newest Members
dfgg, manu, kuro, sevenzenith1, chuck214
2748 Registered Users
Forum Stats
2747 Members
19 Forums
3835 Topics
22711 Posts

Max Online: 67 @ 08/16/11 03:08 PM
February
Su M Tu W Th F Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29