ActiveX Gui - Why do I have a black boarder on the bottom and side? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
SirSocks
Posts: 360
Joined: 26 Oct 2018, 08:14

ActiveX Gui - Why do I have a black boarder on the bottom and side?

04 Jul 2019, 08:26

Hello -

Why do I have a black border on the bottom and right side? (See the image below)
How can I remove this border?

Here's the code I'm using....

Code: Select all

  
  var = C:\Users\Desktop\logo.gif ;location of gif you want to show
  Gui, 3:-border -Caption ; Boarderless
  Gui, 3: Add, ActiveX, x0 y0 w400 h400 vWB, shell explorer ; set this to image size
  wb.Navigate("about:blank")
  html := "<html><body style='background-color: transparent' style='overflow:hidden' leftmargin='0' topmargin='0' rightmargin='0' bottommargin='0'><img src='" var "' border=0 padding=0></body></html>"
  wb.document.write(html)
  Gui, 3: Color, 000111
  Gui, 3: show, AutoSize Center
  WinSet, Transcolor, 000111, transparent
  return

This is what it looks like.....

Image
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: ActiveX Gui - Why do I have a black boarder on the bottom and side?  Topic is solved

04 Jul 2019, 08:33

the border takes on the color of GUI background.

Change to Gui, 3: Color, white for white border
Add Gui, 3: Margin, 0, 0 to remove border

HTH
User avatar
SirSocks
Posts: 360
Joined: 26 Oct 2018, 08:14

Re: ActiveX Gui - Why do I have a black boarder on the bottom and side?

04 Jul 2019, 08:44

wolf_II wrote:
04 Jul 2019, 08:33
the border takes on the color of GUI background.

Change to Gui, 3: Color, white for white border
Add Gui, 3: Margin, 0, 0 to remove border

HTH
Perfect! Thank you very much Wolf_II :bravo:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], LAPIII, peter_ahk and 334 guests