Drawing
-
Hello I want to insert a picture flowing by other that at the end it have a meaning So the number of these picture depend on the user input throug a textbox Ex: if the user input is: a*b so the system will draw 3 circle the 1st one with an arrow that point to the 2nd the second with an arrow pointing to the 3rd notice that these figure exist any idea Thanks in advance
Assaf
-
Hello I want to insert a picture flowing by other that at the end it have a meaning So the number of these picture depend on the user input throug a textbox Ex: if the user input is: a*b so the system will draw 3 circle the 1st one with an arrow that point to the 2nd the second with an arrow pointing to the 3rd notice that these figure exist any idea Thanks in advance
Assaf
Any chance you can clear up your question a bit, I'm having a hard time deciphering exactly what it is you want. What have you tried so far? Any chance you can post some relevant code so I can try to see what you're doing?
Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]
-
Hello I want to insert a picture flowing by other that at the end it have a meaning So the number of these picture depend on the user input throug a textbox Ex: if the user input is: a*b so the system will draw 3 circle the 1st one with an arrow that point to the 2nd the second with an arrow pointing to the 3rd notice that these figure exist any idea Thanks in advance
Assaf
I too can't figure out what you're talking about. How does the input "a*b" relate to drawing circles??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
Hello I want to insert a picture flowing by other that at the end it have a meaning So the number of these picture depend on the user input throug a textbox Ex: if the user input is: a*b so the system will draw 3 circle the 1st one with an arrow that point to the 2nd the second with an arrow pointing to the 3rd notice that these figure exist any idea Thanks in advance
Assaf
Is it like first circle would have radius equal to "a", second with radius equal to "b" and third with radius equal to their product? You need only two things here then: 1. Some sort of parser that would compute result based on text you enter. You can use a switch statement if the mathematical operators you allow are few and basic. If you are allowing large and complex number of operators, get a third party parser. 2. You need to handle the Paint event of your form (if you are drawing circles directly on Form). There you can draw the circles using the Graphics object's DrawEllipse method. Make sure to redraw all the circles everytime or else they would vanish.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
-
Any chance you can clear up your question a bit, I'm having a hard time deciphering exactly what it is you want. What have you tried so far? Any chance you can post some relevant code so I can try to see what you're doing?
Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]
I sorry for my question ? I try to draw the machine depend on what the user give as input. Ex: if the user enter a*b the system must show a specific machine. so i try to figure all the image needed by the system to draw different kind of machine but my problem how to tell the system to insert this figure followed by that one regarding the user input, off course there is a rule to chose which is defined. "In other language I try to figure out the machine(DFA) that accept this kind of language that is represented by the user input" Thanks a lot
Assaf