繁體 简体

Q&A: Adding a dialog to a custom CCL program

Question
I’m trying to add dialog boxes to my CCL program. How do I do this?

Synopsis
Adding a dialog to a custom CCL program

Solution
Note that you can add a dialog box to any CCL command just by typing

Arg_Entry = Dialog_Box; YourCCLcommand;

on the command line. Your command (here named YourCCLcommand) should already be defined with variable arguments. The underscore character in a command argument name will be interpreted as a space in the subsequent dialog box.

 

Note that if you write a new command:

Command1()
{
Arg_Entry = Dialog_Box;
Command2;
}

Command2 will be executed with a dialog box if you call Command1. (Make sure that Command2 has arguments)

30051 新竹市經國路二段160號9F-8
Tel : 03-5359299  Fax: 03-5358908
統編: 28521213

光學軟體設計領導者

© 2018 All rights reserved. Setup by Eidea