Simple UI programming using SPL
1. Start "SPLMFWindowEmulator"
- Go to the unziped folder.
- Double-click "SPLMFWindowEmulator.exe".
|
|
|
2. Select Launch Mode
- Clicke the first item "Launch default SPL MF application".
- Click "OK" button.
- Check log message whether SPL engine is ready.
3. Add Canvas and Text controls
- Select "Application" tab.
- 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
| |
|
- Click "Send to MF Application" button or Press "F5" key.
- Executed result:
4. Change the content of Text control
- Select "Application" tab.
- Add below script on the editor box to change the content of Text control.
| |
curDate = Util.Now()
text1.TextContent = "Current DateTime is " + curDate
| |
|
- Click "Send to MF Application" button or Press "F5" key.
- Executed result:
|