Component index
Section index

Component sample


Search

	/*
	    Here is a typical/simple application.
	*/
	<mod>
	static void samples_editrecords(int nb)
	{
	    <glocal>
	        int nb;
	    </glocal>
	    glocal.nb = nb;
	    <call editrecords>("records","Some records",help_nil);
	        <f head>
	            newf_head ("ID\tDescription\tDate");
	        </f>
	        <f load>
	            for (int i=0; i<glocal.nb; i++){
	                char buf1[100],buf2[100];
	                sprintf (buf1,"%03d",i);
	                sprintf (buf2,"This is record %d\t24/10/2000",i);
	                new_menuitem (buf1,buf2);
	            }
	        
	        <f editone>
	            xconf_notice ("Editing record %d",no);
	        </f>
	    </call>
	}
	</mod>