I am stuck in writing code got a file selection GUI for my SKILL code.
I need some way to let the user select the file containing the data that the
rest
of my skill code uses.
Thanks,
-sm
Hi sm
I have used Xdialog in the past.
(if (sh "Xdialog --version >/dev/null 2>&1")
(let (cid)
(setq cid
(ipcBeginProcess (strcat "Xdialog --fselect '" (getWorkingDir)
"' 0x0")))
(ipcWait cid)
(setq SMFile (ipcReadProcess cid)))
You can use a more modern dialog program such as zenity for the purpose
too.
Hope that helps
Satya
In IC610 (and ICOA5251) there is a built in "hi" function for doing this (the
name escapes me - I'm off the network).
I did write one myself many years ago - it's not that hard to do this with
hiCreateListBoxField, for example.
Regards,
Andrew.
--
Andrew Beckett
Principal European Technology Leader
Cadence Design Systems, UK.