supersonic Posted December 3, 2008 Share Posted December 3, 2008 Hello everybody... I'm trying to create an object without borders: GUICtrlCreateObj($object1, 0, 0, 20, 20) ... But I found no way to remove the borders by using: GUICtrlSetStyle() ... Any ideas? Greets, -supersonic. Link to comment Share on other sites More sharing options...
Zedna Posted December 3, 2008 Share Posted December 3, 2008 What object? Post script reproducing problem. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
supersonic Posted December 3, 2008 Author Share Posted December 3, 2008 Here's a code sample: #include <GuiConstants.au3> #include <WindowsConstants.au3> Global $objIE = ObjCreate("Shell.Explorer.2") FileOpen(@TempDir & "\loading.html", 2) FileWrite(@TempDir & "\loading.html", '<body bgcolor="FFFFFF" marginheight="0" topmargin="0" vspace="0" marginwidth="0" leftmargin="0" hspace="0" style="margin:0; padding:0; overflow:hidden;"><img src=".\loading.gif" /></body>') FileClose(@TempDir & "\loading.html") GUICreate("", 36, 36, 25, 25, $WS_POPUP, $WS_EX_DLGMODALFRAME) GUICtrlCreateObj($objIE, 8, 8, 20, 20) GUISetState() $objIE.navigate(@TempDir & "\loading.html") Sleep(3000) You need an animated gif (see attachment). The animated gif requires 16 x 16 pixel = should be max. size of control. But with borders the control requires 20 x 20 pixel. Any ideas to remove the borders? What object? Post script reproducing problem. Link to comment Share on other sites More sharing options...
Zedna Posted December 3, 2008 Share Posted December 3, 2008 KIf you just want to show animated GIF on your GUI then look at my Resources UDF.http://www.autoitscript.com/forum/index.php?showtopic=51103There is example and also links to other examples for animated GIFs. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
DaleHohm Posted December 3, 2008 Share Posted December 3, 2008 Just add this to your body style: border:0 Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
supersonic Posted December 3, 2008 Author Share Posted December 3, 2008 YES! That's it what I was looking for. Tank you!Just add this to your body style:border:0Dale Link to comment Share on other sites More sharing options...
supersonic Posted December 3, 2008 Author Share Posted December 3, 2008 Thanks for the advice! I'm already using your UDF. I will optimize my code...KIf you just want to show animated GIF on your GUI then look at my Resources UDF.http://www.autoitscript.com/forum/index.php?showtopic=51103There is example and also links to other examples for animated GIFs. Link to comment Share on other sites More sharing options...
supersonic Posted December 3, 2008 Author Share Posted December 3, 2008 Is there a way to embed a animated gif into a ListView with the help of your UDF?KIf you just want to show animated GIF on your GUI then look at my Resources UDF.http://www.autoitscript.com/forum/index.php?showtopic=51103There is example and also links to other examples for animated GIFs. Link to comment Share on other sites More sharing options...
Zedna Posted December 3, 2008 Share Posted December 3, 2008 Is there a way to embed a animated gif into a ListView with the help of your UDF?I doubt it's not possible/simple.This has nothing to do with resources. If you can do it with image from disk you should be able to do it also from resources. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
torels Posted December 3, 2008 Share Posted December 3, 2008 Is there a way to embed a animated gif into a ListView with the help of your UDF?Go and take a look at rasim's listview progressbar (I think it's in his signature)... you could create something similar... but with a different control. The problem is which one Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org 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