Pharo IDE - change mouse cursor color/size

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

Pharo IDE - change mouse cursor color/size

Animosity
Hi there,

I'm not able to find any setting in the Pharo IDE related to changing the
mouse cursor color or size?
Can this be done at all? Thanks in advance.



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply | Threaded
Open this post in threaded view
|

Re: Pharo IDE - change mouse cursor color/size

philippeback
If you are on Windows you can load Vista cursors from the catalog. Then you will have settings for the size.

Not all cursors are implemented but it is easy to do.

On Linux I had VM crashes when doing #beCursor. Maybe is it fixed these days.

Phil


On Jan 29, 2018 06:22, "Animosity" <[hidden email]> wrote:
Hi there,

I'm not able to find any setting in the Pharo IDE related to changing the
mouse cursor color or size?
Can this be done at all? Thanks in advance.



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html


Reply | Threaded
Open this post in threaded view
|

Re: Pharo IDE - change mouse cursor color/size

Stephane Ducasse-3
Hi phil

Yes we want to kill all the VM logic related to events because IT GETS
ON OUR NERVES.
Kill them all. Esteban told me that he is super upset by all the event
/ screen logic and that he is looking at ronie' changes.
Stef

On Mon, Jan 29, 2018 at 8:10 AM, [hidden email] <[hidden email]> wrote:

> If you are on Windows you can load Vista cursors from the catalog. Then you
> will have settings for the size.
>
> Not all cursors are implemented but it is easy to do.
>
> On Linux I had VM crashes when doing #beCursor. Maybe is it fixed these
> days.
>
> Phil
>
>
> On Jan 29, 2018 06:22, "Animosity" <[hidden email]> wrote:
>>
>> Hi there,
>>
>> I'm not able to find any setting in the Pharo IDE related to changing the
>> mouse cursor color or size?
>> Can this be done at all? Thanks in advance.
>>
>>
>>
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Pharo IDE - change mouse cursor color/size

Animosity
In reply to this post by philippeback
VistaCursors worked great on windows. It also led me to the discovery of the
Cursor class, the different cursor types (normal, resizing, etc.) and masks.
Thank you for your help.

PS: I also found out how to register custom settings to be added to the
Settings dialog. That will come in handy at some point I'm sure.



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply | Threaded
Open this post in threaded view
|

Re: Pharo IDE - change mouse cursor color/size

philippeback
In reply to this post by Stephane Ducasse-3
I can relate to that.

Phil

On Jan 29, 2018 21:17, "Stephane Ducasse" <[hidden email]> wrote:
Hi phil

Yes we want to kill all the VM logic related to events because IT GETS
ON OUR NERVES.
Kill them all. Esteban told me that he is super upset by all the event
/ screen logic and that he is looking at ronie' changes.
Stef

On Mon, Jan 29, 2018 at 8:10 AM, [hidden email] <[hidden email]> wrote:
> If you are on Windows you can load Vista cursors from the catalog. Then you
> will have settings for the size.
>
> Not all cursors are implemented but it is easy to do.
>
> On Linux I had VM crashes when doing #beCursor. Maybe is it fixed these
> days.
>
> Phil
>
>
> On Jan 29, 2018 06:22, "Animosity" <[hidden email]> wrote:
>>
>> Hi there,
>>
>> I'm not able to find any setting in the Pharo IDE related to changing the
>> mouse cursor color or size?
>> Can this be done at all? Thanks in advance.
>>
>>
>>
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: Pharo IDE - change mouse cursor color/size

Sven Van Caekenberghe-2
In reply to this post by Stephane Ducasse-3
Repeat [ More on the image side where we can all see it and work on it in a proper language, with proper design, using proper tools ]

> On 29 Jan 2018, at 21:17, Stephane Ducasse <[hidden email]> wrote:
>
> Hi phil
>
> Yes we want to kill all the VM logic related to events because IT GETS
> ON OUR NERVES.
> Kill them all. Esteban told me that he is super upset by all the event
> / screen logic and that he is looking at ronie' changes.
> Stef
>
> On Mon, Jan 29, 2018 at 8:10 AM, [hidden email] <[hidden email]> wrote:
>> If you are on Windows you can load Vista cursors from the catalog. Then you
>> will have settings for the size.
>>
>> Not all cursors are implemented but it is easy to do.
>>
>> On Linux I had VM crashes when doing #beCursor. Maybe is it fixed these
>> days.
>>
>> Phil
>>
>>
>> On Jan 29, 2018 06:22, "Animosity" <[hidden email]> wrote:
>>>
>>> Hi there,
>>>
>>> I'm not able to find any setting in the Pharo IDE related to changing the
>>> mouse cursor color or size?
>>> Can this be done at all? Thanks in advance.
>>>
>>>
>>>
>>> --
>>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>>
>>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: Pharo IDE - change mouse cursor color/size

