Jump to content

_DrawTransparent


Greek
 Share

Recommended Posts

Hi

Instructions

;===============================================================================
;
; Function Name:
;                  _DrawTransparentEllipse
; Description::    Let you draw a transparent Ellipse
; Parameter(s):
;                  $hwnd - Handle of GUI to work on
;                  $x - Postion x of the Ellipse
;                  $y - Postion y of the Ellipse
;                  $w - Width of the Ellipse 
;                  $h - Height of the Ellipse, If w=h it will be a circle.
;                  $Transparency - Set Transparancy of GUI ( optional )
; Requirement(s):  The Styles $WS_EX_COMPOSITED $WS_EX_LAYERED
; Return Value(s): Returns a windows handle.
; Author(s):       Greek, martin
; Example :        Yes
;===============================================================================

;===============================================================================
;
; Function Name:   
;                  _DrawTransparentRect
; Description::    Let you draw a transparent Rect
; Parameter(s):
;                  $hwnd - Handle of GUI to work on
;                  $x - Postion x of the Rect
;                  $y - Postion y of the Rect
;                  $w - Width of the Rect
;                  $h - Height of the Rect, If w=h it will be a square.
;                  $Transparency - Set Transparancy of GUI ( optional )
; Requirement(s):  The Styles $WS_EX_COMPOSITED $WS_EX_LAYERED
; Return Value(s): Returns a windows handle.
; Author(s):       Greek, martin
;===============================================================================

;===============================================================================
;
; Function Name:   
;                  _DrawTransparentLine
; Description::    Let you draw a transparent Line
;                  Lines must be drawed first and can't used dynamical!!.
; Parameter(s):
;                  $hwnd - Handle of GUI to work on
;                  $x - Postion x of the Line
;                  $y - Postion y of the Line
;                  $length - length of the Line
;                  $course - course of the Line
;                  $pensize - The pensize, default is 2 ( optional )
;                  $Transparency - Set Transparancy of GUI ( optional )
; Requirement(s):  Layered Windows ( $WS_EX_LAYERED )
; Return Value(s): ControlID of the Form
; Author(s):       Greek, martin
;===============================================================================

