[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/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/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/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 - HELP: changing the dock icon dynamically - CLOSED

XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently April 16th, 2024, 12:37 am

All times are UTC - 8 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 15 posts ] 
Author Message
PostPosted: July 30th, 2013, 4:51 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
Is there a method of changing the dock icon dynamically?

widget.icon.src="volume-dock.png";

or

widget.setDockItem("volume-dock.png");

Anything similar to give some sort of vitality to the dock image?

Apologies for asking so many questions...


Last edited by yereverluvinuncleber on June 2nd, 2014, 9:46 am, edited 2 times in total.

Top
 Profile  
 
PostPosted: July 30th, 2013, 7:15 am 
Offline
User avatar

Joined: June 10th, 2012, 5:57 am
Posts: 313


Top
 Profile  
 
PostPosted: July 30th, 2013, 9:20 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
That's great. Do you have any in-built or compatible method of building an image dynamically so I can incorporate text?

For example a temperature widget might modify the icon in the dock so that the temperature can appear on the icon dynamically.

Learning a lot here.

I tried the shortcutcore1 code as suggested and it seems to function without error, path is good, image exists but the dock icon does not seem to change, am I missing something?


Top
 Profile  
 
PostPosted: July 31st, 2013, 10:33 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268


Top
 Profile  
 
PostPosted: August 1st, 2013, 6:22 pm 
Offline
User avatar

Joined: June 10th, 2012, 5:57 am
Posts: 313


Attachments:
binding core.png
binding core.png [ 4.99 KiB | Viewed 8164 times ]
Top
 Profile  
 
PostPosted: May 29th, 2014, 1:28 pm 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609


Top
 Profile  
 
PostPosted: May 29th, 2014, 3:35 pm 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
you just need to add a text object and use [%Volume] to show volume in text object

maybe you don't know how to bind an object to core tags
if so, then read this:
1. place a volumecore in your widget
2. place a text object in your widget
3. select the text object that you just created, and in the right sidebar (Inspector) in the [Attributes] tab, go to [Binding Core], there you should select your volumecore from dropdownlist, and then add %Volume to show you the current volume by update of the core, you can type more text to this box if you like more text to be added to it


Top
 Profile  
 
PostPosted: June 1st, 2014, 5:35 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
Hamid, will that show in the dock?


Top
 Profile  
 
PostPosted: June 1st, 2014, 8:51 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
i don't know what you mean by dock?
sorry about my english

============
if you want to see a text on something in your widget:
just you need to create a text object and place it wherever you want and bind it to the core you want,
the way as above i mentioned

========

and also anything in the widget tree (left Sidebar) being upper will be viewed in front of others and anything being downer will be back of others

if you want something to be front/back of others you have to change it's position in the widget tree,
to change the object position in widget tree:
1. select that object
2. and then rightclick on it in the widget tree
3. from the rightclick menu select [bring to front] to make it in front of all other Objects or [send to back] to make it back of all others

============
if you mean something else, better to add an example for it


Top
 Profile  
 
PostPosted: June 2nd, 2014, 2:14 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
When you double click onto the Xwidget icon in the sys tray up comes the Widget dock showing you all the widgets that you have installed, showing you which are running &c.

Each has an icon and that icon on many widget engines can be given vitality, meaning that a clock icon can have superimposed upon it, the current time.

In the widget itself time cores are used to display the time in the widget and could then be used to produce output on the dock icon.

Same with the volume widget, using the volume core, the current volume could be superimposed upon the dock image so that when you look at the dock the icon shows the current volume level.

That is what I am looking to do.


Top
 Profile  
 
PostPosted: June 2nd, 2014, 2:46 am 
Offline
User avatar

Joined: June 10th, 2012, 5:57 am
Posts: 313
we can do anything to the dock made by us.
but we can do nothing to the dock you want to change.
the dock just show you widget icons,not more information is supported.


Top
 Profile  
 
PostPosted: June 2nd, 2014, 9:45 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
OK, a limitation, understood. Thanks for that confirmation.

I am porting my widgets and attempting to retain all their functionality. This little bit of functionality will have to be lost.

This is the dock from the old Konfabulator engine that pops up when you "mouse over". Note the date, time and volume levels on the widget icons.



Top
 Profile  
 
PostPosted: June 2nd, 2014, 11:05 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
just to clarify a bit:
you can create dock icon for your widget in Designer,
so it will have all the functionality of your widget in its view

but it wouldn't updated when you open the dock (dashboard)
i mean it's just an static image that you created it before

===================

extra info about creating widget icon:

==========

if you want to have all the view of your widget in widget icon, do these:
1. open Designer
2. from the [left Sidebar], in the [widget tree], select [Widget Icon]
3. in this view click [Automatically generated] button to create a icon image from the state of the widget in Designer (note that script execution doesn't included)

=========

if you want to don't include some objects in Designer genereated icon image:
1. open the designer
2. select the object you don't want to be shown in icon
3. from the [right Sidebar], in Attributes tab, from general Section, uncheck [Show in Default Image]
4. you can use button next to this check box to show all/none the objects in default image
5. go to [left Sidebar] > in widget tree > Widget Icon
6. click on [Automatically generated] button

==========

if you want to include script execution in your icon image:
1. run the widget
2. right click on your widget
3. from rightclick menu, go to Window > Functions > ScreenShot...
4. save your png image as icon.png in your widget folder

=========

hope these would be helpful


Top
 Profile  
 
PostPosted: June 6th, 2014, 3:14 am 
Offline
User avatar

Joined: July 29th, 2013, 9:13 am
Posts: 609
All the above was helpful, doesn't do quite what I wanted as it doesn't update the icons automatically and dynamically - but that is a limitation of this widget engine, understood and accepted - so I won't try to duplicate the dock functionality from my Konfabulator widgets on my new Xwidgets.

HELP: changing the dock icon dynamically - CLOSED


Top
 Profile  
 
PostPosted: June 6th, 2014, 10:08 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Topic closed

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 15 posts ] 

All times are UTC - 8 hours


Who is online

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