Objects the controll widgets?

I want to make a simple object that contols a widjet. I set the object to Widjet control? It says under it that I can have it controll stand alone widgets and minimize them via the object. I dont know how make it work? I just want to be able to click the object and minimize the widget or all widgets that I have open and then click it again and Amximaize them? Is this possible or am I misunderstanding it? Do I have to enter a script and if so can you post it for me? Thanks Much!

 

Robby

6,474 views 15 replies
Reply #1 Top
Hi Robby, You have to declare it a widget first. So, take your parent object for a calendar or weather widget this is usually the background frame. Sometimes given the object name of calendar_back or weather_back. Open the properties of this parent object and click on the reference tab and at the bottom you'll find the word widget now in addtion to its object name give it a widget name. Now when you make a controller object to minimize your widget (it has to have the same widget name) it will work but, only after you save it as a widget. I recommend you check out the Wiki for additional info. And, you should also import an existing widget that you've downloaded into DesktopX Builder and see how one is put together. Here's the link to the Wiki  :CONGRAT: 
Reply #2 Top
Thanks Bigdog but I dont understand what you mean? I want to make a object(button like object)that just sits on my desktop and when clicked it will minimize a certain widget that is part of the desktop. I dont have any experience with this so lamen would be nice? Well that is lamen but I need step by step? I have looked in the wiki and I cant find anything? If you point me out to a post that will help I will go there. Thanks.
Reply #3 Top
ok first start DX in builder mode, and import the widget you wish to control. now create a new object ,in its properties window change object type to object controller, make sure the Open/toggle popup object is selected (leave this configuration window open).


Now go over to the Widget you wish to control. Right click on the main image, typically the background and select properties. In the properties window select the "relation" tab, in "popup:" change the drop down menu to Toggle. Now select the summary tab. In "Object ID" at the very bottom it lists a name for the background this "name" needs to be selected in the controler Objects "target object name or group name" drop down menu.

Press ok in the object controllers sub window and apply in the main configuration window and close it.

Now go back to the widgets configuration window and press apply and close. Now the widget visibility will toggle with the controllers button. Remember to save the controller and the widget. The widget must be saved, as you have changed its configurations and it will not work on the actual widget without DX, untill you save it as that widget.

now your button will toggle the visibility of the widget ... :)

Hope this helps :)
Reply #4 Top
Do you want to toggle the widget visible/invisible or toggle minimize to tray or task bar/desktop?
Reply #5 Top
Do you want to toggle the widget visible/invisible or toggle minimize to tray or task bar/desktop?
End of quote



OOPs my bad. Read and posted at like 2:00am lol.  :LOL:  

Well If toggling visibility is not desired, I'll try to get the instructions to toggling the min\restore up later after i've gotten a bit more shut eye. ;)
Reply #6 Top
It says under it that I can have it controll stand alone widgets and minimize them via the object. I dont know how make it work?
End of quote


I've tried to address this question. Some important points. The best way to learn is by taking a working widget(note not a fully compiled gadget) that has a minimize button, importing it into DesktopX Builder and seeing how it works. Note once you import the widget into DesktopX Builder the actual widget minimize and close abilites no longer actually work. I know that may seem a bit confusing but, that's the way it is. This is because they have to be exported as widgets for those functions to work. I mentioned in my above posts giving your widget a name on the Properties summary tab because that's what links your widget minimize button to the widget. You will see this in all existing widgets that have a working widget minimize or close button.

Not to plug my own work but, I do have a working widget with working widget close and minimize buttons that can be imported into Builder for your examination. That is my Azenis2 Player widget. There are many other fine examples widgets for you to choose from. That's how I learned about widgets.

To have one button that minimizes a group of widets requires scripting. The WIKI link I gave you above can take you to DesktopX and then Tutorials. You can give that a try as well there are many fine scripting tutorials for you to learn from. Finally I found by downloading jef's DesktopX themes and working with them, including the scripts, that I became better with DesktopX. So, I think this should help. :) 
Reply #7 Top
Hg Elementer. Thanks so much that description was great step by step. I am almost shure that I can do it now. I will give it a try. Oh and The max\min thing or toggle vis or unvis doesnt matter? I would rather have it toggle so your good! Thanks much and will go at it and post back with my results.
Reply #8 Top
Any time.. post back if you have any problems. I also can help with multiple gadgets on a single button, if you need :)
Reply #9 Top
It worked! I didnt know that widjets where number of objects that perform different commands put together in one. That is cool. I never knew howcome there wasnt an option in desktop x for creating a widjet. So what I just created was a new widget right? So the controller and widget are now one widget. I get it! I feel a little smarter! Thanks. The only thin that I dont understand Is when I save it I click on any part of either the controller or widget and exprot as a widget right? If I change the name It will be another widget? Right?
Reply #10 Top
If I change the name It will be another widget? Right?
End of quote
yes.

The only thin that I dont understand Is when I save it I click on any part of either the controller or widget and export as a widget right?
End of quote
   You will need both to have the same "Widget name" in the bottom of the Summary Tab, tis easyest to just change the buttons "widget name" in the summary tab  to match the one already listed in the widget you are trying to control. This will allow both items to be exported as one Widget, containing both the widget and the toggle button. Then right click on the button and export. name it what ever you want to call it and bam you have your toggle button and widget combo in one package.. :)
Reply #11 Top
Ok thanks for that as well! Thats awsome! couldnt imagine trying to make a full widget! If that was that hard for me to get. LOL
Reply #12 Top
Any time. Have fun :)
Reply #13 Top
One more thing? I made a set of desktop shelves(objects) Some people liked so I am going to make update it to look better and Add different colors. I want to make it so when you open the object all of the colors open and you can delete and or duplicate which colors you wish?
Reply #14 Top
Easy. create one then clone it then change the coloring on the freshly cloned item, then clone that one and change the coloring on the newest clone again, do this until you have one of each color you wish. Then click on the original and export to a DX pack. This will set all of them as Related and all of them should be packaged up together.

Remember in your Comments section to detail how to clone and remove them. This will allow new users to more easily to know how to use them easily.

hope this helps :)
Reply #15 Top
Thank you so much that was quick I didnt see that you where on. I didnt even expect that you would be becuase in my time zone it is 4 am LOL I should go to bed!