;Sample feature description file
[main]
;Unique feature ID
id=lgs_dnshook
;feature name
name=DNS Autodetection (Script)

;Next is description of the setup dialog when started on "Setup" button
setupdll=sfres
setupdlg=1

;This is description of the setup dialog when loaded as embeded into notebook
embeddll=sfres
embeddlg=101
tabname=DNS setup


;dlg_* sections are used only if setupdll/setupdlg are defined
[dlg_1003]
id=enabled
type=CheckButton
default=1
1=[ppp]
1=message.hook=multiscr.scr
1=[multiscr.scr]
1=script=dnshook.cmd
;Write priority
writeprio=1
;Disable other windows
disable.0=1000
disable.0=1001
disable.0=1002
disable.0=2001
disable.0=2002

;Next is one of multiple constants sections. They must have different names, but common "const_" prefix
[dlg_10030]
type=const
value=[dnshook.cmd]
writeprio=2

[dlg_1000]
;Unique option id
id=detectdns
type=CheckButton
default=1
0=detectdns=0
writeprio=3

[dlg_1001]
id=domain
type=Input
default=my.domain.com
;If to add value to config even if Input is empty
addempty=1
pattern=domain=%s
writeprio=4

[dlg_1002]
id=server1
type=Input
pattern=server=%s
writeprio=5
default=192.112.36.4

[dlg_1010]
type=okbutton

[dlg_1011]
type=cancelbutton
hideembed=yes

