From: Vincenzo Piombo Date: 2006-03-09T07:28:48+09:00 Subject: Re: FXRuby multiple applications pseudoman4@yahoo.com ha scritto: >the problem is that i want to embed to start_fox_app in c++. >so c++ opens a FXRuby GUI. starting the script twice (in the same c++ >process) >does not solve the probelm :( > > > > > The following works, it opens two main windows ... def create_window(application) window = FXMainWindow.new(application, "FOX", nil, nil, DECOR_ALL,0, 0, 580, window.show(PLACEMENT_SCREEN) end def start_fox_app application = FXApp.new("FoxTest", "ruby") application.init(ARGV) create_window(application) create_window(application) application.create application.run end start_fox_app