Clearing Edit Text Field When Clicked On

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 01/12/2007 at 12:44, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   10.111 
Platform:      
Language(s) :     C++  ;

---------
I'm trying to clear an edit text field when the user clicks on it. BFM_ACTION_ID doesn't report any actions in the text field until the user has started typing.

I tried getting a combination of when the left mouse button was clicked + if the result cursor changed to an IBEAM, but that did not seem to work, either. Maybe I'm incorrectly detecting the change to IBEAM?

Here's the code I'm trying there:
BaseContainer state;
GetInputState(BFM_INPUT_MOUSE, BFM_INPUT_MOUSELEFT, state);
if(state.GetLong(BFM_INPUT_VALUE) == TRUE && state.GetLong(RESULT_CURSOR) == MOUSE_IBEAM)
{
//Clear the text field
}

I also tried continuously polling the mouse, but that did not work, either. I'm pretty sure I'm not detecting the mouse change correctly.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 01/12/2007 at 23:16, xxxxxxxx wrote:

Nevermind. I solved my problem another way.