Jump to content

Recommended Posts

Posted

I've searched but I can't seem to find an answer to this question, is it possible to make a text input control with no border?

And if so, how?

Thanks in advance, sorry if this is a basic question, I really did search the help file and forums.

Posted

example:      $Input1 = GUICtrlCreateInput("Input1", 56, 64, 393, 21, -1, $WS_EX_TRANSPARENT)

The input has no border if you use "$WS_EX_TRANSPARENT" as extended property.

Posted

Quite welcome.

When the helpfile doesn't work (for me) I would, in this case, google "autoit input no border".

Nailed it on the first hit.

I have yet to master the search function on the forum.

Posted

That does not appear to be a simple input.

But we all know; no code, no can figure it out.

With a simple input, $WS_EX_TRANSPARENT gives you no border.

Your input appears to be placed in another control.

Yes-no?

Posted

Well, I tried, I failed.

Within 3.3.9.22:

#include <GUIConstantSex.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

$Form1 = GUICreate("Form1", 623, 442, 192, 124)
$Pic1 = GUICtrlCreatePic("C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Water lilies.jpg", 48, 56, 481, 217)
$Input1 = GUICtrlCreateInput("Input1", 96, 112, 209, 21, -1, $WS_EX_TRANSPARENT)
GUICtrlSetBkColor(-1, 0x000000)
GUISetState(@SW_SHOW)
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd

Gives me an Input with no border.

Sorry to be of so little help.

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