Torsten Bergmann
@Phil: Maybe because I wrote the package back when I was on "Vista" and you should not
       use on Linux ;)

To be serious: Yes - changing the cursor in Linux never worked (for me). And the windows
               VM had large cursor introduced as "experimental" in 2009:

               http://forum.world.st/squeak-dev-New-Window-VM-Closures-FT2Plugin-Large-Cursors-td81092.html

Agree that more parts should be moved to image, especially window and key event related things. But this
is on the list since years - so the basic question is more if Estebans has the time to work on it.

Bye
T.

> Gesendet: Montag, 29. Januar 2018 um 23:48 Uhr
> Von: "Sven Van Caekenberghe" <[hidden email]>
> An: "Any question about pharo is welcome" <[hidden email]>
> Betreff: Re: [Pharo-users] Pharo IDE - change mouse cursor color/size
>
> Repeat [ More on the image side where we can all see it and work on it in a proper language, with proper design, using proper tools ]
>
> > On 29 Jan 2018, at 21:17, Stephane Ducasse <[hidden email]> wrote:
> >
> > Hi phil
> >
> > Yes we want to kill all the VM logic related to events because IT GETS
> > ON OUR NERVES.
> > Kill them all. Esteban told me that he is super upset by all the event
> > / screen logic and that he is looking at ronie' changes.
> > Stef
> >
> > On Mon, Jan 29, 2018 at 8:10 AM, [hidden email] <[hidden email]> wrote:
> >> If you are on Windows you can load Vista cursors from the catalog. Then you
> >> will have settings for the size.
> >>
> >> Not all cursors are implemented but it is easy to do.
> >>
> >> On Linux I had VM crashes when doing #beCursor. Maybe is it fixed these
> >> days.
> >>
> >> Phil
> >>
> >>
> >> On Jan 29, 2018 06:22, "Animosity" <[hidden email]> wrote:
> >>>
> >>> Hi there,
> >>>
> >>> I'm not able to find any setting in the Pharo IDE related to changing the
> >>> mouse cursor color or size?
> >>> Can this be done at all? Thanks in advance.
> >>>
> >>>
> >>>
> >>> --
> >>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> >>>
> >>>
> >>
> >
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Pharo IDE - change mouse cursor color/size

philippeback


On Tue, Jan 30, 2018 at 12:12 AM, Torsten Bergmann <[hidden email]> wrote:
@Phil: Maybe because I wrote the package back when I was on "Vista" and you should not
       use on Linux ;)

:-p

Cursor>>beCursor with Cursor being a Form makes a lot of sense on any platform.

On this age of Hi DPI I can't live with a tiny cursor that I cannot spot.

And we should basically be able to have massive cursors with animations etc.


 
To be serious: Yes - changing the cursor in Linux never worked (for me). And the windows
               VM had large cursor introduced as "experimental" in 2009:

               http://forum.world.st/squeak-dev-New-Window-VM-Closures-FT2Plugin-Large-Cursors-td81092.html

Agree that more parts should be moved to image, especially window and key event related things. But this
is on the list since years - so the basic question is more if Estebans has the time to work on it.

Event logic should be in the image indeed. The current system is a tad convoluted and one needs a couple of mental hops for understanding what comes from where.

Also, this will maybe allow for cleaner stopping of runaway loops.  

Best,
Phil

Bye
T.

