I added a str_create while providing pan_setstring.Compiles well.

If I "set(Calender,SHOW)" it crashes ,I get a Windows Message "acknex.exe has stopped working"

Current Code:
Code:
BMAP * AppletCalender_Background = "images\background.png";
STRING * MonthYear = "April 2008";
////////////////////////////////////////////////////////////////////////////////////////////////////
PANEL * Calender =
{
	bmap =  AppletCalender_Background;
	
	digits(20,20,"ABC","Arial#15",1,0);
	digits(00,40,5,"#50",1,sys_day);
	
	digits(20,100,MonthYear,"#20",1,0);
	flags = TRANSLUCENT;
}
int main ()
{
	char * Weekdays[7];
	Weekdays[1] = " Monday";
	Weekdays[2] = " Tuesday";
	Weekdays[3] = "Wednesday";
	Weekdays[4] = "Thursday";
	Weekdays[5] = " Friday";
	Weekdays[6] = "Saturday";
	Weekdays[7] = " Sunday";
	
	char * Months[12];
	Months[1] =  " January ";
	Months[2] =  " February ";
	Months[3] =  "  March   ";
	Months[4] =  "  April   ";
	Months[5] =  "   May    ";
	Months[6] =  "  June    ";
	Months[7] =  "  July    ";
	Months[8] =  " August   ";
	Months[9] =  "September ";
	Months[10] = " October  ";
	Months[11] = " November ";
	Months[12] = " December ";
	
	STRING * 
	STRING * Year = "               ";
	str_for_num(Year,sys_year);
	error(Weekdays[sys_dow]);
//	pan_setstring(Calender,1,20,20,"#15b",str_create(Weekdays[sys_dow]));
	
	set(Calender,SHOW);
	STRING * MonthYear = str_cat(str_create(Months[sys_month]),Year);
	
}



Thanks


Keep smiling laugh
http://translation.babylon.com/ - Translate many languages