Simple UI programming using SPL


1. Start "SPLMFWindowEmulator"
  1. Go to the unziped folder.

  2. Double-click "SPLMFWindowEmulator.exe".
 


2. Select Launch Mode
  1. Clicke the first item "Launch default SPL MF application".



  2. Click "OK" button.



  3. Check log message whether SPL engine is ready.



3. Add Canvas and Text controls

  1. Select "Application" tab.

  2. Add below script on the editor box to add Canvas and Text controls.

      
    AddCanvas    canvas1
    	/Parent:Window
    
    AddText    text1
    	/Parent:canvas1
    	/TextContent:Hello
    	/Font:small
    	/Color:0  0  0
    	/Left:20
    	/Top:100
    
      

  3. Click "Send to MF Application" button or Press "F5" key.

  4. Executed result:




4. Change the content of Text control

  1. Select "Application" tab.

  2. Add below script on the editor box to change the content of Text control.

      
    curDate = Util.Now()
    
    text1.TextContent = "Current DateTime is " + curDate
    
      

  3. Click "Send to MF Application" button or Press "F5" key.

  4. Executed result: