[Pharo-project] change pharo image title
Is there a way to programmatically set the title of a pharo image on startup? I grabbed the first level pasteup morph and tried to play with it but I didn't find the intended method. thanx usman
For Windows only... (HostWindowProxy new instVarNamed: #windowHandle put: Win32Window getFocus; yourself) windowTitle: aString Would be nice if the HostWindow stuff had some develpment time... Regards, Gary ----- Original Message ----- From: Usman Bhatti To: Pharo Development Sent: Friday, February 24, 2012 7:56 PM Subject: [Pharo-project] change pharo image title Is there a way to programmatically set the title of a pharo image on startup? I grabbed the first level pasteup morph and tried to play with it but I didn't find the intended method. thanx usman
On Cog: primitiveHostWindowTitle: windowIndex string: titleString <primitive: 'primitiveHostWindowTitle' module: 'HostWindowPlugin'> self primitiveFailed squeakWindowHandle "Answer the native Squeak window handle, presumably a pointer, as an unsigned integer. This value should be usable in native calls to the window manager as well as the argument to primitiveNativeWindowPosition:" <primitive: 'primitiveSqueakWindowHandle' module: 'HostWindowPlugin'> self primitiveFailed squeakWinIndex "What winIndex refers to Squeak's main window?" ^ Smalltalk platformName caseOf: { ['Win32'] -> [ (self squeakWindowHandle) ]. "Window Index is just the handle here." ['unix'] -> [ self squeakWindowHandle ]. "Window Index is just the handle here." ['Mac OS'] -> [ 1 ] "The Host Window plugin shares the window-ref lookup table." } otherwise: [ -1 ]. self primitiveHostWindowTitle: self squeakWinIndex string: 'Yowza!' You can find the full set of primitives in a class called HostWindows in OpenQwaq. You can find the plugin in Cog's HostWindowPlugin On Fri, Feb 24, 2012 at 12:19 PM, Gary Chambers <gazzaguru2@btinternet.com>wrote:
** For Windows only...
(HostWindowProxy new instVarNamed: #windowHandle put: Win32Window getFocus; yourself) windowTitle: aString
Would be nice if the HostWindow stuff had some develpment time...
Regards, Gary
----- Original Message ----- *From:* Usman Bhatti <usman.bhatti@gmail.com> *To:* Pharo Development <pharo-project@lists.gforge.inria.fr> *Sent:* Friday, February 24, 2012 7:56 PM *Subject:* [Pharo-project] change pharo image title
Is there a way to programmatically set the title of a pharo image on startup? I grabbed the first level pasteup morph and tried to play with it but I didn't find the intended method.
thanx
usman
-- best, Eliot
Gary do you use HostMenu? Because we were looking at the event handling logic with igor and we thought to rewrite it completely. It slows us down to release our event cleaning. Stef On Feb 24, 2012, at 9:19 PM, Gary Chambers wrote:
For Windows only...
(HostWindowProxy new instVarNamed: #windowHandle put: Win32Window getFocus; yourself) windowTitle: aString
Would be nice if the HostWindow stuff had some develpment time...
Regards, Gary ----- Original Message ----- From: Usman Bhatti To: Pharo Development Sent: Friday, February 24, 2012 7:56 PM Subject: [Pharo-project] change pharo image title
Is there a way to programmatically set the title of a pharo image on startup? I grabbed the first level pasteup morph and tried to play with it but I didn't find the intended method.
thanx
usman
Nope, not using HostMenu. Wasn't that for Mac only anyway? Merely using the HostWindow stuff to change application title when running fullscreen (as in, full Pharo window). Regards, Gary ----- Original Message ----- From: "Stéphane Ducasse" <stephane.ducasse@inria.fr> To: <Pharo-project@lists.gforge.inria.fr> Sent: Sunday, February 26, 2012 9:09 AM Subject: Re: [Pharo-project] change pharo image title Gary do you use HostMenu? Because we were looking at the event handling logic with igor and we thought to rewrite it completely. It slows us down to release our event cleaning. Stef On Feb 24, 2012, at 9:19 PM, Gary Chambers wrote:
For Windows only...
(HostWindowProxy new instVarNamed: #windowHandle put: Win32Window getFocus; yourself) windowTitle: aString
Would be nice if the HostWindow stuff had some develpment time...
Regards, Gary ----- Original Message ----- From: Usman Bhatti To: Pharo Development Sent: Friday, February 24, 2012 7:56 PM Subject: [Pharo-project] change pharo image title
Is there a way to programmatically set the title of a pharo image on startup? I grabbed the first level pasteup morph and tried to play with it but I didn't find the intended method.
thanx
usman
On Feb 27, 2012, at 2:10 PM, Gary Chambers wrote:
Nope, not using HostMenu. Wasn't that for Mac only anyway?
Yes probably :) Good to know
Merely using the HostWindow stuff to change application title when running fullscreen (as in, full Pharo window).
Regards, Gary
----- Original Message ----- From: "Stéphane Ducasse" <stephane.ducasse@inria.fr> To: <Pharo-project@lists.gforge.inria.fr> Sent: Sunday, February 26, 2012 9:09 AM Subject: Re: [Pharo-project] change pharo image title
Gary
do you use HostMenu? Because we were looking at the event handling logic with igor and we thought to rewrite it completely.
It slows us down to release our event cleaning.
Stef
On Feb 24, 2012, at 9:19 PM, Gary Chambers wrote:
For Windows only...
(HostWindowProxy new instVarNamed: #windowHandle put: Win32Window getFocus; yourself) windowTitle: aString
Would be nice if the HostWindow stuff had some develpment time...
Regards, Gary ----- Original Message ----- From: Usman Bhatti To: Pharo Development Sent: Friday, February 24, 2012 7:56 PM Subject: [Pharo-project] change pharo image title
Is there a way to programmatically set the title of a pharo image on startup? I grabbed the first level pasteup morph and tried to play with it but I didn't find the intended method.
thanx
usman
participants (4)
-
Eliot Miranda -
Gary Chambers -
Stéphane Ducasse -
Usman Bhatti