> Gesendet: Montag, 29. Januar 2018 um 23:48 Uhr
> Von: "Sven Van Caekenberghe" <[hidden email]>
> An: "Any question about pharo is welcome" <[hidden email]>
> Betreff: Re: [Pharo-users] Pharo IDE - change mouse cursor color/size
>
> Repeat [ More on the image side where we can all see it and work on it in a proper language, with proper design, using proper tools ]
>
> > On 29 Jan 2018, at 21:17, Stephane Ducasse <[hidden email]> wrote:
> >
> > Hi phil
> >
> > Yes we want to kill all the VM logic related to events because IT GETS
> > ON OUR NERVES.
> > Kill them all. Esteban told me that he is super upset by all the event
> > / screen logic and that he is looking at ronie' changes.
> > Stef
> >
> > On Mon, Jan 29, 2018 at 8:10 AM, [hidden email] <[hidden email]> wrote:
> >> If you are on Windows you can load Vista cursors from the catalog. Then you
> >> will have settings for the size.
> >>
> >> Not all cursors are implemented but it is easy to do.
> >>
> >> On Linux I had VM crashes when doing #beCursor. Maybe is it fixed these
> >> days.
> >>
> >> Phil
> >>
> >>
> >> On Jan 29, 2018 06:22, "Animosity" <[hidden email]> wrote:
> >>>
> >>> Hi there,
> >>>
> >>> I'm not able to find any setting in the Pharo IDE related to changing the
> >>> mouse cursor color or size?
> >>> Can this be done at all? Thanks in advance.
> >>>
> >>>
> >>>
> >>> --
> >>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> >>>
> >>>
> >>
> >
>
>
>



Reply | Threaded
Open this post in threaded view
|

Re: Pharo IDE - change mouse cursor color/size

NorbertHartl


Am 30.01.2018 um 08:26 schrieb "[hidden email]" <[hidden email]>:



On Tue, Jan 30, 2018 at 12:12 AM, Torsten Bergmann <[hidden email]> wrote:
@Phil: Maybe because I wrote the package back when I was on "Vista" and you should not
       use on Linux ;)

:-p

Cursor>>beCursor with Cursor being a Form makes a lot of sense on any platform.

Sorry but Cursor>>beCursor does not make any sense on any platform :P

Norbert
On this age of Hi DPI I can't live with a tiny cursor that I cannot spot.

And we should basically be able to have massive cursors with animations etc.


 
To be serious: Yes - changing the cursor in Linux never worked (for me). And the windows
               VM had large cursor introduced as "experimental" in 2009:

               http://forum.world.st/squeak-dev-New-Window-VM-Closures-FT2Plugin-Large-Cursors-td81092.html

Agree that more parts should be moved to image, especially window and key event related things. But this
is on the list since years - so the basic question is more if Estebans has the time to work on it.

Event logic should be in the image indeed. The current system is a tad convoluted and one needs a couple of mental hops for understanding what comes from where.

Also, this will maybe allow for cleaner stopping of runaway loops.  

Best,
Phil

Bye
T.

> Gesendet: Montag, 29. Januar 2018 um 23:48 Uhr
> Von: "Sven Van Caekenberghe" <[hidden email]>
> An: "Any question about pharo is welcome" <[hidden email]>
> Betreff: Re: [Pharo-users] Pharo IDE - change mouse cursor color/size
>
> Repeat [ More on the image side where we can all see it and work on it in a proper language, with proper design, using proper tools ]
>
> > On 29 Jan 2018, at 21:17, Stephane Ducasse <[hidden email]> wrote:
> >
> > Hi phil
> >
> > Yes we want to kill all the VM logic related to events because IT GETS
> > ON OUR NERVES.
> > Kill them all. Esteban told me that he is super upset by all the event
> > / screen logic and that he is looking at ronie' changes.
> > Stef
> >
> > On Mon, Jan 29, 2018 at 8:10 AM, [hidden email] <[hidden email]> wrote:
> >> If you are on Windows you can load Vista cursors from the catalog. Then you
> >> will have settings for the size.
> >>
> >> Not all cursors are implemented but it is easy to do.
> >>
> >> On Linux I had VM crashes when doing #beCursor. Maybe is it fixed these
> >> days.
> >>
> >> Phil
> >>
> >>
> >> On Jan 29, 2018 06:22, "Animosity" <[hidden email]> wrote:
> >>>
> >>> Hi there,
> >>>
> >>> I'm not able to find any setting in the Pharo IDE related to changing the
> >>> mouse cursor color or size?
> >>> Can this be done at all? Thanks in advance.
> >>>
> >>>
> >>>
> >>> --
> >>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> >>>
> >>>
> >>
> >
>
>
>



Reply | Threaded
Open this post in threaded view
|

Re: Pharo IDE - change mouse cursor color/size

Stephane Ducasse-3
In reply to this post by Animosity
On Mon, Jan 29, 2018 at 11:13 PM, Animosity
<[hidden email]> wrote:
> VistaCursors worked great on windows. It also led me to the discovery of the
> Cursor class, the different cursor types (normal, resizing, etc.) and masks.
> Thank you for your help.
>
> PS: I also found out how to register custom settings to be added to the
> Settings dialog. That will come in handy at some point I'm sure.

