Jump to content

Arkaplanı Şeffaflaştırma


Tncte
 Share

Recommended Posts

 HalilYanar evet senin dediğin gibide var ancak senin yaptığım plugin ile!... pairs abi burada bir konuda kod vermişti onu kaybettim onda sadece kod ile saydamlık oluyordu ? :( 

 

EDIT: Her neyse senin dediğin gibi yaptım daha güzel oldu sadece arkaplan saydam oldu ancak pairs abinin dediği gibi yapsaydım buton olsa bile saydam oluyordu..! Teşekkürler...

Edited by Tncte
Link to comment
Share on other sites

  • Editor

Transparent Pluginini aktif et.

 

 

Transparent.SetOpacityWindow(Application.GetWndHandle(), 200, 16777215);

 

--16777215 burası renk kodu formun arkaplan rengine göre ayarlarsın.

--200 ise opecity değeri

Link to comment
Share on other sites

  • Editor
function ExtendFrameIntoClientArea(nLeft, nRight, nTop, nBottom)

    margins = Memory.CreateStructure("int,int,int,int");
    
    Memory.Allocate(1024)
    Memory.SetStructureData(margins, 1, 0, nLeft, "");
    Memory.SetStructureData(margins, 2, 0, nRight, "");
    Memory.SetStructureData(margins, 3, 0, nTop, "");
    Memory.SetStructureData(margins, 4, 0, nBottom, "");
    
    Memory.OpenLibrary(1, "AutoPlay\\Docs\\dwmapi.dll");
    MOpenFunction = Memory.OpenFunction(1, "DwmExtendFrameIntoClientArea", DLL_CALL_STDCALL, DLL_RETURN_VOID);
    Memory.CallFunction(MOpenFunction, Application.GetWndHandle(), margins);
    Memory.CloseLibrary(1)  
end

ExtendFrameIntoClientArea(0, 0, 0, -1);

 

Kodlar bunlar ama xp de çalışmadı dwmapi.dll sanırım windows 7 de ve 8 de çalışıyor bir test edip dönersen ona göre değiştirelim kodları.

Link to comment
Share on other sites

Dediğini benim verdiğim pluginle istediğin nesneyide şeffaflaştırabilirsin. Şimdi bak ;

 

 

 

Transparent.SetOpacityWindow(Application.GetWndHandle(), 200, 16711935);

 

Oradaki "Application.GetWndHandle()" Yerine örneğin "xButton1" gibi nesne isimleri kullanabilirsin bilgine...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...