in short (since i have no time to code).. You need several vars. [code="vbscript"] Dim DrawerOpen(10) --- where 10 is the max number of drawers MaxDrawers = 10 For x =1 to MaxDrawers DrawerOpen(x) = False Next x [/code] '-- That sets all the drawers to "closed" in the vars 'now in the button that opens the 1st drawer : ' as i have pointed out in multiple other posts (see <a href="/340037/page/2/#20741
RomanDA
be warned.. a LOT of people hate sounds.. give them an on/off at least!
Look at the Easy Button
Im VERY glad! Congrats!
My suggestion it to only have a script in 1 place, a "master" object. You can handle all the button actions from inside that one script (like in the example above). All that would be in the "button" objects is an empty script.
this was the script in the "color picker" widget that comes with DX (or did) [code="vbscript"] x = System.CursorX y = System.CursorY color = System.PixelColor(x, y) hexcolor = Hex(color) red = Right(hexcolor, 2) green = Right(left(hexcolor, 4), 2) blue = Left(hexcolor, 2) Object.Text = CStr(CLng("&H" & red)) & ",
[quote](Does anyone say "dope" anymore?)[/quote] only "dopes" LOL Po.. ship it on over (email) ill play with it.
its all good.. im happy to work on it.
Po, Send me the dxpack, and what you want to fade. The trick with the scale is that EVERYTHING has to be a "child" object of the main MENU1 item. I can redo this to work for multiple menu items, etc. Just send it with what you are looking for.
UPDATED --- I ADDED A FADE in/out for the objects that are sliding, and a fade in on the slider that is the default I have redone the code here: [code="vbscript"] 'Assign a constant for each object 'Reason: It's easier to change Object Names in one spot than an entire script 'Eg. If you rename an object than just change the name in the quotes Dim ObjName(10),ObjLeft(10),ObjTop(10),ObjHeight(10),ObjWidth(10) Dim ObjMove(10) FadePercent = 0<br
[quote who="Zubaz" reply="14" id="2066160"]That's sweet[/quote] I try
Ok.. PO.. try this.. 1. change the name of MASX to Mask -- case is important here Replace the code with this: [code="vbscript"] 'Assign a constant for each object 'Reason: It's easier to change Object Names in one spot than an entire script 'Eg. If you rename an object than just change the name in the quotes ScaleFactor = 1.0 oCount = 3 EndPos = -410 StartPos = 0 oItem = 1 nItem = 2 Dim oTarget(3) oTarget(1) = "Ta
No problems bud.. it was close, i just made it easier to add more items to it. Now you can add as many sliding objects as you want, without any real code changes. All you would have to edit is: Const oCount = 3 ---- CHANGE THIS TO THE MAX NO OF ITEMS Dim oTarget(3) ----- CHANGE THE 3 to BE THE MAX NO LIKE ABOVE oTarget(1) = "Target01" oTarget(2) = "Target02" oTarget(3) = "Target03" oTarget(4) = "Target04" --- ADD MORE HERE
Its working now, check email!
Po... if you can send me this ill look at it
[quote]You planning one for adding the weather info??[/quote] Not at this time..
[quote]For a real enhancement you need to get Pro in my understanding, which is like $70.[/quote] The ONLY reason to get pro is if you have the desire to make EXE files that work without DX, so if you want to give them to friends that dont have (nor want to have) DX than this is your call. If you want to make DX widgets for yourself or for others with DX, than the MASSIVE $15 surely will not break you.
I know i started this mess and i want to comment on what i see here. I have been a member here for well over 5 years. If you want a laugh go back and look at what i started with, lets see.. CLOCKS.. lots of them, and i did the same things over and over. I took and put a graphic and used the plug-in and i thought i was rocking DX. I tried to make one that changed colors, and i started by making multiple png's and had them change states (like i have shown with a tutorial
[quote]David himself said he was making Gadget versions of all his Widgets, and a lot are clocks, very good clocks[/quote] i was not planning on doing those, more things like the drop info, and some of the older cpu/memory meters revise them to use new wmi calls and not the sometimes-working imbedded functions.
Thnaks Philly, I agree, it was the whole point of making a new gallery. A place where things that really stand out should go, not just a duplicate of things from the widgets gal.
its ok, its just one of my biggest problem with DX's galleries, they are full of the exact same clock/cal/weather widget just skinned different over and over and over, and the truly unique things get lost in all the rest. Its the MAIN reason i have been pushing SD to work on Skin Studio to have a way to skin a clock/cal/weather gadget that the skinner could include in their skin and it would automatically change the gadget when it loads, but skin studio would need a way to add this to the wb.
can we PLEASE keep this gallery with specific gadgets, and not a thousand clocks/weather gadgets.. it would be so nice to make this just things that are unique.. and not just another widget
I plan on going thru all my "older" widgets and remaking them into Gadgets. I also plan on making sure they all work in Vista (since thats what im using now). I want to re-do HC Pro to work in Vista and to see if i can clean up some of its 3000+ lines of code. (Dont wait on that one.. it will take some time) I love that we have this Gallery, thanks to all those who helped get it in place.
Martin, Nice to see you around again!