There is a chapter in Deep into Pharo on Settings.

Reply | Threaded
Open this post in threaded view
|

Re: Pharo IDE - change mouse cursor color/size

Stephane Ducasse-3
In reply to this post by philippeback
>>
>> To be serious: Yes - changing the cursor in Linux never worked (for me).
>> And the windows
>>                VM had large cursor introduced as "experimental" in 2009:
>>
>>
>> http://forum.world.st/squeak-dev-New-Window-VM-Closures-FT2Plugin-Large-Cursors-td81092.html
>>
>> Agree that more parts should be moved to image, especially window and key
>> event related things. But this
>> is on the list since years - so the basic question is more if Estebans has
>> the time to work on it.

He is working on it.

He is just losing time on trying to recompile plugins on windows and
other time consuming and ugly tasks.
We should move as much as we can to FFI because some plugins are hell
to maintain.

Reply | Threaded
Open this post in threaded view
|

Re: Pharo IDE - change mouse cursor color/size

K K Subbu
In reply to this post by NorbertHartl
On Tuesday 30 January 2018 01:06 PM, Norbert Hartl wrote:

> Am 30.01.2018 um 08:26 schrieb "[hidden email]
> <mailto:[hidden email]>" <[hidden email]
> <mailto:[hidden email]>>:
>> On Tue, Jan 30, 2018 at 12:12 AM, Torsten Bergmann <[hidden email]
>> <mailto:[hidden email]>> wrote:
>>
>>
>> Cursor>>beCursor with Cursor being a Form makes a lot of sense on any
>> platform.
>>
> Sorry but Cursor>>beCursor does not make any sense on any platform :P
Could you be more explicit?

If beDisplay makes sense for DisplayScreen why not beCursor for Cursor?
While a Cursor can be emulated in an image, it would be more efficient
to use the cursor support present in practically all graphics
controllers these days.

TIA .. Subbu

Reply | Threaded
Open this post in threaded view
|

Re: Pharo IDE - change mouse cursor color/size

EstebanLM


> On 30 Jan 2018, at 09:46, K K Subbu <[hidden email]> wrote:
>
> On Tuesday 30 January 2018 01:06 PM, Norbert Hartl wrote:
>> Am 30.01.2018 um 08:26 schrieb "[hidden email] <mailto:[hidden email]>" <[hidden email] <mailto:[hidden email]>>:
>>> On Tue, Jan 30, 2018 at 12:12 AM, Torsten Bergmann <[hidden email] <mailto:[hidden email]>> wrote:
>>>
>>>
>>> Cursor>>beCursor with Cursor being a Form makes a lot of sense on any platform.
>>>
>> Sorry but Cursor>>beCursor does not make any sense on any platform :P
> Could you be more explicit?
>
> If beDisplay makes sense for DisplayScreen why not beCursor for Cursor? While a Cursor can be emulated in an image, it would be more efficient to use the cursor support present in practically all graphics controllers these days.

I guess because a cursor and a display are already cursors and displays (hence the “be” does not has sense), when what you are trying to do is actually to “install” them or “use” them, or “activating” them :)

Esteban

>
> TIA .. Subbu
>


Reply | Threaded
Open this post in threaded view
|

Re: Pharo IDE - change mouse cursor color/size

philippeback


On Tue, Jan 30, 2018 at 9:50 AM, Esteban Lorenzano <[hidden email]> wrote:


> On 30 Jan 2018, at 09:46, K K Subbu <[hidden email]> wrote:
>
> On Tuesday 30 January 2018 01:06 PM, Norbert Hartl wrote:
>> Am 30.01.2018 um 08:26 schrieb "[hidden email] <mailto:[hidden email]>" <[hidden email] <mailto:[hidden email]>>:
>>> On Tue, Jan 30, 2018 at 12:12 AM, Torsten Bergmann <[hidden email] <mailto:[hidden email]>> wrote:
>>>
>>>
>>> Cursor>>beCursor with Cursor being a Form makes a lot of sense on any platform.
>>>
>> Sorry but Cursor>>beCursor does not make any sense on any platform :P
> Could you be more explicit?
>
> If beDisplay makes sense for DisplayScreen why not beCursor for Cursor? While a Cursor can be emulated in an image, it would be more efficient to use the cursor support present in practically all graphics controllers these days.

