XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 1:44 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Stretch Dock
PostPosted: January 7th, 2013, 8:47 am 
Offline
User avatar

Joined: June 10th, 2012, 9:15 am
Posts: 67
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 11524 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 :)


Top
 Profile  
 
 Post subject: Re: Stretch Dock
PostPosted: January 11th, 2013, 3:19 am 
Offline
User avatar

Joined: June 10th, 2012, 9:15 am
Posts: 67
No one can help?


Top
 Profile  
 
 Post subject: Re: Stretch Dock
PostPosted: January 11th, 2013, 4:54 am 
Offline
User avatar

Joined: June 12th, 2012, 11:05 am
Posts: 257
Location: Barcelona
It would be great! Sorry but I can't help you. I know nothing of codes...
Good luck! I hope somebody help you...


Top
 Profile  
 
 Post subject: Re: Stretch Dock
PostPosted: January 11th, 2013, 5:46 am 
Offline
User avatar

Joined: May 12th, 2012, 8:32 pm
Posts: 594
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

_________________
XWidget Software Developer
[XWidget for Android] [Lastest version of XWidget] [Lastest patch of XWidget]
[XDesktop for Android/Windows]


Top
 Profile  
 
 Post subject: Re: Stretch Dock
PostPosted: January 11th, 2013, 8:10 am 
Offline
User avatar

Joined: June 12th, 2012, 11:05 am
Posts: 257
Location: Barcelona
I'll waiting the final version with auto strech background!
share it


Top
 Profile  
 
 Post subject: Re: Stretch Dock
PostPosted: January 12th, 2013, 4:26 am 
Offline
User avatar

Joined: June 10th, 2012, 9:15 am
Posts: 67
Thank you.
Вut, I not understand how to do. Can help? I will send skin to you the


Top
 Profile  
 
 Post subject: Re: Stretch Dock
PostPosted: January 13th, 2013, 8:57 pm 
Offline
User avatar

Joined: May 12th, 2012, 8:32 pm
Posts: 594
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 :)

_________________
XWidget Software Developer
[XWidget for Android] [Lastest version of XWidget] [Lastest patch of XWidget]
[XDesktop for Android/Windows]


Top
 Profile  
 
 Post subject: Re: Stretch Dock
PostPosted: January 14th, 2013, 8:41 am 
Offline
User avatar

Joined: June 10th, 2012, 9:15 am
Posts: 67
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


Top
 Profile  
 
 Post subject: Re: Stretch Dock
PostPosted: January 18th, 2013, 7:38 am 
Offline
User avatar

Joined: June 10th, 2012, 9:15 am
Posts: 67
You help? :)


Top
 Profile  
 
 Post subject: Re: Stretch Dock
PostPosted: January 25th, 2013, 2:24 am 
Offline
User avatar

Joined: June 10th, 2012, 9:15 am
Posts: 67
Tony, please help.


Top
 Profile  
 
 Post subject: Re: Stretch Dock
PostPosted: January 28th, 2013, 11:00 pm 
Offline
User avatar

Joined: January 25th, 2013, 8:36 pm
Posts: 40
Maybe you could try it :

Image

_________________
Just a french guy loving computers ^^ !
Find me on DA : http://bebert135.deviantart.com/


Top
 Profile  
 
 Post subject: Re: Stretch Dock
PostPosted: January 29th, 2013, 8:13 am 
Offline
User avatar

Joined: June 10th, 2012, 9:15 am
Posts: 67
It's not that: (


Top
 Profile  
 
 Post subject: Re: Stretch Dock
PostPosted: March 9th, 2013, 6:57 am 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
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

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 51 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group