Jump to content

about edit dialog


tamir
 Share

Recommended Posts

in each edit dialog there is a small blinking line (somthing like this: | ) that specifies where the text will be added when u type something.

can i make it invisible? or if you know the name of this small line, it'll help alot.

Link to comment
Share on other sites

I think you're talking about the caret; Hold on i'll look for something on msdn

try:

DllCall ( "user32.dll", "int", "HideCaret", "hwnd", "windowHandle")

Also:

DllCall ( "user32.dll", "int", "DestroyCaret" )

EDIT: I just tried it, it works at first but it seems to rebuild itself.

HideCaret Function

--------------------------------------------------------------------------------

The HideCaret function removes the caret from the screen. Hiding a caret does not destroy its current shape or invalidate the insertion point. 

Syntax

BOOL HideCaret(          HWND hWnd
);
Parameters

hWnd
[in] Handle to the window that owns the caret. If this parameter is NULL, HideCaret searches the current task for the window that owns the caret. 
Return Value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError. 




Remarks

HideCaret hides the caret only if the specified window owns the caret. If the specified window does not own the caret, HideCaret does nothing and returns FALSE. 

Hiding is cumulative. If your application calls HideCaret five times in a row, it must also call ShowCaret five times before the caret is displayed. 

For an example, see Hiding a Caret.

Function Information

Minimum DLL Version user32.dll 
Header Declared in Winuser.h, include Windows.h 
Import library User32.lib 
Minimum operating systems Windows 95, Windows NT 3.1 

See Also

Carets
Edited by steveR
AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass.
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...