Gérard Ménochet
2006-May-06 23:10 UTC
[fxruby-users] Help: focus chain, ctrl+.., selection
Hi,
I think I need some hints about some points:
1_ I use FXMDIChilds. I have FXMenu .. FXMenuPane ..FXMenuTitle...
FXMenuCommands+.
If I click a FXMenuTitle, the active FXMDIChild loses the focus. Is there a
way to avoid that ?
2_ On a FXTextField, how to get the part selected ? (selectAll or a
selection using the mouse)
3_ How to send by program - without using the keyboard - a CTRL+X or CTRL+V
..... to a FXRuby widget
Thanks
G?rard M?nochet
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/fxruby-users/attachments/20060507/5a80bcec/attachment.htm
Gérard Ménochet
2006-May-08 15:34 UTC
[fxruby-users] FXMenuTitle and canFocus set to false - A bug ??
Hi,
No much folks on this mailing list
I''ve tried something: :
amenubar=FXMenuBar.new(self,LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
amenupane=FXMenuPane.new(self)
amenubutton=FXMenuButton.new(amenubar, "File", nil,amenupane)
amenutitle= FXMenuTitle.new(amenubar , "File", nil, amenupane)
I don''t want to grab the focus on amenutitle and amenubutton
# That works fine. But not exactly the workaround I was looking for (see
below)
class<<amenubutton
def canFocus
false
end
end
# The popup is showed but the application completely frozen ==> a bug
???
class<<amenutitle
def canFocus
false
end
end
Regards
G?rard M?nochet
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/fxruby-users/attachments/20060508/1a3f69f1/attachment.htm