269
nameclear=iup.button{title=strings.buttons.fileid,
270
active="NO",padding="2x";
271
action=function(self)
272
boxes[1].cls.filename.value=""
273
self.title=strings.buttons.fileid
274
boxes[1].cls.astog.value="OFF"
275
setactive(1,{"nameclear","astog","save"},"NO")
278
filename=iup.text{expand="HORIZONTAL",
279
tip=strings.tips.filename;
280
action=function(self,change,value)
282
boxes[1].cls.nameclear.title=strings.buttons.fileid
283
boxes[1].cls.astog.value="OFF"
284
setactive(1,{"nameclear","astog","save"},"NO")
287
if nofile then --wrong way to do this but
288
boxes[1].cls.nameclear.title=strings.buttons.clear
289
setactive(1,{"nameclear","astog"},"YES")
292
boxes[1].cls.astog.value="OFF"
293
setactive(1,"save","YES")
296
astog=iup.toggle{title=strings.pre.auto,value="OFF",
297
active="NO",tip=strings.tips.auto.save;
298
action=function(self,state)
300
setactive(1,"save","NO")
302
setactive(1,"save","YES")
306
save=iup.button{title=strings.buttons.save,focusonclick="NO",
307
active="NO",padding="2x";
311
tgLua=iup.toggle{title=strings.combos.box1.lua, value="ON",
312
tip=strings.tips.box1radio.lua},
313
tgString=iup.toggle{title=strings.combos.box1.string,
314
tip=strings.tips.box1radio.string},
315
luable=iup.label{title="",expand="HORIZONTAL"}
268
--development branched to branches/1.0/leftboxcontrols
595
548
Sandpad=iup.dialog{title=strings.appname;
600
boxes[1].cls.nameclear,
601
boxes[1].cls.filename
602
;gap=2,margin="0x0",alignment="ACENTER"
607
;gap=-1,margin="0x0",alignment="ACENTER"
609
;gap=4,margin=0,alignment="ACENTER"
614
boxes[1].cls.tgString,
551
--development of filename in branches/1.0/leftboxcontrols
553
--development of string/Lua radio in branches/1.0/leftboxcontrols
619
554
;gap=4--,margin=0
653
588
iup.submenu{title=strings.menus.file.title;
655
iup.item{title=strings.menus.file.open},
656
iup.item{title=strings.menus.file.saveas},
657
iup.item{title=strings.menus.file.new},
590
--development of file options in branches/1.0/leftboxcontrols
658
591
iup.item{title=strings.menus.file.clear,
659
592
action=clearallboxes},