• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

ScriptUI - how to go to the first control from anywhere

Community Expert ,
Oct 18, 2022 Oct 18, 2022

Copy link to clipboard

Copied

There is a TAB order - by default the order of creation of controls. I run into some questions here:

  • I do not find a property to explicitly define the tab order. → How to?
  • When amidst an assembly of controls and i want to got to the first one (tab index = 0), it seems that I have the option to back-TAB as often as nescessary - HOME does not work at all. → Any other ideas?

Thank You for any insight.

TOPICS
Scripting

Views

72

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 26, 2022 Oct 26, 2022

Peter Kahrel from the InDesign forum gave this answer:

  • You can't change the tab order in ScriptUI. It is the order of the controls in the code.
  • Most controls have the property .active. You can use that as the window's entry point, so to speak.
  • The tab key is the only one available to navigate a window.

Likes

Translate

Translate
Community Expert ,
Oct 26, 2022 Oct 26, 2022

Copy link to clipboard

Copied

Peter Kahrel from the InDesign forum gave this answer:

  • You can't change the tab order in ScriptUI. It is the order of the controls in the code.
  • Most controls have the property .active. You can use that as the window's entry point, so to speak.
  • The tab key is the only one available to navigate a window.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 22, 2022 Nov 22, 2022

Copy link to clipboard

Copied

I've seen ScriptUI in some of the code examples on this forum, but am not very familiar with what it does and why someone writing a script would want to use it.  Is there a good tutorial on ScriptUI that I can use to get smarter, or a couple of simple examples of how they work. 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 23, 2022 Nov 23, 2022

Copy link to clipboard

Copied

This is the absolute, essential guide. I recommend printing it out and trying the examples.

https://creativepro.com/files/kahrel/indesign/scriptui.html

ScriptUI is for making nice interfaces for your scripts. Here is a dialog box from my TableCleaner script, written with ScriptUI code:

frameexpert_0-1669208572717.png

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 23, 2022 Nov 23, 2022

Copy link to clipboard

Copied

LATEST

Thanks Rick.  I'll check it out.  This would be the next logical step in my ExtendScript education.  I was doing some basic control panels in VBA, and can see where they would be useful in one of the scripts I'm working on now.  Have a Happy Thanksgiving.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines