not to spam another thread related to combo drop down...
i have 1 question related to init selection
example:
dialog bla {
title "blaaah"
size -1 -1 122 122
option dbu
combo 1, 32 13 75 11, drop
combo 2, 32 43 75 11, drop
button "OK", 3, 81 75 34 12, ok
}
on *:dialog:bla:init:0:{
did -a $dname 1 -
did -a $dname 1 Snail
did -a $dname 1 Snail & Slyth
did -a $dname 2 -
did -a $dname 2 Snail
did -a $dname 2 Snail & Slyth
if (!%A1) { return } | else { did -c $dname 1 %A1 }
if (!%A2) { return } | else { did -c $dname 2 %A2 }
}
on *:dialog:bla:sclick:*:{
if ($did = 3) {
if ($did(1).sel == 1) { unset %A1 } | else { set %A1 $did(1).seltext }
if ($did(2).sel == 1) { unset %A2 } | else { set %A2 $did(2).seltext }
}
}
so concept would be that if %A1 or %A2 have value (from selected drop down list), that on next init they would be selected already
on combo drop down
but they are not even if values are alright
may i ask what i am not understanding ? :P