Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 02:20:51 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Calling a specific Wizard
Pages: 1   Go Down
Print
Author Topic: Calling a specific Wizard  (Read 1536 times)
0 Members and 1 Guest are viewing this topic.
kc5qoc
Active Member

Offline Offline

Posts: 13


View Profile
« on: June 28, 2006, 10:14:35 AM »

So I have this Wizard that I would like to call from a button on my new screen.

I can get to it by clicking the "Load Wizard" button and scrolling down the list, selecting it and then selecting "Run".
I am to lazy for that - I want to create a button that just calls my wizard.

What is the VB syntax for calling a specific wizard from a button ?
Logged
Brian Barker
Administrator
*
Offline Offline

Posts: 3,383



View Profile
« Reply #1 on: June 28, 2006, 01:34:29 PM »

call loadwizard("Cut Arc") would open the Cut Arc wizard Smiley
Logged

Fixing problems one post at a time Wink

www.newfangledsolutions.com
www.machsupport.com
kc5qoc
Active Member

Offline Offline

Posts: 13


View Profile
« Reply #2 on: June 28, 2006, 01:54:55 PM »

Thanks Brian - we are off and running now  Smiley
Logged
kc5qoc
Active Member

Offline Offline

Posts: 13


View Profile
« Reply #3 on: June 29, 2006, 10:07:07 AM »

I tried what you said - call LoadWizard("wizard")

I created a button called "Call Wizard" on my screen which I have added to 1024.set and saved as a new name.
The VB Script for the button is call LoadWizard("Wizard")

On initially starting up of Mach3 (1.90.x) I do the mandatory EStop reset and then select my screen and press the call wizard button - it does not work.

If I go back to the first screen and select the button "load wizard" - and load any wizard - and exit out of that wizard and then go to my screen and my button works fine. Seems like something gets initialized when the "Load Wizard" button is pressed. A call to loadwizard() without initializing that something does not work.  Sad

Any ideas ? or did I stumble upon an undocumented feature  Huh

Getting Closer -  Tongue
Logged
Brian Barker
Administrator
*
Offline Offline

Posts: 3,383



View Profile
« Reply #4 on: June 29, 2006, 12:06:04 PM »

Sounds like a feature... It is off to Art Smiley
Logged

Fixing problems one post at a time Wink

www.newfangledsolutions.com
www.machsupport.com
ART
Administrator
*
Offline Offline

Posts: 1,080


Tough as soggy paper.


View Profile
« Reply #5 on: June 29, 2006, 12:09:52 PM »

Hi:
 This has to do with the database internally is not loaded until the first load of any wizard. Ill list this for correction so the Wizards are databased on startup.
Probably take a few versions to appear though..

Thanks, sorry for the bug..

Art
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!