Displaying 6 results from an estimated 6 matches for "fxlabel".
Did you mean:
xlabel
2006 May 31
3
FXLabel: ca''nt set the Icon attibute
Hi,
trying that:
aLabel = FXLabel.new(menuBar35,nil,@@maximizeIcon,0)
aLabel.icon = @@restoreIcon # ok
aLabel.connect(SEL_LEFTBUTTONPRESS) do |sender, selector, data|
case sender.icon
when @@maximizeIcon
sender.icon = @@restoreIcon
when @@restoreIcon
sender.icon = @...
2008 Sep 06
0
Tab control using FXRuby
...''Zest Address Entry'')
self.width = 422
self.height = 250
amain= FXVerticalFrame.new(self,LAYOUT_NORMAL|LAYOUT_FILL_X|LAYOUT_FILL_Y)
main = FXScrollWindow.new(amain, LAYOUT_FILL_X|LAYOUT_FILL_Y)
addr= FXMatrix.new(main, 2,MATRIX_BY_COLUMNS|LAYOUT_CENTER_X)
# addr
FXLabel.new(addr, "First Name" ,
nil,LABEL_NORMAL|LAYOUT_FILL_X|LAYOUT_FILL_Y)
fld1= FXDataTarget.new("")
fld1a=FXTextField.new(addr,20, fld1, FXDataTarget::ID_VALUE,
FRAME_SUNKEN|LAYOUT_FILL_X|LAYOUT_FILL_Y)
fld1a.connect(SEL_COMMAND) do
puts "fld1 contains #{fld1.value}&qu...
2009 Jun 23
9
Learning FXRuby please help!
...600,
:opts => DECOR_ALL|LAYOUT_FILL_X|LAYOUT_FILL_Y)
bframe = FXHorizontalFrame.new(self, :opts => LAYOUT_FILL_X)
hearButton = FXButton.new(bframe, "Do you hear me?")
yesWindow = FXHorizontalFrame.new(self, :opts =>
FRAME_GROOVE|LAYOUT_FILL_X)
yesLabel = FXLabel.new(yesWindow,"Yes")
yesWindow.hide
puts "window shown?" + yesWindow.shown?.to_s
hearButton.connect(SEL_COMMAND) do |sender,sel, data|
yesWindow.create
yesWindow.show
puts "pushed hear button"
puts "window shown?" + yesWind...
2008 Mar 25
2
FXImageFrame/SEL_LEFTBUTTONRELEASE
Hi,
I have a FXImageFrame widget and I would like it to show another image when
I click on it.
I''m having no luck with receiving a onclick via SEL_LEFTBUTTONRELEASE.
...
imageframe=FXImageFrame.new(mainwindow,the_image,LAYOUT_EXPLICIT,0,0,20,20)
imageframe.connect(SEL_LEFTBUTTONRELEASE) {p ''onclick received''}
...
What is it that I''m missing?
2006 Apr 10
1
Display an arrow, or transparent image colors
I want to display an arrow in the user interface between 2 GUI Components.
I think I know how I can do it, but I ran into a problem displaying
pixel images with transparent background. I describe this image display
problem here and ask for advice. but if someone knows of a different and
easier way to display arrows, please tell me.
Example Problem: I want a FXHorizontalFrame to contain, from
2007 Apr 27
2
mdiclient windows do not always activate on click
I just noticed that MDIClient windows do not automatically become
current when they receive a mouse click, but only do so if the click
happens inside of an enabled widget. This may very well be correct, but
if so then what is the right way to handle it, if you want a more
familiar window-manager behavior (click to focus)?
For example, if you change the mditest.rb example like so...
---