search for: fxdatatarget

Displaying 4 results from an estimated 4 matches for "fxdatatarget".

2008 Sep 06
0
Tab control using FXRuby
...ame.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}" main.setPosition(-10, -10) end FXLabel.new(addr, "Surname" , nil,LABEL_NORMAL|LAY...
2008 Nov 11
3
FXTextField and number of digits after decimal point
Hello, Here''s the context: I read a number either pure integer or float with eventually up to 12 digits after the decimal point from a YAML file. The number is injected into a FXTextField with the following code: @value_sel = FXDataTarget.new(@value.to_s) @value_value = FXTextField.new(@matrix_mem_value, 20, at value_sel, :opts =>TEXTFIELD_NORMAL|JUSTIFY_RIGHT, :selector => FXDataTarget::ID_VALUE) where @value is the number as read from the YAML file. If I use a TEXTFIELD_NORMAL, I get all the digits after the...
2004 Jul 20
7
radiobuttons are weird in 1.2.x series
Hello all, Run groupbox.rb example in any of the two alpha versions and click the radiobutton in the upper right group box (those named Hilvesum 1, Hilversum 2, etc). You''ll notice that once a radiobutton is checked, it remains checked when some other radiobutton is checked. What''s the reason? Thank you. -- Best regards, Yuri Leikind
2004 Jul 22
0
Re: FXRuby and Threads (was: radiobuttons are weird in 1.2.x series)
...is processed, if available: def nextMessage # Pull off the first message (if there is one) if @queueMutex.try_lock message = @messageQueue.shift @queueMutex.unlock else message = nil end return message end I checked it again, and with threadsDisabled the FXDataTargets/statusbar work perfectly and communication between clients is consistently instantaneous as far as my eyes can see (both clients and server on one machine). E.g. The Xs and Os in TIC-TAC-TOE seem to appear right away when placed on the opponent''s client (at least until I got bored of play...