transparent window
Collapse
X
-
-
I Tried That But When I Touch The Slider It DisappearsAttached Files
Comment
-
-
Couple things...
If you are using a horizontal slider with the SliderFrameWork, the image names need to start with hslider_ and hknob_. If the slider is vertical, then it needs to start with vslider_ and vknob_.
You were using a horizontal image set with the naming convention of a vertical slider, therefore the slider was moving up and down, not across, so it didn't take much to go from 0 to 100%. So change the image names to hknob_Opacity and hslider_Opacity.
Also, the way the SliderFrameWork works is that 0 is at the left for horizontal and top for vertical. To start the slider knob on the left in this case, the Custom Event needs to be like this instead
Code:-- Custom event function On_Slider_Move(sCurrentSlider, nPercent) -- use this event to make change the values the slider -- is related too if sCurrentSlider == "hknob_Opacity" then sOS=String.Right(System.GetOSName(),2); if (sOS == "XP" ) or (sOS == "00") or (sOS == "03") then handle = Application.GetWndHandle(); nOpacity = Math.Floor(255 * (nPercent/100)) --makes the slider work in reverse nOpacity = 255 - nOpacity result = DLL.CallFunction("AutoPlay\\Docs\\wTrans.dll", "SetWindowTransparency", handle..","..nOpacity, DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL) end end end
Comment
-
-
To make it so the window doesn't go completely transparent, I'd do this.
Code:-- Custom event function On_Slider_Move(sCurrentSlider, nPercent) -- use this event to make change the values the slider -- is related too if sCurrentSlider == "hknob_Opacity" then sOS=String.Right(System.GetOSName(),2); if (sOS == "XP" ) or (sOS == "00") or (sOS == "03") then handle = Application.GetWndHandle(); nOpacity = Math.Floor(220 * (nPercent/100)) --makes the slider work in reverse nOpacity = 220 - nOpacity result = DLL.CallFunction("AutoPlay\\Docs\\wTrans.dll", "SetWindowTransparency", handle..","..nOpacity, DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL) end end end
Comment
-
-
Code:-- Custom event function On_Slider_Move(sCurrentSlider, nPercent) -- use this event to make change the values the slider -- is related too if sCurrentSlider == "hknob_Opacity" then sOS=String.Right(System.GetOSName(),2); if (sOS == "XP" ) or (sOS == "00") or (sOS == "03") then handle = Application.GetWndHandle(); nOpacity = Math.Floor(255 * (nPercent/180)) --makes the slider work in reverse nOpacity = 255 - nOpacity result = DLL.CallFunction("AutoPlay\\Docs\\wTrans.dll", "SetWindowTransparency", handle..","..nOpacity, DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL) end end end
Comment
-
-
The code posted for resizing doesn't take into account that an object may move. The knob is moved back to the original position, because that where the resize code initially saw it. You either need to reset the tblOriginalPositions info for the slide, or handle it manually. The custom event is only fired if you manually move the slide. The on resize code moves it via code, so you too will have to fire that event via code.
Comment
-
Comment