Virtual events ListboxSelect and ComboboxSelect doesn't work

  2 posts   Feedicon  
Replies: 1 - Last Post: September 21, 2010 11:05
by: tsib
« Older Topic » Newer Topic
showing 1 - 2 of 2
 
Posted: September 18, 2010 17:12 by tsib
Hi,
it seems that virtual events <<ListboxSelect>> (for listbox widget) and <<ComboboxSelect >> (for jcombobox) doesnot work. I tried with this scripts:

SCRIPT 1 (listbox, <Double-ButtonPress-1> works well)
listbox .projlist -height 5
.projlist insert end "FIRST" "FAH" 1 2 3 4 5
pack .projlist -side top
#bind .projlist <Double-ButtonPress-1> "showSEL"
bind .projlist <<SelectionChanged>> "showSEL"

proc showSEL {} {
  set idx [.projlist curselection]
  puts "Selected $idx"
}


SCRIPT2 (jcombobox)
proc procCSEL {} {
  puts "selected"
}
set res "a"
jcombobox .combproj -variable $res
.combproj item append 1 2 3 4 5
bind .combproj <<ComboboxSelected>> "procCSEL"
pack .combproj -side left


Can anybody help or comment my problem?

Thanks,
Oleg
 
Posted: September 21, 2010 11:05 by tsib
I looked through project source code - and it seems currently swank doesn't generate these virtual events (ListboxSelect and ComboboxSelect ).
Replies: 1 - Last Post: September 21, 2010 11:05
by: tsib
« Older Topic » Newer Topic
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close