Mirage Source
http://www.miragesource.net/forums/

[Feature] Transparent Forms
http://www.miragesource.net/forums/viewtopic.php?f=183&t=5939
Page 1 of 47

Author:  ExoShox [ Thu Jul 09, 2009 10:32 pm ]
Post subject:  [Feature] Transparent Forms

Difficulty: 1/5
Sides: Client Only
Tested on: MS4
Works for: MS4
Credits: Me :D
Tutorial Type: Copy and Paste No Tweaks Needed
Note to User: If you use this and your form does NOT have a background image, my Moveable Forms feature, and ALL controls on the form will be unusable. (So remember in form load you need to load a picture to the forms .Picture property)

Put this code in Form_Load of the form at the top:
Code:
    Call FormTransparent(Me, vbWhite)


Put this in modDatabase under Option Explicit:
Code:
Public Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Public Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
Public Const GWL_STYLE = (-16)
Public Const GWL_EXSTYLE = (-20)
Public Const WS_EX_LAYERED = &H80000
Public Const LWA_COLORKEY = &H1
Public Const LWA_ALPHA = &H2


Put this at the bottom of modDatabase:
Code:
Public Sub FormTransparent(ByVal CFrm As Form, ByVal Color As ColorConstants)
   
    CFrm.BackColor = Color
    SetWindowLong CFrm.hwnd, GWL_EXSTYLE, GetWindowLong(CFrm.hwnd, GWL_EXSTYLE) Or WS_EX_LAYERED
    SetLayeredWindowAttributes CFrm.hwnd, Color, 0&, LWA_COLORKEY

End Sub

Author:  wanai [ Wed Dec 01, 2021 9:13 am ]
Post subject:  Re: [Feature] Transparent Forms

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffuserhttp://semiasphalticflux.rusemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchuckинфоtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimate.rutemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting

Author:  wanai [ Thu Jan 06, 2022 5:34 pm ]
Post subject:  Re: [Feature] Transparent Forms

Econ

Author:  wanai [ Thu Jan 06, 2022 5:35 pm ]
Post subject:  Re: [Feature] Transparent Forms

109.2

Author:  wanai [ Thu Jan 06, 2022 5:36 pm ]
Post subject:  Re: [Feature] Transparent Forms

Bett

Author:  wanai [ Thu Jan 06, 2022 5:37 pm ]
Post subject:  Re: [Feature] Transparent Forms

Bett

Author:  wanai [ Thu Jan 06, 2022 5:38 pm ]
Post subject:  Re: [Feature] Transparent Forms

musi

Author:  wanai [ Thu Jan 06, 2022 5:40 pm ]
Post subject:  Re: [Feature] Transparent Forms

Sama

Author:  wanai [ Thu Jan 06, 2022 5:41 pm ]
Post subject:  Re: [Feature] Transparent Forms

Nora

Author:  wanai [ Thu Jan 06, 2022 5:42 pm ]
Post subject:  Re: [Feature] Transparent Forms

Ross

Author:  wanai [ Thu Jan 06, 2022 5:43 pm ]
Post subject:  Re: [Feature] Transparent Forms

Gabr

Author:  wanai [ Thu Jan 06, 2022 5:44 pm ]
Post subject:  Re: [Feature] Transparent Forms

Fran

Author:  wanai [ Thu Jan 06, 2022 5:45 pm ]
Post subject:  Re: [Feature] Transparent Forms

Marv

Author:  wanai [ Thu Jan 06, 2022 5:46 pm ]
Post subject:  Re: [Feature] Transparent Forms

Fisk

Author:  wanai [ Thu Jan 06, 2022 5:48 pm ]
Post subject:  Re: [Feature] Transparent Forms

Snoo

Author:  wanai [ Thu Jan 06, 2022 5:49 pm ]
Post subject:  Re: [Feature] Transparent Forms

Rond

Author:  wanai [ Thu Jan 06, 2022 5:50 pm ]
Post subject:  Re: [Feature] Transparent Forms

hann

Author:  wanai [ Thu Jan 06, 2022 5:51 pm ]
Post subject:  Re: [Feature] Transparent Forms

Spee

Author:  wanai [ Thu Jan 06, 2022 5:52 pm ]
Post subject:  Re: [Feature] Transparent Forms

Chem

Author:  wanai [ Thu Jan 06, 2022 5:53 pm ]
Post subject:  Re: [Feature] Transparent Forms

Gran

Author:  wanai [ Thu Jan 06, 2022 5:54 pm ]
Post subject:  Re: [Feature] Transparent Forms

Plus

Author:  wanai [ Thu Jan 06, 2022 5:55 pm ]
Post subject:  Re: [Feature] Transparent Forms

Danz

Author:  wanai [ Thu Jan 06, 2022 5:56 pm ]
Post subject:  Re: [Feature] Transparent Forms

XVII

Author:  wanai [ Thu Jan 06, 2022 5:58 pm ]
Post subject:  Re: [Feature] Transparent Forms

MySQ

Author:  wanai [ Thu Jan 06, 2022 5:59 pm ]
Post subject:  Re: [Feature] Transparent Forms

Shef

Page 1 of 47 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/