[squeak-dev] My button isn't listening to me.

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

[squeak-dev] My button isn't listening to me.

Casey Ransberger
I have the following initialization method on my subclass of IconicButton:

initialize
super initialize.
self
extent: 50@50;
color: Color transparent;
borderWidth: 2;
borderColor: Color transparent;
hResizing: #shrinkWrap;
vResizing: #shrinkWrap;
borderStyle: SimpleBorder new;
cornerStyle: #rounded;
borderWidth: 2;
actWhen: #startDrag

Oddly, however, when I create and inspect my button, I see that actWhen is set to #buttonUp. That seems weird. Am I doing something wrong, or do I have a bug?

--
Ron


Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Re: My button isn't listening to me.

Casey Ransberger
Haha, clicked send a little too quickly on this one. This was my error.

On Sat, Aug 29, 2009 at 12:44 PM, Ronald Spengler <[hidden email]> wrote:
I have the following initialization method on my subclass of IconicButton:

initialize
super initialize.
self
extent: 50@50;
color: Color transparent;
borderWidth: 2;
borderColor: Color transparent;
hResizing: #shrinkWrap;
vResizing: #shrinkWrap;
borderStyle: SimpleBorder new;
cornerStyle: #rounded;
borderWidth: 2;
actWhen: #startDrag

Oddly, however, when I create and inspect my button, I see that actWhen is set to #buttonUp. That seems weird. Am I doing something wrong, or do I have a bug?

--
Ron



--
Ron