Widgets versus Objects
Saturday, September 24, 2005 by JGSaxon | Discussion: DesktopX
Reply #2 Saturday, September 24, 2005 5:52 PM
Plus..it takes very little time to do this.

Reply #3 Saturday, September 24, 2005 6:20 PM
| They use no resources on hide mode |
Not true at all, unfortunately. There may be an initial drop in the RAM use when you hide them, but they still continue to use a few megs of RAM and the virtual memory use will be pretty much constant.
For me the biggest thing is that if I import numerous widgets as objects and run DesktopX there is the potential for significantly less RAM use. Say I have 5 widgets running, each averaging 2-5 megs of RAM. That is anywhere from 10-25 megs, but if I run DesktopX and import them all there will be one process that will be as low as 2-3, perhaps 6 megs of RAM (plus less virtual memory, less handles and fewer GDI objects). Some widgets work better as widgets, but most import very well, and this can be used to save system resources as well as saved as a desktop that can instantly load all my widgets in one click.
Reply #4 Saturday, September 24, 2005 6:51 PM
| objects need desktopx running widgets need desktopx installed gadgets need a pc |
Gadgets also need Windows.

Reply #5 Saturday, September 24, 2005 10:36 PM
| if I run DesktopX and import them all there will be one process that will be as low as 2-3, perhaps 6 megs of RAM (plus less virtual memory, less handles and fewer GDI objects). Some widgets work better as widgets, but most import very well, and this can be used to save system resources as well as saved as a desktop that can instantly load all my widgets in one click. |
So then what you are saying is that it is more resource efficient to run as many widgets that will run as an object and to leave objects, objects. If that is the case then would you need to check the checkbox in widget properties to startup automatically?
Reply #6 Sunday, September 25, 2005 8:01 PM
To be fair though, most widgets use a pretty trivial amount of RAM and such, so unless you are running lots it isn't that big of a deal. Oh, and if you are importing them and running them you don't need to have each one start up automatically. Just have DesktopX.exe run at start up and all those imported widgets will load on their own.
Reply #7 Monday, September 26, 2005 12:52 PM
Reply #8 Monday, September 26, 2005 4:35 PM
Reply #9 Monday, September 26, 2005 7:06 PM
If you are using a lot of widgets, importing them as objects may save resources, but if you only run a couple, go with running as a widget (I say) so you can access all their options.
Reply #10 Thursday, September 29, 2005 8:29 AM
The Object library should be more focussed at tutorials, samples and tools that others can use in the creation of widgets.
Hope this helps
Reply #11 Thursday, September 29, 2005 10:39 AM
| The Object library should be more focussed at tutorials, samples and tools that others can use in the creation of widgets. |
That makes sense Martin, except for the fact that some functionality can not be easily accessed when the object is turned into a widget. I've made several objects that have configurable shortcuts, with some scripting built in to add a shortcut, change the name, etc. But when it comes to setting the target, there's no convenient way to do it other than the built-in DX dialog, and that becomes unavailable with a widget.
This became evident the first time I released one of those kinds of objects as a widget, and I ended up having to tell people they had to import them as objects in order to set them up.
A simple addition to the properties and methods exposed to widgets could correct this.

Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #1 Saturday, September 24, 2005 5:50 PM
widgets need desktopx installed
gadgets need a pc