[squeak-dev] Re: Calendar Chooser

H. Hirzel hannes.hirzel at gmail.com
Mon Jan 21 06:22:13 UTC 2013


Jon,

Yes, it is useful indeed. Good to have it back in Squeak.

I downloaded the latest trunk image from:
squeakci.org/job/SqueakTrunk/lastSuccessfulBuild/

to test it.

The integration into the menu system was not fine. It needed
initialization code.



Instead of

CalendarChooserMorph>>
date

	^date


We need

CalendarChooserMorph>>
date

	date isNil ifTrue: [ self date: Date today].
	^date


I added the updated version to the inbox

MCHttpRepository
	location: 'http://source.squeak.org/inbox'
	user: ''
	password: ''

as MorphicExtras-hjh.106


--Hannes

On 1/21/13, Jon Hylands <jon at huv.com> wrote:
> Sean,
>
> I'm using it in a timesheet tracking application. Basically, the calendar
> is in the top-left of the window, and I can enter descriptive text and
> hours worked for whatever date is selected in the calendar.
>
>
> Glad you're finding it useful...
>
> I create it onscreen, and then hook up the following events:
>
>     calendarMorph
>         when: #dateChanged send: #calendarDateChanged to: self;
>         when: #menu send: #calendarMenu to: self.
>
>
> - Jon
>
>
>
> On Sun, Jan 20, 2013 at 9:06 PM, Sean P. DeNigris
> <sean at clipperadams.com>wrote:
>
>> Jon Hylands wrote
>> > a decent Calendar
>> > chooser... I spent a few hours and
>> > made what I think is a nice one...
>>
>> This thing is awesome!! Thanks a lot Jon for making it. It works great.
>>
>> One question... how are you using it? I ask because the typical usage
>> I've
>> seen (e.g. in web forms) is that a calendar appears, you select a date,
>> and
>> it disappears, entering the date somewhere e.g. a text field. However,
>> with
>> your calendar, it looks like after a date is selected, the calendar
>> remains.
>> Presumably something would have to keep polling to see if a date was
>> selected... Is that what you're doing?
>>
>> Thanks again for the awesome gift :)
>>
>> Cheers,
>> Sean
>>
>>
>>
>> --
>> View this message in context:
>> http://forum.world.st/Calendar-Chooser-tp3980015p4664341.html
>> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>>
>>
>


More information about the Squeak-dev mailing list