Jump to content
Sign in to follow this  
rickd

Clearing edit box by clicking button?

Recommended Posts

rickd

Hi,

I'm new to the forum and want to say Hi first off, I've found heaps of really good info here so far that has helped a lot.

Just one quick question, how do I clear all the text in an edit box (TAEdit) by clicking a button that is also on the form?

Thanks

Share this post


Link to post
Share on other sites
rickd

Thanks, that did exactly what I wanted.

One other thing I haven't been able to find from the help, is it possible to give a window a status bar? And if so, how to write values to it (ie. status messages)?

Share this post


Link to post
Share on other sites
Lord Maim

Look at _GUICtrlStatusBarCreate in the "GuiStatusBar Management" section in the help file.

Share this post


Link to post
Share on other sites
rickd

Look at _GUICtrlStatusBarCreate in the "GuiStatusBar Management" section in the help file.

I have got the status bar on my window now, but no text appears in it.

$statusbar = _GUICtrlStatusBarCreate($Form1, 361, "test bar text")

Is that wrong?

Share this post


Link to post
Share on other sites
florisch

I do not know. I use a status bar which is empty on creation and then use

_GUICtrlStatusBarSetText($StatusBar, "Text")

to fill in text.

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  

×