There is no such thing at the moment in Pharo (maybe OSWindow is different).

* Windows cursor is not reflected in the system, it is a black little arrow by default.
* macOS cursor is not reflected either. I can set it as large as I want it doesn't agrees to.
 * Linux. Black thing and changing to a larger form makes Pharo crash.

beCursor makes sense when used like this:

setMoveCursor

|form cursor|
form := (Form
extent: 23@23
depth: 32
fromArray: #( 0 0 0 0 0 0 0 0 0 0 922945050 3171091994 922945050 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 922945050 3171091994 4293256936 3171091994 922945050 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 922945050 3171091994 4293256936 4294967295 4293191143 3171091994 922945050 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 922945050 3171091994 4293256936 4294967295 4294901502 4294901502 4293190886 3171091994 922945050 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3171091994 4293256936 4294967295 4294901502 4294901502 4294835709 4294769916 4293125093 3171091994 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3171091994 4278388250 4278388250 3171091994 4294835709 3171091994 4278388250 4278388250 3171091994 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3171091994 4294769916 3171091994 0 0 0 0 0 0 0 0 0 0 0 0 0 922945050 3171091994 3171091994 0 0 0 0 3171091994 4294769916 3171091994 0 0 0 0 3171091994 3171091994 922945050 0 0 0 0 0 922945050 3171091994 4293256936 4278388250 0 0 0 0 3171091994 4294704123 3171091994 0 0 0 0 4278388250 4292664799 3171091994 922945050 0 0 0 922945050 3171091994 4293256936 4294967295 4278388250 0 0 0 0 3171091994 4294638330 3171091994 0 0 0 0 4278388250 4294243572 4292532956 3171091994 922945050 0 922945050 3171091994 4293256936 4294967295 4294901502 3171091994 3171091994 3171091994 3171091994 3171091994 3171091994 4294572537 3171091994 3171091994 3171091994 3171091994 3171091994 3171091994 4294111986 4294046193 4292401370 3171091994 922945050 3171091994 4293256936 4294967295 4294901502 4294901502 4294835709 4294769916 4294769916 4294704123 4294638330 4294572537 4294506744 4294440951 4294375158 4294375158 4294309365 4294243572 4294111986 4294046193 4293980400 4293914607 4292269784 3171091994 922945050 3171091994 4293191143 4294901502 4294835709 3171091994 3171091994 3171091994 3171091994 3171091994 3171091994 4294440951 3171091994 3171091994 3171091994 3171091994 3171091994 3171091994 4293980400 4293914607 4292269784 3171091994 922945050 0 922945050 3171091994 4293190886 4294769916 4278388250 0 0 0 0 3171091994 4294375158 3171091994 0 0 0 0 4278388250 4293914607 4292269784 3171091994 922945050 0 0 0 922945050 3171091994 4293125093 4278388250 0 0 0 0 3171091994 4294375158 3171091994 0 0 0 0 4278388250 4292269784 3171091994 922945050 0 0 0 0 0 922945050 3171091994 3171091994 0 0 0 0 3171091994 4294309365 3171091994 0 0 0 0 3171091994 3171091994 922945050 0 0 0 0 0 0 0 0 0 0 0 0 0 3171091994 4294243572 3171091994 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3171091994 4278388250 4278388250 3171091994 4294111986 3171091994 4278388250 4278388250 3171091994 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3171091994 4292664799 4294243572 4294111986 4294046193 4293980400 4293914607 4292269784 3171091994 0 0 0 0 0 0 0 0 0 0 0 0 0 0 922945050 3171091994 4292532956 4294046193 4293980400 4293914607 4292269784 3171091994 922945050 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 922945050 3171091994 4292401370 4293914607 4292269784 3171091994 922945050 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 922945050 3171091994 4292269784 3171091994 922945050 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 922945050 3171091994 922945050 0 0 0 0 0 0 0 0 0 0)
offset: 0@0).
form := form magnifyBy: VistaCursorSettings cursorScaleFactor.
cursor := Cursor extent: form extent depth: 32.
cursor offset: (form width // 2) negated @ (form height // 2) negated.
cursor bits: form bits.
Cursor classPool at: #MoveCursor put: cursor.
cursor beCursor

And we could load that thing from a PNG or a web resource etc.
Until beCursor is not sent, the Cursor is not really *the* hand cursor.

I actually like the beXXX way. It makes a lot of code clearer, especially when cascading options for a given object.

We used to have the ability to have several "hands" active at once in an image (actually I miss that).
I guess that for such scenarios, a system cursor is not going to be of much use.

But I want to have the ability to reflect the system cursor in Pharo so that it doesn't look too alien or "ugly" when it comes to cursors.


I guess because a cursor and a display are already cursors and displays (hence the “be” does not has sense), when what you are trying to do is actually to “install” them or “use” them, or “activating” them :)

