CheckBoxes and Drop-down Lists with MorphicToolBuilder

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

CheckBoxes and Drop-down Lists with MorphicToolBuilder

Rob Withers-2
I am trying to build a log viewer that will filter the results based on
check boxes selected and a selection in a drop-down box.   I am using the
MorphicToolBuilder to do so, but I am having trouble figuring this out.

CheckBoxes:  I see ToolBuilder>>#buildPluggableCheckBox:, but it defers to
#buildPluggableButton:.   I didn't see a PluggableCheckBoxMorph or anything.
Is there a way to configure a PluggableButtonMorphPlus to be a CheckBox?

DropDownMenuBox:  I didn't see anything about this.  Is there a way to do
thid?

TIA,
Rob


Reply | Threaded
Open this post in threaded view
|

Re: CheckBoxes and Drop-down Lists with MorphicToolBuilder

Andreas.Raab
On 9/10/2010 3:47 AM, Rob Withers wrote:
> I am trying to build a log viewer that will filter the results based on
> check boxes selected and a selection in a drop-down box. I am using the
> MorphicToolBuilder to do so, but I am having trouble figuring this out.
>
> CheckBoxes: I see ToolBuilder>>#buildPluggableCheckBox:, but it defers
> to #buildPluggableButton:. I didn't see a PluggableCheckBoxMorph or
> anything. Is there a way to configure a PluggableButtonMorphPlus to be a
> CheckBox?

Currently not. It's a place holder. Up for extending this properly?

> DropDownMenuBox: I didn't see anything about this. Is there a way to do
> thid?

No, but it should extend the pluggable list. Then you'd need a properly
fronting widget for it, just like with the checkbox.

Cheers,
   - Andreas

Reply | Threaded
Open this post in threaded view
|

Re: CheckBoxes and Drop-down Lists withMorphicToolBuilder

Rob Withers-2
Ok, I managed a few things.   I published to the inbox:

ToolBuilder-Kernel
ToolBuilder-Morphic

I got the checkbox implemented.  Far from perfect, it has a funny
background.   It works, though.

I also got the infrastructure done for a DropDownListMorph.
#installDropDownList on the class is the method which builds the widgetry.
Currently, it has a label and a button.  I couldn't figure out how to "drop
down" the list.

I decided to use just a list instead of a drop down for my trace viewer.  It
works good.

Rob

--------------------------------------------------
From: "Andreas Raab" <[hidden email]>
Sent: Friday, September 10, 2010 12:17 PM
To: "The general-purpose Squeak developers list"
<[hidden email]>
Subject: [squeak-dev] Re: CheckBoxes and Drop-down Lists
withMorphicToolBuilder

> On 9/10/2010 3:47 AM, Rob Withers wrote:
>> I am trying to build a log viewer that will filter the results based on
>> check boxes selected and a selection in a drop-down box. I am using the
>> MorphicToolBuilder to do so, but I am having trouble figuring this out.
>>
>> CheckBoxes: I see ToolBuilder>>#buildPluggableCheckBox:, but it defers
>> to #buildPluggableButton:. I didn't see a PluggableCheckBoxMorph or
>> anything. Is there a way to configure a PluggableButtonMorphPlus to be a
>> CheckBox?
>
> Currently not. It's a place holder. Up for extending this properly?
>
>> DropDownMenuBox: I didn't see anything about this. Is there a way to do
>> thid?
>
> No, but it should extend the pluggable list. Then you'd need a properly
> fronting widget for it, just like with the checkbox.
>
> Cheers,
>   - Andreas
>
>