tslusny Posted September 21, 2012 Author Share Posted September 21, 2012 You can use this for many things. For example changing loading to for example League of Legends style ( i mean that loading when dx8 asn graphics and sounds are loading)Add this anywhere```Public Const GWL_EXSTYLE = (-20)Public Const WS_EX_TRANSPARENT = &H20&Public Const SWP_FRAMECHANGED = &H20Public Const SWP_NOMOVE = &H2Public Const SWP_NOSIZE = &H1Public Const SWP_SHOWME = SWP_FRAMECHANGED Or _SWP_NOMOVE Or SWP_NOSIZEPublic Const HWND_NOTOPMOST = -2Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As LongDeclare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long```And if you wanna make form transparent add this to that forms Form_Load```SetWindowLong Me.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENTSetWindowPos Me.hwnd, HWND_NOTOPMOST, 0&, 0&, 0&, 0&, SWP_SHOWME``` Link to comment Share on other sites More sharing options...
Vus Posted September 21, 2012 Share Posted September 21, 2012 Nice and useful pice of code. Nice work. ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
blkcrow Posted September 21, 2012 Share Posted September 21, 2012 Any impact to the speed of the program? Link to comment Share on other sites More sharing options...
TorenRenne Posted September 21, 2012 Share Posted September 21, 2012 Assuming this can be tweaked to provide transparent trees similar to EA? Link to comment Share on other sites More sharing options...
tslusny Posted September 21, 2012 Author Share Posted September 21, 2012 > Assuming this can be tweaked to provide transparent trees similar to EA?No ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png) Link to comment Share on other sites More sharing options...
Rob Janes Posted September 21, 2012 Share Posted September 21, 2012 This uses Win32 API to make an entire form semi transparent. It's also a copy/paste from PlanetSourceCode.com Link to comment Share on other sites More sharing options...
clark Posted September 22, 2012 Share Posted September 22, 2012 > Add this anywhere> > ```> Public Const GWL_EXSTYLE = (-20)> > Public Const WS_EX_TRANSPARENT = &H20&> > Public Const SWP_FRAMECHANGED = &H20> > Public Const SWP_NOMOVE = &H2> > Public Const SWP_NOSIZE = &H1> > Public Const SWP_SHOWME = SWP_FRAMECHANGED Or _> > SWP_NOMOVE Or SWP_NOSIZE> > Public Const HWND_NOTOPMOST = -2> > Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long> > Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long> ```Eclipse Advanced have this already? or for each forms we need to put it again inside Link to comment Share on other sites More sharing options...
Domino_ Posted September 22, 2012 Share Posted September 22, 2012 add that code in any module. . . Link to comment Share on other sites More sharing options...
tslusny Posted September 22, 2012 Author Share Posted September 22, 2012 > This uses Win32 API to make an entire form semi transparent. It's also a copy/paste from PlanetSourceCode.comYea, but i found it accidentaly and i decided it will be usefull for Eclipse Users so i posted it here Link to comment Share on other sites More sharing options...
blkcrow Posted September 22, 2012 Share Posted September 22, 2012 win32 APIs tend to be a bit slow so whats the case with this one? Link to comment Share on other sites More sharing options...
tslusny Posted September 22, 2012 Author Share Posted September 22, 2012 Maybe it is slower but it will be used only in loading screen, so it wont have any impacnt on your game performance Link to comment Share on other sites More sharing options...
Link Posted September 22, 2012 Share Posted September 22, 2012 Just make sure you give credit instead of making it seem like it's your own. Link to comment Share on other sites More sharing options...
tslusny Posted September 22, 2012 Author Share Posted September 22, 2012 > Just make sure you give credit instead of making it seem like it's your own.I said i found it accidentally so idk who created it and idk where i found it so i cant look who maked it ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
blkcrow Posted September 22, 2012 Share Posted September 22, 2012 give a link to the place you found it please Link to comment Share on other sites More sharing options...
tslusny Posted September 22, 2012 Author Share Posted September 22, 2012 > give a link to the place you found it please> I said i found it accidentally so idk who created it and idk where i found it so i cant look who maked it ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)Anything not understandable? xD Link to comment Share on other sites More sharing options...
blkcrow Posted September 22, 2012 Share Posted September 22, 2012 > Anything not understandable? xDnot really no Link to comment Share on other sites More sharing options...
Link Posted September 22, 2012 Share Posted September 22, 2012 Just forget it, at-least the tutorial is useful ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now