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 64 anonymous users online.
Recent Posts
Cmax Message: Failed to set data for a 'delay'
by John Vomastic
07/03/17 10:14 PM
Shout Box

Newest Members
brigiel, vevevie, zhutree, 416, saiqul
3003 Registered Users
Forum Stats
3003 Members
19 Forums
4000 Topics
23426 Posts

Max Online: 132 @ 11/13/16 10:07 AM
July
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
30 31