input TextBox
-
i got an application that contains a text box, i want to draw lines depending on the TextBox input. I know how to draw, but how could I make the drawings dependent on TextBox input. thnx in advance
-
i got an application that contains a text box, i want to draw lines depending on the TextBox input. I know how to draw, but how could I make the drawings dependent on TextBox input. thnx in advance
You could elect to only draw the lines after there was input from the user, and you could use the user's input to determine where to draw the line? Why not provide text boxes for start and end coordinates, and a button to initiate the drawing of a line. By pressing the button, the user would be indicating that they are satisfied with their origin/termination coordinates. The logic to draw the line would simply convert the text input from the user to integer values, and use those values when rendering the line.
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’