comcu Posted October 19, 2008 Share Posted October 19, 2008 Hi, i was hoping someone could pont me in the right direction. i i am currently building an drawing tool for curtain walling screens. it consists manily of 32 forms main input form, mullion creation form and transom creation form and it is coming along nicely. i am tryin to add a function that allows the user to step in to cad drawing and check they are happy with the particular step of the drawing. i have just added an undo function which is good, this comes in to use on the second form so the user can visually see if the have made a mistake as the drawing and the form are both visible on the screen, however the only way for the to check is check there calcs. i would like to add a button that allows the user to step into the drawing and measure and then return back to the form. i know i can use the form.hide but how do i alow the user to get back to the form? i would want the form to be shown not loaded as it would lose the info typed in the text boxes. thanks for any help or suggestions, cheers, col Quote Link to comment Share on other sites More sharing options...
borgunit Posted October 20, 2008 Share Posted October 20, 2008 I have called from the form... Me.hide "Do your measuring here" Me.Show Quote Link to comment Share on other sites More sharing options...
comcu Posted October 21, 2008 Author Share Posted October 21, 2008 Thank you for the response but i dont understand how to put it into practice. once the form is hidden how do you get it back, i mean at what point does the Me.show run and what actions it? Cheers, Col Quote Link to comment Share on other sites More sharing options...
SEANT Posted October 21, 2008 Share Posted October 21, 2008 One method would be to use ThisDrawing.Utility.GetKeyWord() method. This method could be preconfigured with ThisDrawing.Utility.InitializeUserInput 128. This way the returned string from the GetKeyword could initiate the Form.Show. It even works for ENTER – where the returned string would be “”. Quote Link to comment Share on other sites More sharing options...
comcu Posted October 21, 2008 Author Share Posted October 21, 2008 Seant, thank you very much. i will have a look at your suggestion thanks for the help, Col. Quote Link to comment Share on other sites More sharing options...
borgunit Posted October 21, 2008 Share Posted October 21, 2008 I place the me.hide within the form. When I perform some action with a button press, I start me.hide and then call the action (measuring, etc...) subroutine, when that sub has finished, it returns to the form button press sub and then call me.show Quote Link to comment Share on other sites More sharing options...
comcu Posted October 21, 2008 Author Share Posted October 21, 2008 I place the me.hide within the form. When I perform some action with a button press, I start me.hide and then call the action (measuring, etc...) subroutine, when that sub has finished, it returns to the form button press sub and then call me.show Borgunit, thats perfect for what i am trying to achieve, thank you very much Cheers, Col Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.