Nah they are not. Installing would be a shortcut for  e.g. Cursor classPool at: #MoveCursor put: cursor.

activate? Well, there is already 

showWaitCursorWhile: aBlock
Cursor wait showWhile: aBlock

So that we can do UIManager default showWaitCursorWhile: [ 10 seconds wait ]

doing 

Cursor wait showWhile: aBlock

Then we get

Cursor wait showWhile: aBlock

So that is not activate nor anything.

And we can also need to use something from the hand.

ActiveHand showTemporaryCursor: Cursor resizeBottom.

There are quite several use cases beyond "activating" a cursor.


Phil
 

Esteban

>
> TIA .. Subbu
>




Reply | Threaded
Open this post in threaded view
|

Re: Pharo IDE - change mouse cursor color/size

Pavel Krivanek-3
In reply to this post by Torsten Bergmann
If I added -lXrender to LIBS and -DHAVE_LIBXRENDER=1 to CFLAGS into
mvm, so for exammple in
opensmalltalk-vm/build.linux32x86/pharo.cog.spur/build.debug

CFLAGS="$OPT -msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DCOGMTVM=0
-DHAVE_LIBXRENDER=1" \
LIBS="-lXrender -lpthread -luuid -Wl,-rpath,'\$\$ORIGIN' " \

then I was able to make beCursor primitive work on Ubuntu, see the screenshot

-- Pavel

2018-01-30 0:12 GMT+01:00 Torsten Bergmann <[hidden email]>:

> @Phil: Maybe because I wrote the package back when I was on "Vista" and you should not
>        use on Linux ;)
>
> To be serious: Yes - changing the cursor in Linux never worked (for me). And the windows
>                VM had large cursor introduced as "experimental" in 2009:
>
>                http://forum.world.st/squeak-dev-New-Window-VM-Closures-FT2Plugin-Large-Cursors-td81092.html
>
> Agree that more parts should be moved to image, especially window and key event related things. But this
> is on the list since years - so the basic question is more if Estebans has the time to work on it.
>
> Bye
> T.
>
>> Gesendet: Montag, 29. Januar 2018 um 23:48 Uhr
>> Von: "Sven Van Caekenberghe" <[hidden email]>
>> An: "Any question about pharo is welcome" <[hidden email]>
>> Betreff: Re: [Pharo-users] Pharo IDE - change mouse cursor color/size
>>
>> Repeat [ More on the image side where we can all see it and work on it in a proper language, with proper design, using proper tools ]
>>
>> > On 29 Jan 2018, at 21:17, Stephane Ducasse <[hidden email]> wrote:
>> >
>> > Hi phil
>> >
>> > Yes we want to kill all the VM logic related to events because IT GETS
>> > ON OUR NERVES.
>> > Kill them all. Esteban told me that he is super upset by all the event
>> > / screen logic and that he is looking at ronie' changes.
>> > Stef
>> >
>> > On Mon, Jan 29, 2018 at 8:10 AM, [hidden email] <[hidden email]> wrote:
>> >> If you are on Windows you can load Vista cursors from the catalog. Then you
>> >> will have settings for the size.
>> >>
>> >> Not all cursors are implemented but it is easy to do.
>> >>
>> >> On Linux I had VM crashes when doing #beCursor. Maybe is it fixed these
>> >> days.
>> >>
>> >> Phil
>> >>
>> >>
>> >> On Jan 29, 2018 06:22, "Animosity" <[hidden email]> wrote:
>> >>>
>> >>> Hi there,
>> >>>
>> >>> I'm not able to find any setting in the Pharo IDE related to changing the
>> >>> mouse cursor color or size?
>> >>> Can this be done at all? Thanks in advance.
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> >>>
>> >>>
>> >>
>> >
>>
>>
>>
>

