Re: [Pharo-users] CogVM arguments in Win32

2013-11-18 Thread Stéphane Ducasse
quite cool! Stef On Nov 18, 2013, at 11:25 AM, Bernat Romagosa wrote: > Ok guys, in the end I implemented a big time clutch that simulates the > behaviour I was after: > > I created a tiny app in C++ that starts Pharo, the image reads the --serve > flag (that I implemented in DefaultCommand

Re: [Pharo-users] CogVM arguments in Win32

2013-11-18 Thread Bernat Romagosa
Ok guys, in the end I implemented a big time clutch that simulates the behaviour I was after: I created a tiny app in C++ that starts Pharo, the image reads the --serve flag (that I implemented in DefaultCommandLineHandler), hides itself via NB, and kills the UIManager process to prevent refreshes

Re: [Pharo-users] CogVM arguments in Win32

2013-11-13 Thread Igor Stasenko
On 13 November 2013 12:02, Bernat Romagosa wrote: > Thanks a lot Torsten! > > I'll invest the whole morning tomorrow in trying to get a little bit more > of this to work. > > If I don't succeed... there are lots of very good restaurants in > Barcelona, Igor ;) > > i can imagine :) I hope i will be

Re: [Pharo-users] CogVM arguments in Win32

2013-11-13 Thread Igor Stasenko
On 13 November 2013 10:25, Bernat Romagosa wrote: > Hi list, > > I made some progress but I'm still a bit lost here. > > I managed to get Pharo to be headless in Win32, by hiding the window via > NB as Igor suggested, plus suspending the UI process (UIManager default > uiProcess suspend), which wa

Re: [Pharo-users] CogVM arguments in Win32

2013-11-13 Thread Bernat Romagosa
Thanks a lot Torsten! I'll invest the whole morning tomorrow in trying to get a little bit more of this to work. If I don't succeed... there are lots of very good restaurants in Barcelona, Igor ;) 2013/11/13 Torsten Bergmann > Hi Bernat, > > >how do I translate this into NB code > > Either in

[Pharo-users] CogVM arguments in Win32

2013-11-13 Thread Torsten Bergmann
Hi Bernat, >how do I translate this into NB code Either invite Igor (author of NB) for lunch or try this: Its a C-structure, you convert it by wrapping this in a sublcass of "NBExternalStructure". See the examples already in a Pharo 3.0 image. Basically you need: - define a subclass NBExtern

Re: [Pharo-users] CogVM arguments in Win32

2013-11-13 Thread Bernat Romagosa
Hi list, I made some progress but I'm still a bit lost here. I managed to get Pharo to be headless in Win32, by hiding the window via NB as Igor suggested, plus suspending the UI process (UIManager default uiProcess suspend), which was the cause for the window to show up again after a fraction of

Re: [Pharo-users] CogVM arguments in Win32

2013-11-04 Thread Bernat Romagosa
Hi! Thanks Igor, that kinda worked! Pharo hides, but comes back after half a second or so. I'll keep digging, thanks! :) 2013/11/1 p...@highoctane.be > Well, this should rather be: > > handle :=NativeBoostWin32 squeakWindowHandle. > window := NBWin32Window new value: handle; yourself. > window

Re: [Pharo-users] CogVM arguments in Win32

2013-11-01 Thread p...@highoctane.be
Well, this should rather be: handle :=NativeBoostWin32 squeakWindowHandle. window := NBWin32Window new value: handle; yourself. window hide. or window setWindowText: 'im a main window blablabla'. Phil On Thu, Oct 31, 2013 at 10:03 PM, Igor Stasenko wrote: > You can try something like this:

Re: [Pharo-users] CogVM arguments in Win32

2013-10-31 Thread Igor Stasenko
You can try something like this: | handle window | handle := NativeBoost forCurrentPlatform squeakWindowHandle. window := NBWin32Window new value: handle; yourself. window hide. or window setWindowText: 'im a main window blablabla'. :) i didn't tested it since its been implemented, but i thin

[Pharo-users] CogVM arguments in Win32

2013-10-30 Thread Torsten Bergmann
1. HEADLESS The SqueakVM had support for this and it was usable in the past -headless Tells Squeak to run without a main window. However, for allowing at least some access to Squeak, an icon is added to the system tray. If you double-click this icon, the Squeak wi

Re: [Pharo-users] CogVM arguments in Win32

2013-10-30 Thread Bernat Romagosa
In this direction, I'm trying to call a function in the shell32.dll lib that apparently should let you minimize an app to the system tray, but I'm not having much luck... I guess I don't really understand what am I exactly doing. This is what I found in the MSDN

Re: [Pharo-users] CogVM arguments in Win32

2013-10-30 Thread Bernat Romagosa
indeed, --headless does "work" but the image just dies after executing it... :( I guess some FFI research to minimize the app to tray is in place. Thanks! 2013/10/29 Esteban Lorenzano > AFAIK you can't. > no matter what you do, it stills shows a pharo in the trial. > > I remember once I hid t

Re: [Pharo-users] CogVM arguments in Win32

2013-10-29 Thread Esteban Lorenzano
AFAIK you can't. no matter what you do, it stills shows a pharo in the trial. I remember once I hid the fact that I had the app running there by replacing the world with an "administrative morph" (just as other server apps do). It was not terrible cool, but it worked. Esteban On Oct 29, 201

Re: [Pharo-users] CogVM arguments in Win32

2013-10-29 Thread Igor Stasenko
try double-dashed option: from vm/sqWin32Intel.c : else if (!strcmp(argv[0], "--headless")) { fHeadlessImage = true; return 1; } this is really a mess with VM options handled differently on different OSes. On 29 October 2013 11:14, Bernat Romagosa wrote: > Ok, I see Pharo -help brings up a

Re: [Pharo-users] CogVM arguments in Win32

2013-10-29 Thread Bernat Romagosa
Ok, I see Pharo -help brings up a window with command line options, but -headless is still firing up the GUI... any ideas? 2013/10/29 Bernat Romagosa > Hi list! > > I've never used Pharo on Windows before, but we're starting to package a > multi-platform app right now and I've just found out co

[Pharo-users] CogVM arguments in Win32

2013-10-29 Thread Bernat Romagosa
Hi list! I've never used Pharo on Windows before, but we're starting to package a multi-platform app right now and I've just found out command line arguments don't work like I thought they would. I need to run the image headless, so I figured: bin-win32\Pharo -headless shared\Pharo2.0.image Woul