Jump to content

Create object without borders...


Recommended Posts

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.

post-34380-1228310038_thumb.gif

Link to comment
Share on other sites

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

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

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...