Problem is... There is no such thing as Œempty.¹ If an Hbox has 5 items in
it ­ it has 5 items in it. If an Hbox has 2 items in it ­ it has 2 items in
it. Also, the default behavior of the Hbox is to accommodate and resize as
needed. It sounds to me like what you need to do is either make the illusion
of empty spaces or use a layout that facilitates your drag drop operation.

http://www.quilix.com/node/3
http://www.darronschall.com/weblog/archives/000263.cfm

Rick Winscot


On 8/25/08 8:18 PM, "anuj181" <[EMAIL PROTECTED]> wrote:

>  
>  
> 
> Hi
> I am using HBOX container to load images letting user drag image from
> one HBOX and dropping them in another (2nd)HBOX. I need to calculate
> the real estate of the HBOX in which the image has been dropped (i-e
> 2nd HBOX). The reason is that because I need the dropped image to get
> placed in an empty space within the 2nd HBOX.
> Is there any way I can calculate which space is empty in the HBOX and
> let my objects (images) to be placed only in the empty spaces within
> the HBOX (not the sapce already occupied by the placed images).Once
> the HBOX is full then I need to code in a way that images starts
> shrinking(upto some level) to accommodate more images.
> Please help me out in figuring out this problem. Any type of
> help/documentation/links in this direction will be highly appreciated.
> Thanks
> Anuj
> 
>  
>     


Reply via email to