XWidgetSoft Forum
https://bbs.xwidget.com/

Stretch Dock
https://bbs.xwidget.com/viewtopic.php?f=8&t=2502
Page 1 of 1

Author:  RaDMaN [ January 7th, 2013, 8:47 am ]
Post subject:  Stretch Dock

Hello there! Could help me with the dock? I make Mac OS ML Dock for XWidget:
Attachment:
1.PNG
1.PNG [ 63.11 KiB | Viewed 13076 times ]


I made a certain number of icons on the dock. But different people want different number of icons. How to implement stretching dock for different number of icons? For example the default will be two icons. After drag and drop five shortcuts on the dock. And the dock panel will stretch under the 7 icons.
How can you do this?

I really hope that you will answer. Sincerely RaDMaN :)

Author:  RaDMaN [ January 11th, 2013, 3:19 am ]
Post subject:  Re: Stretch Dock

No one can help?

Author:  Armando [ January 11th, 2013, 4:54 am ]
Post subject:  Re: Stretch Dock

It would be great! Sorry but I can't help you. I know nothing of codes...
Good luck! I hope somebody help you...

Author:  Tony [ January 11th, 2013, 5:46 am ]
Post subject:  Re: Stretch Dock

Awesome! You can set the dock background image control property "Picture--Wrapmode" as "Stretch" ,and set "stretch margins" ,then when the icons number change, you just set dock background image width, it will auto stretch fit

Author:  Armando [ January 11th, 2013, 8:10 am ]
Post subject:  Re: Stretch Dock

I'll waiting the final version with auto strech background!
share it

Author:  RaDMaN [ January 12th, 2013, 4:26 am ]
Post subject:  Re: Stretch Dock

Thank you.
Вut, I not understand how to do. Can help? I will send skin to you the

Author:  Tony [ January 13th, 2013, 8:57 pm ]
Post subject:  Re: Stretch Dock

RaDMaN wrote:
Thank you.
Вut, I not understand how to do. Can help? I will send skin to you the


OK, please sent to me :)

Author:  RaDMaN [ January 14th, 2013, 8:41 am ]
Post subject:  Re: Stretch Dock

Tony wrote:
RaDMaN wrote:
Thank you.
Вut, I not understand how to do. Can help? I will send skin to you the


OK, please sent to me :)

https://dl.dropbox.com/u/32655885/ml_dock.XWidgetPkg

Author:  RaDMaN [ January 18th, 2013, 7:38 am ]
Post subject:  Re: Stretch Dock

You help? :)

Author:  RaDMaN [ January 25th, 2013, 2:24 am ]
Post subject:  Re: Stretch Dock

Tony, please help.

Author:  bebert135 [ January 28th, 2013, 11:00 pm ]
Post subject:  Re: Stretch Dock

Maybe you could try it :

Image

Author:  RaDMaN [ January 29th, 2013, 8:13 am ]
Post subject:  Re: Stretch Dock

It's not that: (

Author:  digigamer [ March 9th, 2013, 6:57 am ]
Post subject:  Re: Stretch Dock

i've already tried this...
    Lets assume, your dock's background image is a control named bg.
    Set align to client.It will automatically fill the entire width.
    Set background to "stretch" and set appropriate margins.

then since you mentioned you use DnD then use this...

Code:
var ICON_WIDTH = 64; //change according your requirements
var PADDING = 16; //change according your requirements
bgOnDragDrop(Sender,Data,Point)
{
//add your shortcut adding code here
var grow = (ICON_WIDTH + PADDING)/2;
widget.Left = widget.Left - grow;
widget.Width = wiget.Width + grow;
}


If you share your code... I might help :D

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/