Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 15 of 15
  1. #1
    Join Date
    Apr 2006
    Posts
    181

    Huh? transparent window

    how can i use this slider for transparency of window ???

    http://www.indigorose.com/forums/sho...ider+framework

    i need an example please !!!!

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    http://www.indigorose.com/forums/sho...59&postcount=4

    This one uses the slider plugin, but all you need to do is used the code in the slider in the custom event of the slider framework.

  3. #3
    Join Date
    Apr 2006
    Posts
    181
    I Have That One But I Want To Use The Other One...
    I Tried But I Couldnt Manage It

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    here's a start
    Attached Files

  5. #5
    Join Date
    Apr 2006
    Posts
    181
    I Tried That But When I Touch The Slider It Disappears
    Attached Files

  6. #6
    Join Date
    Oct 2006
    Location
    Somewere over the rainbow
    Posts
    314
    HINT: try not to make the window fully transparent as you will not be able to open see it anymore (so you cant close it)

  7. #7
    Join Date
    Apr 2006
    Posts
    181
    Quote Originally Posted by TristanD View Post
    HINT: try not to make the window fully transparent as you will not be able to open see it anymore (so you cant close it)
    can i find a way to make people not to make fully transparent ???

  8. #8
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    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

  9. #9
    Join Date
    Apr 2006
    Posts
    181
    i dont want users make fully transparent so is there anyway to do it ???

  10. #10
    Join Date
    Apr 2006
    Posts
    181
    i found it WORM
    thanks alot

  11. #11
    Join Date
    Apr 2006
    Posts
    181
    an other error is;

    WHEN I TOUCH THE SLIDER WINDOW GOES BLACK AND THEN TURNS THE NORMAL...

    HOW CAN I FIX IT ???

  12. #12
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    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
    As for the brief window glitch. I don't know...

  13. #13
    Join Date
    Apr 2006
    Posts
    181

    Talking

    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
    thats what i did and it worked perfect

  14. #14
    Join Date
    Apr 2006
    Posts
    181
    but when i transparent the window and maximize the window the slider goes to the begining but it is still transparent

  15. #15
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    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.

Similar Threads

  1. set Window transparency!
    By goldingname in forum AutoPlay Media Studio 6.0
    Replies: 3
    Last Post: 01-12-2007, 10:03 PM
  2. Creating a Non-Rectangular Window
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 12:40 PM
  3. PROBLEM: Transparent Images Have Pixels in Transparent Area
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-25-2002, 02:00 PM
  4. HOWTO: Use Transparent Windows
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-25-2002, 10:48 AM
  5. HOWTO: Get the Position and Size of a Window
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 09-27-2002, 09:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts