Account Dialog
His Dad [04-23-15 - 00:30]
diff --git a/HistOffline.lua b/HistOffline.lua
index 04a701a..5510254 100644
--- a/HistOffline.lua
+++ b/HistOffline.lua
@@ -424,22 +424,25 @@ function btn_eraselog:action()
lbl_Status_bar.title = L.Erased
end
-
+options = {"@HisDad", "@Jerm01"}
function select_account()
- dlg_select = dialog {
- title = "Select Account",
- iup.vbox{
- iup.fill{},
- },
- },
- dlg_select:showxy(iup.CENTER, iup.CENTER)
+ selected = iup.ListDialog (1, "Select Account",
+ 2, --Size
+ options,
+ 1, --Initial
+ 1,naccounts --MaxCol MaxLine
+ )
+ print (selected)
+
end
+myaccount = "@Jerm01"
if naccounts > 1 then -- Create dialog to choose account
end
+-- select_account()
-- Create dialog
dlg = iup.dialog{iup.vbox{accounts[myaccount].tabs,