Sign in to follow this  
Followers 0
nullschritt

Creating a borderless input?

12 posts in this topic

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.

Share this post


Link to post
Share on other sites



, -1, $WS_EX_TRANSPARENT)

Share this post


Link to post
Share on other sites

, -1, $WS_EX_TRANSPARENT)

Sorry but I don't know what function you're using?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Okay, thanks a bunch.

Share this post


Link to post
Share on other sites

No go, still seeing a border.

5u3fewH.png

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

No, it's in a child window on top of a gif. The control doesnt appear to have a border over most normal controls, but it has a border when overlaid on an image.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

It must be the border of the child windows im seeing even though it to see set to transparent...

Share this post


Link to post
Share on other sites

Yep, when it was just the border of the child window, now that I'm not using child windows there is no border, cheers mate.

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
Sign in to follow this  
Followers 0