OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: Peter2 on December 29, 2013, 03:20:00 AM

Title: Basics: "Options Tab" versus "Dialogue"
Post by: Peter2 on December 29, 2013, 03:20:00 AM
In the last time I made two small routines
- with "Options Tab" and
- others with "modal Dialogues" which have options for the routines too.

Now I want to ask for your opinion - "What is the best place for a collection of controls which handles options and settings?"

No doubt - a routine which "talks with the user" (very often usage of input, output, selection, .. ) needs a dialogue which comes and goes quick and easy.
But for a routine which works in the background, based on some rarely changed settings ... - would you select an "Option Tab" or a "Modal Dialogue"?

Thanks, best regards and
A happy new year
Title: Re: Basics: "Options Tab" versus "Dialogue"
Post by: Fred Tomke on December 29, 2013, 04:57:44 AM
Hello, Peter2,

I never used option tabs for settings. I made many setting forms - each one for the special module. Of course, it's a nice idea to place general settings in the option tab. But over the years in my experiences AutoCAD needs more and more time to open the option dialog, so it's worth again to think about an own settings dialog, which can be called also very fast from your app within an own command.
Sure, not a clear anwser, but only some thoughts.

Regards, Fred
Title: Re: Basics: "Options Tab" versus "Dialogue"
Post by: Peter2 on December 29, 2013, 07:19:25 AM
Hi Fred
Quote from: Fred Tomke on December 29, 2013, 04:57:44 AM
... but only some thoughts....
This is exactly what I am looking for ...

Quote from: Fred Tomke on December 29, 2013, 04:57:44 AM
...AutoCAD needs more and more time to open the option dialog...
Yes, that is an important fact. And another fact is that the user has to search the right tab.
Title: Re: Basics: "Options Tab" versus "Dialogue"
Post by: owenwengerd on December 29, 2013, 07:54:32 AM
They are not OpenDCL based, but for QuikPik and Periscope I made both an options tab and a standalone modal dialog (called with a XXXSETTINGS command) with identical controls. I suspect that most people use the modal dialog version, but the Options tab can be useful for browsing all user settings when someone is not familiar with the specific system setup or is simply new to CAD.
Title: Re: Basics: "Options Tab" versus "Dialogue"
Post by: Fred Tomke on December 30, 2013, 12:49:14 AM
Owen, I know there was a similar question in the past but this matches here again: is it possible to design a container dialog which can be used as an instance in the option tab as well as in a modal form? A tab is nothing else as such an instance of a control container.
Regards, Fred
Title: Re: Basics: "Options Tab" versus "Dialogue"
Post by: Peter2 on December 30, 2013, 12:56:17 AM
Quote from: Fred Tomke on December 30, 2013, 12:49:14 AM
...A tab is nothing else as such an instance of a control container...
Do you mean something like "external references" (like DWG)? Defined once, used (referenced) often?
Title: Re: Basics: "Options Tab" versus "Dialogue"
Post by: Fred Tomke on December 30, 2013, 01:09:58 AM
Yes, Peter2, I mean it this way. It's a standard procedere in an object orientated development language (like C++, C#): you define an own custom control with a couple of controls and some custom events and properties. All the subcontrol's events are managed within the custom control.
Greetings, Fred
Title: Re: Basics: "Options Tab" versus "Dialogue"
Post by: owenwengerd on December 30, 2013, 06:47:05 AM
Fred, the problem is that the OpenDCL forms system currently does not follow a proper container architecture that allows such a multiple-instance system. It will be pretty disruptive to change the design, but maybe some day.