[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum • View topic - Changing Icon,path and title in ShortcutListCore from code

XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently April 18th, 2024, 3:59 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: October 19th, 2013, 1:03 am 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
Is it possible to change the icon title and path of a shortcut in ShortcutListCore from code. ? If such thing exists, it would be a great relief for me. I don't want to "reinvent the wheel" everytime.

**Note: here changing means, changing the icon title and path without any user interaction. I don't want to popup an dialog box to choose the icon.

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


Top
 Profile  
 
PostPosted: October 19th, 2013, 1:30 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
You mean something else than the "Accept File DragDop" option that exist in "Attributes" ->"Others" submenu?
Using this option when drag a file on the shortcut, this will take automatically the name, icon and the path of the file...
Now for make further modifications (specific icon and name) I'm afraid that you have to use settings window..

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: October 19th, 2013, 5:38 am 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353

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


Top
 Profile  
 
PostPosted: October 19th, 2013, 12:34 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
This may be helpful digigamer, it is two sections of the code I use to drag shortcuts from one core or location to another.

COPY
var StartIcon = "!SetIcon=" + eval(MoveStartCore).icon;
eval(MoveEndCore).cmd(null, StartIcon); // copy the icon from start to end

var StartPath = "!SetPath=" + eval(MoveStartCore).path;
eval(MoveEndCore).cmd(null, StartPath); // copy the path from start to end

var StartDesc = eval(MoveStartCore).displayName;
eval(MoveEndCore).displayName = StartDesc; // copy display name to end
Setvalue(MoveEndCore + ".displayName",StartDesc); // set display name in ini to preserve capital letters

PASTE
eval(CoreToEdit).cmd(null, CopyIcon); // paste the icon
eval(CoreToEdit).cmd(null, CopyPath); // paste the path
eval(CoreToEdit).displayName = CopyDesc; // paste the display name
Setvalue(CoreToEdit + ".displayName",CopyDesc); // paste the display name in ini to preserve capital letter
eval(CoreToEdit).param = CopyPara; // paste parameters to end
Setvalue(CoreToEdit + ".param",CopyPara); // set parameters in ini


Top
 Profile  
 
PostPosted: October 25th, 2013, 4:29 am 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
Sorry meme, your code wasn't of much help to me... My requirements are for the ShortCutListCore. And don't worry i accomplished it with that hack i wrote about above.

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


Top
 Profile  
 
PostPosted: October 25th, 2013, 11:55 am 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
Hi digigamer
Of course you said ShortcutListCore not Shortcutcore, my mistake :oops:
I tried using the ShortcutListCore for a launchpad type widget but could not work out how to control the position of shortcuts in the list so they appeared at certain locations, not sorted automatically without gaps between, I know you can move them but you can not space them as far as I can see. In the end I used may Shortcutcores in fixed positions, then code allows you to drag and drop the content of one Shortcutcore to another in a different locations, this allows you to arrange the shortcuts however you like and they stay in that position.


Top
 Profile  
 
PostPosted: October 28th, 2013, 8:25 am 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
I got a working launchpad like widget out of shortcutlistcore... Infact most of my widgets are based on that!
Checkout:
http://www.deviantart.com/deviation/408628707/

This was the one... I was asking help for:
http://www.deviantart.com/deviation/408186941/

A dock like species!
http://www.deviantart.com/deviation/349505646/

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


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

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 59 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:  
cron

Powered by phpBB® Forum Software © phpBB Group