Hello to all user
I have problem with FXTree and connect
when I use connect(SEL_DOUBLECLICKED)
then will use evaluate
SEL_SELECTED
SEL_CLICKED
SEL_SELECTED
SEL_DOUBLEDLICKED
why will two times SEL_SELECT
and SEL_CLICKED
example
@tree.connect(SEL_SELECTED) do |sender, selector, data|
STDOUT.print “SEL_SELECTED #{data}\n”
STDOUT.print Fox.fxrubyversion
STDOUT.print “SEL_SELECTED Exit\n”
STDOUT.flush
end
@tree.connect(SEL_RIGHTBUTTONPRESS) do |sender, selector, data|
STDOUT.print “SEL_RIGHTBUTTONPRESS #{data}\n”
STDOUT.print “SEL_RIGHTBUTTONPRESS Exit\n”
STDOUT.flush
end
@tree.connect(SEL_CLICKED) do |sender, selector, data|
STDOUT.print “SEL_CLICKED #{data}\n”
STDOUT.print “SEL_CLICKED Exit\n”
STDOUT.flush
end
@tree.connect(SEL_DOUBLECLICKED) do |sender, selector, data|
STDOUT.print “SEL_DOUBLECLICKED #{data}\n”
STDOUT.flush
STDOUT.print “SEL_DOUBLECLICKED Exit\n”
STDOUT.flush
end
ruby will display
SEL_SELECTED Abgelegtet Prozesse
1.6.19SEL_SELECTED Exit
SEL_CLICKED Abgelegtet Prozesse
SEL_CLICKED Exit
SEL_SELECTED Abgelegtet Prozesse
1.6.19SEL_SELECTED Exit
SEL_DOUBLECLICKED Abgelegtet Prozesse
SEL_DOUBLECLICKED Exit
you can see two times SEL_SELECTED
and SEL_CLICKED
Why