mrO_o
2017-11-07 14:47:18 UTC
Hi
i want add context menu to widget tree but i can't.
anybody can make example for me?
thanks a lot.
pro test_treecontext
tlb= widget_base(/column)
tre_bs= widget_tree(tlb, /no_bitmaps, /expanded)
tre_fo= widget_tree(tre_bs, /folder)
tre_s1= widget_tree(tre_fo, value='Size 1', /context_events) ;need context Menu
tre_s2= widget_tree(tre_fo, value='Size 2', /context_events) ;need context Menu
tre_s3= widget_tree(tre_fo, value='Size 3', /context_events) ;need context Menu
widget_control, tlb, /realize
end
i want add context menu to widget tree but i can't.
anybody can make example for me?
thanks a lot.
pro test_treecontext
tlb= widget_base(/column)
tre_bs= widget_tree(tlb, /no_bitmaps, /expanded)
tre_fo= widget_tree(tre_bs, /folder)
tre_s1= widget_tree(tre_fo, value='Size 1', /context_events) ;need context Menu
tre_s2= widget_tree(tre_fo, value='Size 2', /context_events) ;need context Menu
tre_s3= widget_tree(tre_fo, value='Size 3', /context_events) ;need context Menu
widget_control, tlb, /realize
end