Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8532

Command Bar doesn't clear when I get a string

$
0
0

@eebs99 wrote:

I call the GetString method, then when I successfully get a string I call a method I created. Here's a part of code:

            if (get_rc == Rhino.Input.GetResult.String)
            {
                intervals = CustomMethod();

                doc.Views.Redraw();
                RhinoApp.WriteLine("{0} added a line to the document.", EnglishName);
            }

My custom method involves several for loops and adding lines to the screen. I call:
"EscapeKeyEventHandler handler = new EscapeKeyEventHandler("Press to stop drawing.");"

but the command bar then replaces "Press to stop drawing" with the original GetString. How can I stop it from asking input?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 8532

Trending Articles