[Bug] ? Rotating a window via halo causes an exception

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

[Bug] ? Rotating a window via halo causes an exception

Ariel Feinerman-2
Hi all,

I try to rotate a window via halo but it causes an exception because Color object does not understand width: color message. How to fix it? As far as I remember in previos versions all worked.

-------------------------------------------------------------------------------------------------------------------------------------------

borderStyle
    "Work around the borderWidth/borderColor pair"

    | style |
    borderColor ifNil: [^BorderStyle default].
    borderWidth isZero ifTrue: [^BorderStyle default].
    style := self valueOfProperty: #borderStyle ifAbsent: [BorderStyle default].
    (borderWidth = style width and:
            ["Hah! Try understanding this..."

            borderColor == style style or:
                    ["#raised/#inset etc"

                    #simple == style style and: [borderColor = style color]]])
        ifFalse:
            [style := borderColor isColor
                ifTrue: [BorderStyle width: borderWidth color: borderColor]  " ----> this string causes  an exception"
                ifFalse: [(BorderStyle perform: borderColor) width: borderWidth    "argh."].
            self setProperty: #borderStyle toValue: style].
    ^style trackColorFrom: self



SqueakDebug.log (18K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Bug] ? Rotating a window via halo causes an exception

marcel.taeumel
Reply | Threaded
Open this post in threaded view
|

Re: [Bug] ? Rotating a window via halo causes an exception

Ariel Feinerman-2
Of course I mean BorderStyle>>width: color: then I checked it and have found that it implement method .

Thank you, I will try





On Wed, May 20, 2015 at 8:45 AM, marcel.taeumel <[hidden email]> wrote:
Try a newer CogVM.

http://www.mirandabanda.org/files/Cog/VM/VM.r3350/

Best,
Marcel



--
View this message in context: http://forum.world.st/Bug-Rotating-a-window-via-halo-causes-an-exception-tp4827501p4827531.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.




--
Best regards,
Ariel


Reply | Threaded
Open this post in threaded view
|

Re: [Bug] ? Rotating a window via halo causes an exception

Ariel Feinerman-2
Thank you, all works.

On Wed, May 20, 2015 at 6:03 PM, Ariel Feinerman <[hidden email]> wrote:
Of course I mean BorderStyle>>width: color: then I checked it and have found that it implement method .

Thank you, I will try





On Wed, May 20, 2015 at 8:45 AM, marcel.taeumel <[hidden email]> wrote:
Try a newer CogVM.

http://www.mirandabanda.org/files/Cog/VM/VM.r3350/

Best,
Marcel



--
View this message in context: http://forum.world.st/Bug-Rotating-a-window-via-halo-causes-an-exception-tp4827501p4827531.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.




--
Best regards,
Ariel



--
Best regards,
Ariel