Composition Editor - object morphed - framingSpecs lost

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

Composition Editor - object morphed - framingSpecs lost

Postby marten » Fri Oct 27, 2006 5:07 am

I one morphes the selected object into another object very often some framingSpecs are lost and replaced by the default ones.

Example: ListBox and a push Button (which is placed below the ListBox) and the top-AttachmentContraint of the button is XmAttachWidget with value 5 to the ListBox. This framingSpec is totally lost, when the ListBox is morphed.

Marten
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Composition Editor - object morphed - framingSpecs lost

Postby solveig » Sat Oct 28, 2006 9:33 am

Marten,

The intention of morphing is to move as much widget state to the new widget as possible. It is less clear whether the newly morphed widget stand in for the original widget when it comes to other widget's dependencies on the original widget.

This may have been a case where the original developers of the morphing option didn't consider all of the cases (or maybe they did consider this case and rejected it).

In the general case, there is no way to preserve a widget attachment to a morphed widget as you have no idea what size the morphed widget will be.

Regards,
Solveig
solveig
Moderator
 
Posts: 57
Joined: Tue Oct 17, 2006 6:30 am

Re: Composition Editor - object morphed - framingSpecs lost

Postby marten » Sat Oct 28, 2006 10:21 am

solveig wrote:Marten,

...

In the general case, there is no way to preserve a widget attachment *to* a morphed widget as you have no idea what size the morphed widget will be.

Regards,
Solveig


Solveig,

I could imagine several answers, but that one was strange.

Ok, its not a bug - because nobody knows, what the original developers wanted to do, when he invented the morphing feature ... nice answer.

And actually I would always assume, that the morphed (new) widget is there to replace the old widget .... otherwise I could duplicate it ...

Therefore my posting is just a hint for a product improvement :-)

Marten
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Re: Composition Editor - object morphed - framingSpecs lost

Postby Eric Clayberg » Sat Oct 28, 2006 11:07 am

marten wrote:
solveig wrote:In the general case, there is no way to preserve a widget attachment to a morphed widget as you have no idea what size the morphed widget will be.

I could imagine several answers, but that one was strange.

Why? Take the very common cases of morphing a listbox to a dropdown or vice versa. In each case, the new widget has a very different size than the original. Preserving a widget attachment in either case would make little sense.

marten wrote:Ok, its not a bug - because nobody knows, what the original developers wanted to do, when he invented the morphing feature ... nice answer.

Actually, we can see that this behavior is likely intentional. If you take your original example, the attachment on the button is actually modified to become a frame-based attachment during the conversion. The easiest thing for the original developer would have been to simply done nothing with any attached widgets. Instead, those attachments are actually modifed from widget-based to frame-based.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: No registered users and 1 guest