cursor.png (107K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Pharo IDE - change mouse cursor color/size

philippeback
Awsome.

On Tue, Jan 30, 2018 at 10:43 AM, Pavel Krivanek <[hidden email]> wrote:
If I added -lXrender to LIBS and -DHAVE_LIBXRENDER=1 to CFLAGS into
mvm, so for exammple in
opensmalltalk-vm/build.linux32x86/pharo.cog.spur/build.debug

CFLAGS="$OPT -msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DCOGMTVM=0
-DHAVE_LIBXRENDER=1" \
LIBS="-lXrender -lpthread -luuid -Wl,-rpath,'\$\$ORIGIN' " \

then I was able to make beCursor primitive work on Ubuntu, see the screenshot

-- Pavel

2018-01-30 0:12 GMT+01:00 Torsten Bergmann <[hidden email]>:
> @Phil: Maybe because I wrote the package back when I was on "Vista" and you should not
>        use on Linux ;)
>
> To be serious: Yes - changing the cursor in Linux never worked (for me). And the windows
>                VM had large cursor introduced as "experimental" in 2009:
>
>                http://forum.world.st/squeak-dev-New-Window-VM-Closures-FT2Plugin-Large-Cursors-td81092.html
>
> Agree that more parts should be moved to image, especially window and key event related things. But this
> is on the list since years - so the basic question is more if Estebans has the time to work on it.
>
> Bye
> T.
>
>> Gesendet: Montag, 29. Januar 2018 um 23:48 Uhr
>> Von: "Sven Van Caekenberghe" <[hidden email]>
>> An: "Any question about pharo is welcome" <[hidden email]>
>> Betreff: Re: [Pharo-users] Pharo IDE - change mouse cursor color/size
>>
>> Repeat [ More on the image side where we can all see it and work on it in a proper language, with proper design, using proper tools ]
>>
>> > On 29 Jan 2018, at 21:17, Stephane Ducasse <[hidden email]> wrote:
>> >
>> > Hi phil
>> >
>> > Yes we want to kill all the VM logic related to events because IT GETS
>> > ON OUR NERVES.
>> > Kill them all. Esteban told me that he is super upset by all the event
>> > / screen logic and that he is looking at ronie' changes.
>> > Stef
>> >
>> > On Mon, Jan 29, 2018 at 8:10 AM, [hidden email] <[hidden email]> wrote:
>> >> If you are on Windows you can load Vista cursors from the catalog. Then you
>> >> will have settings for the size.
>> >>
>> >> Not all cursors are implemented but it is easy to do.
>> >>
>> >> On Linux I had VM crashes when doing #beCursor. Maybe is it fixed these
>> >> days.
>> >>
>> >> Phil
>> >>
>> >>
>> >> On Jan 29, 2018 06:22, "Animosity" <[hidden email]> wrote:
>> >>>
>> >>> Hi there,
>> >>>
>> >>> I'm not able to find any setting in the Pharo IDE related to changing the
>> >>> mouse cursor color or size?
>> >>> Can this be done at all? Thanks in advance.
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>> >>>
>> >>>
>> >>
>> >
>>
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Pharo IDE - change mouse cursor color/size

NorbertHartl
In reply to this post by EstebanLM


Am 30.01.2018 um 09:50 schrieb Esteban Lorenzano <[hidden email]>:



On 30 Jan 2018, at 09:46, K K Subbu <[hidden email]> wrote:

On Tuesday 30 January 2018 01:06 PM, Norbert Hartl wrote:
Am 30.01.2018 um 08:26 schrieb "[hidden email] <[hidden email]>" <[hidden email] <[hidden email]>>:
On Tue, Jan 30, 2018 at 12:12 AM, Torsten Bergmann <[hidden email] <[hidden email]>> wrote:


Cursor>>beCursor with Cursor being a Form makes a lot of sense on any platform.

Sorry but Cursor>>beCursor does not make any sense on any platform :P
Could you be more explicit?

If beDisplay makes sense for DisplayScreen why not beCursor for Cursor? While a Cursor can be emulated in an image, it would be more efficient to use the cursor support present in practically all graphics controllers these days.

I guess because a cursor and a display are already cursors and displays (hence the “be” does not has sense), when what you are trying to do is actually to “install” them or “use” them, or “activating” them :)

Exactly. beXXX is used to make something adjust. A cursor is a cursor. So it needs to be called at least beXXXCursor where XXX gives the context what actually do, be it installation somewhere or… as Esteban said make that useXXX

Norbert

Esteban


TIA .. Subbu