Jump to content
Sign in to follow this  
Paulie

Round GUI's

Recommended Posts

Paulie

I am pretty sure theres a way to round the GUIs to be circular, but i can't find it, i've searched the forums for like 5 different keywords up to like page five and found nothing with the UDF

:">

Anyone have a link handy?

Share this post


Link to post
Share on other sites
Xenobiologist

HI,

I used the dll call in my Yahtzee script. Look at my sig.

There is also another nice DllCall in it.

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites
Paulie

ok, i found this one

Func RoundGUI($h_win, $i_x1, $i_y1, $i_x3, $i_y3)
    Dim $pos, $ret, $ret2
    $pos = WinGetPos($h_win)
    $ret = DllCall("gdi32.dll", "long", "CreateRoundRectRgn", "long", $i_x1, "long", $i_y1, "long", $pos[2], "long", $pos[3], "long", $i_x3, "long", $i_y3)
    If $ret[0] Then
        $ret2 = DllCall("user32.dll", "long", "SetWindowRgn", "hwnd", $h_win, "long", $ret[0], "int", 1)
        If $ret2[0] Then
            Return 1
        Else
            Return 0
        EndIf
    Else
        Return 0
    EndIf
EndFunc   ;==>RoundGUI

But i don't understand the syntax, anyone care to explain?

Edited by Paulie

Share this post


Link to post
Share on other sites
rush4hire

Maybe you can make it transparent and put an image there as a graphic.

$WS_EX_TRANSPARENT  0x00000020  The window appears transparent because the bits of underlying sibling windows have already been painted.

Found in Appendex/GUI Control Styles

Edited by rush4hire

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.