;===============================================================================
;
; Function Name:   
;                  _DeletTransparentForm
; Description::    Delet the Form
; Parameter(s):
;                  $Form - controlID/handle of the Form
; Return Value(s): Success: Returns 1. 
;                  Failure: Returns 0. 
; Author(s):       Greek, martin
;===============================================================================oÝ÷ Ù²'r[{öÚºÚ"µÍÚ[ÛYK[ÛÙBÚ[ÛYH ÕÚ[ÝÜÐÛÛÝ[Ë]LÉÝÂÚ[ÛYH ÑÕRPÛÛÝ[Ñ^]LÉÝÂÛØ[ÛÛÝ ÌÍÕÔ×ÑVÐÓÓTÔÒUQH[ÈÑ]Õ[Ü[[ÙJ ÌÍÚÛ    ÌÍÞ  ÌÍÞK ÌÍÝË    ÌÍÚ  ÌÍÕ[Ü[ÞOLMJBIÌÍÐÚ[QÕRPÜX]H
    ][ÝÉ][ÝË    ÌÍÝË    ÌÍÚ  ÌÍÞ  ÌÍÞK ÌÍÕÔ×ÐÒSLK   ÌÍÚÛ
BWÕÚ[TWÔÙ]^YYÚ[ÝÐ]X]Ê   ÌÍÚÛPÑQ    ÌÍÕ[Ü[ÞJBÕRTÙ]ÐÛÛÜ
PÑQ    ÌÍÐÚ[
BWÑÝZTÝ[ÛÜÈ
    ÌÍÐÚ[   ÌÍÝË    ÌÍÚ
BÕRTÙ]Ý]J
BT] ÌÍÐÚ[[[Â[ÈÑ[][Ü[ÜH
    ÌÍÑÜH
BRYÒÛ
    ÌÍÑÜJH[BIÌÍØOQÕRQ[]J    ÌÍÑÜJBBT]   ÌÍØBQ[ÙBBIÌÍØQÕRPÝ[]J  ÌÍÑÜJBBT]   ÌÍØQ[Y[[Â[ÈÑ]Õ[Ü[XÝ
    ÌÍÚÛ    ÌÍÞ  ÌÍÞK ÌÍÝË    ÌÍÚ  ÌÍÕ[Ü[ÞOLMJBIÌÍÐÚ[QÕRPÜX]H
    ][ÝÉ][ÝË    ÌÍÝË    ÌÍÚ  ÌÍÞ  ÌÍÞK ÌÍÕÔ×ÐÒSLK   ÌÍÚÛ
BWÕÚ[TWÔÙ]^YYÚ[ÝÐ]X]Ê   ÌÍÚÛPÑQ    ÌÍÕ[Ü[ÞJBÕRTÙ]ÐÛÛÜ
PÑQ    ÌÍÐÚ[
BÕRTÙ]Ý]J
BT] ÌÍÐÚ[[[Â[ÈÕÚ[TWÔÙ]^YYÚ[ÝÐ]X]Ê ÌÍÚÛ    ÌÍÚWÝ[ØÛÛÜ  ÌÍÕ[Ü[ÞHHMK    ÌÍÙÑYÙÈHË    ÌÍÚÐÛÛÜYH[ÙJBÈÙØ[BY  ÌÍÙÑYÙÈHY][Ü ÌÍÙÑYÙÈH  ][ÝÉ][ÝÈÜ  ÌÍÙÑYÙÈ   È[ ÌÍÙÑYÙÈHÂYÝ ÌÍÚÐÛÛÜY[    ÌÍÚWÝ[ØÛÛÜH^
Ý[Ê   ÌÍÚWÝ[ØÛÛÜK
B   ÌÍÚWÝ[ØÛÛÜH^]J   ÌÎNÌ ÌÎNÈ [ÈÝ[ÓZY
    ÌÍÚWÝ[ØÛÛÜ
KH  [ÈÝ[ÓZY
    ÌÍÚWÝ[ØÛÛÜËH   [ÈÝ[ÓZY
    ÌÍÚWÝ[ØÛÛÜKJB[YØØ[    ÌÍÔ][
    ][ÝÝÙÌ  ][ÝË  ][ÝÚ[ ][ÝË  ][ÝÔÙ]^YYÚ[ÝÐ]X]É][ÝË  ][ÝÚÛ    ][ÝË  ÌÍÚÛ    ][ÝÛÛÉ][ÝË    ÌÍÚWÝ[ØÛÛÜ  ][ÝØ]I][ÝË  ÌÍÕ[Ü[ÞK   ][ÝÛÛÉ][ÝË    ÌÍÙÑYÙÊBÙ[XÝØÙHÜ]Ù]ÜÜ
BØÙH  ÌÍÔ]ÌHH]Ù]Ü
ÕÚ[TWÑÙ]ÝÜ
K
BØÙH[ÙB]B[Ù[[[ÈÏOIÝ×ÕÚ[TWÔÙ]^YYÚ[ÝÐ]X]Â[ÈÕÚ[TWÑÙ]ÝÜ
BSØØ[ ÌÍØTÝ[IÌÍØTÝ[[
    ][ÝÒÙ[Ì ][ÝË  ][ÝÚ[ ][ÝË  ][ÝÑÙ]ÝÜ][ÝÊBRYÜ[]Ù]ÜÜ
BT] ÌÍØTÝ[ÌB[[ÈÏOIÝ×ÕÚ[TWÑÙ]ÝÜ[ÈÑÝZTÝ[ÛÜÊ ÌÍÚÛ    ÌÍÞK ÌÍÞLK    ÌÍÞË    ÌÍÞLÊBØØ[ ÌÍÜÜË  ÌÍÜ] ÌÍÜ] ÌÍÜÜÈHÚ[Ù]ÜÊ   ÌÍÚÛ
B   ÌÍÜ][
    ÌÎNÙÙLÌ    ÌÎNË ÌÎNÛÛÉÌÎNË  ÌÎNÐÜX][XÝÛÌÎNË ÌÎNÛÛÉÌÎNË  ÌÍÞK ÌÎNÛÛÉÌÎNË  ÌÍÞLK    ÌÎNÛÛÉÌÎNË  ÌÍÜÜÖÌK   ÌÎNÛÛÉÌÎNË  ÌÍÜÜÖÌ×K ÌÎNÛÛÉÌÎNË  ÌÍÞË    ÌÎNÛÛÉÌÎNË  ÌÍÞLÊBY ÌÍÜ]ÌH[ ÌÍÜ][
    ÌÎNÝÙÌ ÌÎNË ÌÎNÛÛÉÌÎNË  ÌÎNÔÙ]Ú[ÝÔÛÌÎNË  ÌÎNÚÛ   ÌÎNË ÌÍÚÛ    ÌÎNÛÛÉÌÎNË  ÌÍÜ]ÌK  ÌÎNÚ[    ÌÎNËJBY  ÌÍÜ]ÌH[]B[ÙB][Y[ÙB][Y[[Â[ÈÑ]Õ[Ü[[J   ÌÍÚÛ    ÌÍÖ  ÌÍÖK ÌÍÛ[Ý   ÌÍØÛÝÙK   ÌÍÜ[Ú^OL    ÌÍÕ[Ü[ÞOLMJBÕÚ[TWÔÙ]^YYÚ[ÝÐ]X]Ê    ÌÍÚÛPÑQ    ÌÍÕ[Ü[ÞJBIÌÍÙÌOQÕRPÝÜX]QÜXÊ   ÌÍÖ  ÌÍÖK
BQÕRPÝÙ]ÜXÊ    ÌÍÙÌK   ÌÍÑÕRWÑÔÔSÒVK   ÌÍÜ[Ú^H
BQÕRPÝÙ]ÜXÊ    ÌÍÙÌK   ÌÍÑÕRWÑÔÐÓÓÔPÑQPÑQBQÕRPÝÙ]ÜXÊ  ÌÍÙÌK   ÌÍÑÕRWÑÔÓSK  ÌÍÛ[Ý   ÌÍØÛÝÙJBQÕRPÝÙ]ÜXÊ   ÌÍÙÌK   ÌÍÑÕRWÑÔÔQTÒ
BQÕRPÝÙ]ÜXÊ    ÌÍÙÌK   ÌÍÑÕRWÑÔÓSKKJBT] ÌÍÙÌB[[oÝ÷ Ù±1jje{öÚºÚ"µÍÚ[ÛYH  Ñ]Õ[Ü[]LÉÝÂÛØ[  ÌÍÐÛÝ[LÌÛØ[ ÌÍÑ[ÙVÉÌÍÐÛÝ[K    ÌÍÚLBÌÍÛ^QÝZOQÕRPÜX]H
    ][ÝÙ[[ZXÈ[Ü[Ý  ][ÝËÚÝÜÚYÚÝÜZYÚ   ÌÍÕÔ×ÔÔT]Ô
    ÌÍÕÔ×ÑVÕÔSÔÕ  ÌÍÕÔ×ÑVÐÓÓTÔÒUQ  ÌÍÕÔ×ÑVÓVQTQ
H
BÕRTÙ]ÐÛÛÜ

BÕRTÙ]Ý]H

BÌÍÑ[ÙVÌOWÑ]Õ[Ü[[ÙJ    ÌÍÛ^QÝZKÚÝÜÚYÌLÚÝÜZYÚÌL
Ì
BÜ ÌÍÚOLHÈ ÌÍÐÛÝ[LHÝ
ÌBIÌÍÑ[ÙVÉÌÍÚWOWÑ]Õ[Ü[[ÙH
    ÌÍÛ^QÝZKÚÝÜÚYÌLIÌÍÚKÚÝÜZYÚÌL

ÉÌÍÚÌ
BQÕRQ[]H
    ÌÍÑ[ÙVÉÌÍÚKLWH
BIÌÍÚÏL^Ú[HBIÌÍÛÙÏQÕRQÙ]ÙÊ
BTÝÚ]Ú   ÌÍÛÙÂBPØÙH   ÌÍÑÕRWÑUSÐÓÔÑBBBQ^]Q[ÝÚ]ÚÑ[

Update 2, now you can use Rect and Ellipse dynamical, see example

Edited by Greek
Link to comment
Share on other sites

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

I think it doesnt works well on vista ,as i cannot see any transparency over the circle or rectangle , i can just see a blue screen filled rectangles and circles , what is the reason , can any body jot it out ?

vengat , cool of all

Link to comment
Share on other sites

I think it doesnt works well on vista ,as i cannot see any transparency over the circle or rectangle , i can just see a blue screen filled rectangles and circles , what is the reason , can any body jot it out ?

You tried out, exactly what i posted? I have no vista on any pc :/ can't try it out.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...