Hey

I'm trying to get this to work

Hope you understand what i'm trying to do...



dialog n {
title "New Project"
size -1 -1 250 133
option dbu
list 1, 0 0 61 133, size
tab "Tab 1", 2, 67 2 127 89
tab "Tab 2", 3
tab "Tab 3", 4
}

on *:dialog:n:init:0:{
mdx MarkDialog $dname
mdx SetControlMDX $dname 1 Treeview fullrowselect singleexpand nohscroll showsel > $views.mdx
did -i $dname 1 1 setitemheight 26
did -a $dname 1 $chr(160) 1
did -a $dname 1 $chr(160) 2
did -a $dname 1 $chr(160) 3
did -c $dname 1 2
}

on *:dialog:n:sclick:1:{
if ($did(1).seltext = 2) did -f n 3
}