Jump to content
edumanilha

Get Rid of blue frame on GUI when attach... MDI Child align. [SOLVED]

Recommended Posts

Posted (edited)

Hello,

I'm trying to attach a putty session on my gui. When I open putty he's basic, but when I "trap" him inside the GUI I have two problems...

The tick blue border that looks ugly, and the resize/move that can drag the putty terminal out of the GUi view area...

 

Normal - only a fin border on scrollbar and almost nothing at left...

image.png.dd8dd474c251372f733be9e9b0d8a5ee.png

 

Embedded - Tick blue border above and in the sides...

image.png.7df8b8927b670e67ef22ab582620a24b.png

So far I tried this:
 

Local $hWnd = WinGetHandle("[CLASS:PuTTY]")

$iStyles = _WinAPI_GetWindowLong($hWnd, $GWL_STYLE)
$iStyle = BitXOR($iStyle, $WS_MAXIMIZEBOX, $WS_MINIMIZEBOX, $WS_SIZEBOX)
_WinAPI_SetWindowLong($hWnd, $GWL_STYLE, $iStyle)
_WinAPI_SetWindowPos($hWnd, $GUI, 0, 0, 0, 0, BitOR($SWP_FRAMECHANGED, $SWP_NOMOVE, $SWP_NOSIZE))
_WinAPI_SetParent($hWnd,$GUI)

But the terminal disappear... In one of my last attempts, I managed to remove the minimize maximize buttons. Can someone give me a light about what I can be possibly doing wrong?...Thanks in advance!

 

EDIT: For now I did a ugly solution...Set the terminal bigger than GUI, so the borders stay out of sight... :(

 

I'm running into another problem...When I use MDI Child into the GUI's they don't align...I saw some topics but thay are necro...I'm still looking! Thanks!

Found this:
https://www.autoitscript.com/trac/autoit/ticket/2786

I'll work with hidden borders for now...If someone have a better solution I whould like to now ! Thanks ! :)

Edited by edumanilha
solved

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...