Hi all, I have been working with FXRuby for a few weeks and have run into a problem. I have a list box and I would like to update the value displayed in that list box whenever certain events happen in my program. I have used a text field with a FXDataTarget and whenever I update the FXDataTarget it would update in my text field. I can''t get this working for a list box. Could I get some explanation on why this is not working, and maybe a suggestion on what I should be doing. Thanks Mike
Micheal Falcon wrote:> Hi all, > I have been working with FXRuby for a few weeks and have run into a problem. I have a list box and I would like to update the value displayed in that list box whenever certain events happen in my program. I have used a text field with a FXDataTarget and whenever I update the FXDataTarget it would update in my text field. I can''t get this working for a list box. Could I get some explanation on why this is not working, and maybe a suggestion on what I should be doing.Do you mean you want to update the entries contained in the list, or update the selection? -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
The selection displayed in the list box. On Wednesday, June 10, 2009, at 12:52PM, "Joel VanderWerf" <vjoel at path.berkeley.edu> wrote:>Micheal Falcon wrote: >> Hi all, >> I have been working with FXRuby for a few weeks and have run into a problem. I have a list box and I would like to update the value displayed in that list box whenever certain events happen in my program. I have used a text field with a FXDataTarget and whenever I update the FXDataTarget it would update in my text field. I can''t get this working for a list box. Could I get some explanation on why this is not working, and maybe a suggestion on what I should be doing. > >Do you mean you want to update the entries contained in the list, or >update the selection? > >-- > vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407 >_______________________________________________ >fxruby-users mailing list >fxruby-users at rubyforge.org >http://rubyforge.org/mailman/listinfo/fxruby-users > >
On Wednesday, June 10, 2009, at 12:52PM, "Joel VanderWerf" <vjoel at path.berkeley.edu> wrote:>Micheal Falcon wrote: >> Hi all, >> I have been working with FXRuby for a few weeks and have run into a problem. I have a list box and I would like to update the value displayed in that list box whenever certain events happen in my program. I have used a text field with a FXDataTarget and whenever I update the FXDataTarget it would update in my text field. I can''t get this working for a list box. Could I get some explanation on why this is not working, and maybe a suggestion on what I should be doing. > >Do you mean you want to update the entries contained in the list, or >update the selection? > >-- > vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407 >_______________________________________________ >fxruby-users mailing list >fxruby-users at rubyforge.org >http://rubyforge.org/mailman/listinfo/fxruby-users > >
I solved this problem easy enough. I am using setCurrentItem method which is not listed in the API for a FXListBox, but is listed for a FXComboBox. It exists though for the list box and works. Is there a better way? Thanks Mike On Wednesday, June 10, 2009, at 12:52PM, "Joel VanderWerf" <vjoel at path.berkeley.edu> wrote:>Micheal Falcon wrote: >> Hi all, >> I have been working with FXRuby for a few weeks and have run into a problem. I have a list box and I would like to update the value displayed in that list box whenever certain events happen in my program. I have used a text field with a FXDataTarget and whenever I update the FXDataTarget it would update in my text field. I can''t get this working for a list box. Could I get some explanation on why this is not working, and maybe a suggestion on what I should be doing. > >Do you mean you want to update the entries contained in the list, or >update the selection? > >-- > vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407 >_______________________________________________ >fxruby-users mailing list >fxruby-users at rubyforge.org >http://rubyforge.org/mailman/listinfo/fxruby-users > >