cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced GUI in SA

Highlighted
Newbie

Advanced GUI in SA

Anyone have some advanced GUI construction techniques to share? Here's some code we use to generate a dynamic radio button list on the fly by writing a .tab file in realtime and calling it:



GET_WORKING_DIRECTORY myWorkDir



FOR connectionSizeValue REF ARRAY connectionSizeValues



ELSE



FILE_OPEN myWorkDir+"fc_gui.tab" "w" myGuiFile


FILE_WRITE_LINE myGuiFile "BEGIN_GUI_DESCR"


FILE_WRITE_LINE myGuiFile "\tRADIOBUTTON_PARAM INTEGER CONNECTION_SIZE "+guiOptions


FILE_WRITE_LINE myGuiFile "END_GUI_DESCR\n"


FILE_WRITE_LINE myGuiFile "BEGIN_ASM_DESCR"


FILE_WRITE_LINE myGuiFile "\tCONFIG_ELEM"


FILE_WRITE_LINE myGuiFile "END_ASM_DESCR\n"


FILE_CLOSE myGuiFile


FILE_OPEN myWorkDir+"sel_list.txt" "w" myFile


FILE_WRITE_LINE myFile "fc_gui udf"


FILE_CLOSE myFile


guiOptions = "


CALL_EX myWorkDir+"fc_gui.tab"


--Geoff