|
|
Re: Widget proposal: ImageCombo [message #46528 is a reply to message #46411] |
Mon, 14 January 2008 16:21 |
Matthew Hall Messages: 368 Registered: July 2009 |
Senior Member |
|
|
Tom Seidel wrote:
> Hi,
>
> I was wondering if there is a need for a combo-widget with images for
> nebula. If yes, I could contribute such a widget, see
> http://www.richclient2.eu/2006_03_03/enhancing-the-combo-wid get-with-images/
>
>
> Cheerz,
> Tom
This is great work. I have an ImageCombo of my own that is similar to
yours, but not as polished.
I also think any discussion about custom combos should include PCombo.
PCombo was part of SWTPlus before most of it was absorbed into Nebula.
PCombo was nice because you could put any control you wanted in the drop
down. It could be a calendar, color picker, whatever. It took care of
the combo idioms like focus handling, allocating, showing and hiding the
drop down. You in turn had to implement a strategy object that would
create the drop down control, and inform the combo when a selection was
made.
Matthew
|
|
|
|
Re: Widget proposal: ImageCombo [message #46807 is a reply to message #46528] |
Thu, 17 January 2008 15:19 |
Chris Gross Messages: 253 Registered: July 2009 |
Senior Member |
|
|
I think there is definitely a need for a combo widget. I have the
PCombo code still somewhere if anyone wants to look at it or use it.
One tricky part with combos is the focus issues. Using standard widgets
inside the combo dropdown will cause the dropdown to get focus. I did
various things in PCombo to try to minimize them but their still there.
You can see titlebar flicker and under Mac its even worse.
If you write your own custom widget as the content in a dropdown and you
don't rely on any standard widgets... and your custom widget is designed
to never take focus, you can avoid these issues.
Regards,
-Chris
Matthew Hall wrote:
> Tom Seidel wrote:
>> Hi,
>>
>> I was wondering if there is a need for a combo-widget with images for
>> nebula. If yes, I could contribute such a widget, see
>> http://www.richclient2.eu/2006_03_03/enhancing-the-combo-wid get-with-images/
>>
>>
>> Cheerz,
>> Tom
>
> This is great work. I have an ImageCombo of my own that is similar to
> yours, but not as polished.
>
> I also think any discussion about custom combos should include PCombo.
> PCombo was part of SWTPlus before most of it was absorbed into Nebula.
>
> PCombo was nice because you could put any control you wanted in the drop
> down. It could be a calendar, color picker, whatever. It took care of
> the combo idioms like focus handling, allocating, showing and hiding the
> drop down. You in turn had to implement a strategy object that would
> create the drop down control, and inform the combo when a selection was
> made.
>
> Matthew
|
|
|
|
|
|
|
|
|
Re: Widget proposal: ImageCombo [message #587643 is a reply to message #46411] |
Mon, 14 January 2008 16:21 |
Matthew Hall Messages: 368 Registered: July 2009 |
Senior Member |
|
|
Tom Seidel wrote:
> Hi,
>
> I was wondering if there is a need for a combo-widget with images for
> nebula. If yes, I could contribute such a widget, see
> http://www.richclient2.eu/2006_03_03/enhancing-the-combo-wid get-with-images/
>
>
> Cheerz,
> Tom
This is great work. I have an ImageCombo of my own that is similar to
yours, but not as polished.
I also think any discussion about custom combos should include PCombo.
PCombo was part of SWTPlus before most of it was absorbed into Nebula.
PCombo was nice because you could put any control you wanted in the drop
down. It could be a calendar, color picker, whatever. It took care of
the combo idioms like focus handling, allocating, showing and hiding the
drop down. You in turn had to implement a strategy object that would
create the drop down control, and inform the combo when a selection was
made.
Matthew
|
|
|
|
Re: Widget proposal: ImageCombo [message #587757 is a reply to message #46528] |
Thu, 17 January 2008 15:19 |
Chris Gross Messages: 471 Registered: July 2009 |
Senior Member |
|
|
I think there is definitely a need for a combo widget. I have the
PCombo code still somewhere if anyone wants to look at it or use it.
One tricky part with combos is the focus issues. Using standard widgets
inside the combo dropdown will cause the dropdown to get focus. I did
various things in PCombo to try to minimize them but their still there.
You can see titlebar flicker and under Mac its even worse.
If you write your own custom widget as the content in a dropdown and you
don't rely on any standard widgets... and your custom widget is designed
to never take focus, you can avoid these issues.
Regards,
-Chris
Matthew Hall wrote:
> Tom Seidel wrote:
>> Hi,
>>
>> I was wondering if there is a need for a combo-widget with images for
>> nebula. If yes, I could contribute such a widget, see
>> http://www.richclient2.eu/2006_03_03/enhancing-the-combo-wid get-with-images/
>>
>>
>> Cheerz,
>> Tom
>
> This is great work. I have an ImageCombo of my own that is similar to
> yours, but not as polished.
>
> I also think any discussion about custom combos should include PCombo.
> PCombo was part of SWTPlus before most of it was absorbed into Nebula.
>
> PCombo was nice because you could put any control you wanted in the drop
> down. It could be a calendar, color picker, whatever. It took care of
> the combo idioms like focus handling, allocating, showing and hiding the
> drop down. You in turn had to implement a strategy object that would
> create the drop down control, and inform the combo when a selection was
> made.
>
> Matthew
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04184 seconds