Proposal for unify different pictures dictionary

Lic. Edgar J. De Cleene edgardec2001 at yahoo.com.ar
Tue Feb 7 19:18:21 UTC 2006


Juan Vuletich puso en su mail :

> WRT the image repositories, why do you say that I am using in a same form as
> ImageImports?
> To which one in ImageImports do you refer?

Juan:
I add one example of using ImageImports as I suggest.
Compare with current version of same method.
Edgar

-------------- next part --------------
'From SqueakLight3.7.1 of ''4 September 2004'' [latest update: #5989] on 7 February 2006 at 3:46:23 pm'!

!ThreePhaseButtonMorph class methodsFor: 'instance creation' stamp: 'edc 2/7/2006 15:44'!
checkBox
	"Answer a button pre-initialized with checkbox images."
	| f |
	^self new
		onImage: (f _ ((Imports default imports) at: 'CheckBoxOn'));
		pressedImage: ((Imports default imports) at: 'CheckBoxPressed');
		offImage: ((Imports default imports) at: 'CheckBoxOff');
		extent: f extent + (2 at 0);
		yourself
! !
-------------- next part --------------
'From SqueakLight3.7.1 of ''4 September 2004'' [latest update: #5989] on 7 February 2006 at 3:46:29 pm'!

!ThreePhaseButtonMorph class methodsFor: 'instance creation' stamp: 'edc 2/7/2006 14:58'!
radioButton
	"Answer a button pre-initialized with radiobutton images."
	
	| f |
	^self new
		onImage: (f_ (Imports default imports) at: 'RadioButtonOn');
		pressedImage: ((Imports default imports) at: 'RadioButtonPressed');
		offImage: ((Imports default imports) at: 'RadioButtonOff');
		extent: f extent + (2 at 0);
		yourself
! !


More information about the Squeak-dev mailing list