[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
https://bbs.xwidget.com/

HELP: changing the dock icon dynamically - CLOSED
https://bbs.xwidget.com/viewtopic.php?f=8&t=3436
Page 1 of 1

Author:  yereverluvinuncleber [ July 30th, 2013, 4:51 am ]
Post subject:  HELP: changing the dock icon dynamically - CLOSED

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...

Author:  qiancang [ July 30th, 2013, 7:15 am ]
Post subject:  Re: changing the dock icon dynamically


Author:  yereverluvinuncleber [ July 30th, 2013, 9:20 am ]
Post subject:  Re: changing the dock icon dynamically

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?

Author:  meme [ July 31st, 2013, 10:33 pm ]
Post subject:  Re: changing the dock icon dynamically


Author:  qiancang [ August 1st, 2013, 6:22 pm ]
Post subject:  Re: changing the dock icon dynamically



Attachments:
binding core.png
binding core.png [ 4.99 KiB | Viewed 8236 times ]

Author:  yereverluvinuncleber [ May 29th, 2014, 1:28 pm ]
Post subject:  Re: changing the dock icon dynamically


Author:  hamid [ May 29th, 2014, 3:35 pm ]
Post subject:  Re: HELP: changing the dock icon dynamically

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

Author:  yereverluvinuncleber [ June 1st, 2014, 5:35 am ]
Post subject:  Re: HELP: changing the dock icon dynamically

Hamid, will that show in the dock?

Author:  hamid [ June 1st, 2014, 8:51 am ]
Post subject:  Re: HELP: changing the dock icon dynamically

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

Author:  yereverluvinuncleber [ June 2nd, 2014, 2:14 am ]
Post subject:  Re: HELP: changing the dock icon dynamically

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.

Author:  qiancang [ June 2nd, 2014, 2:46 am ]
Post subject:  Re: HELP: changing the dock icon dynamically

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.

Author:  yereverluvinuncleber [ June 2nd, 2014, 9:45 am ]
Post subject:  Re: HELP: changing the dock icon dynamically

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.


Author:  hamid [ June 2nd, 2014, 11:05 am ]
Post subject:  Re: HELP: changing the dock icon dynamically - CLOSED

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

Author:  yereverluvinuncleber [ June 6th, 2014, 3:14 am ]
Post subject:  Re: HELP: changing the dock icon dynamically - CLOSED

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

Author:  Jimking [ June 6th, 2014, 10:08 am ]
Post subject:  Re: HELP: changing the dock icon dynamically - CLOSED

Topic closed

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