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 5 anonymous users online.
Recent Posts
Get Latched -vs- Get Real Time I/O
by Guy Lavoie
Yesterday at 06:18 PM
New Ocelot driver for Elve!
by Deane Johnson
09/07/10 07:13 AM
How to Send an X10 Command ... propertly
by John Hughes
09/06/10 08:21 PM
To send an IR command
by John Hughes
09/05/10 08:28 PM
C-Max & OS X compatibility
by bvnoldguy
09/03/10 08:24 PM
Shout Box

Newest Members
Madon, jsdds, Dave W, stevenotts, wesmo
2633 Registered Users
Forum Stats
2633 Members
19 Forums
3727 Topics
22065 Posts

Max Online: 58 @ 12/05/07 03:33 PM
September
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