I am new to Ruby as well as FXRuby.
When I tried to dig in, I wrote the next small program (which I derived
the FXRuby user’s guide).
theApp = FXApp.new
theMainWindow = FXMainWindow.new(theApp,
inField = FXTextField.new(theMainWindow,40,nil,0,TEXTFIELD_NORMAL,40,40)
theButton = FXButton.new(theMainWindow, “Hello,
theButton.tipText = “Push Me!”
outField.text = inField.text
My first problem is:
I use a X and Y coordinate for the 2 textfields and the button, but
seem to be ignored. Why?
the second parameter for FXTextField.new seems to determine the
the field; however, there is also a separate width parameter,
which doesn’t seem to work.What is the difference and how should I
the FXRuby user’s guide does some introductory stuff, but then
all the rest to the programmer. Is there a better, more consistent
introductory document available?
Met vriendelijke groet / with kind regards,
Arie van Wingerden