Highlighted

heading text dialogbox -panel (via script)

Explorer ,
Jun 09, 2020

Copy link to clipboard

Copied

Hi,

Is it possible to add heading-text to panel in dialog box in one of following ways (via script):

red: in the -line- of the panelbox inself

green: free text above the panelbox

 

like screenshot below

z-dialog01.jpg

hi, it's possible :

var myWindow = new Window('dialog','test',undefined)

var RED = myWindow.add('panel',undefined,'group-01')
RED.size = [150,50]

var GREEN = myWindow.add('group')
GREEN.orientation = 'column'
GREEN.add('statictext',undefined,'group-02')
var GREENpanel = GREEN.add('panel')
GREENpanel.size = [150,50]
	
myWindow.show()

Topics

Scripting

Views

370

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

heading text dialogbox -panel (via script)

Explorer ,
Jun 09, 2020

Copy link to clipboard

Copied

Hi,

Is it possible to add heading-text to panel in dialog box in one of following ways (via script):

red: in the -line- of the panelbox inself

green: free text above the panelbox

 

like screenshot below

z-dialog01.jpg

hi, it's possible :

var myWindow = new Window('dialog','test',undefined)

var RED = myWindow.add('panel',undefined,'group-01')
RED.size = [150,50]

var GREEN = myWindow.add('group')
GREEN.orientation = 'column'
GREEN.add('statictext',undefined,'group-02')
var GREENpanel = GREEN.add('panel')
GREENpanel.size = [150,50]
	
myWindow.show()

Topics

Scripting

Views

371

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
Explorer ,
Jun 10, 2020

Copy link to clipboard

Copied

hi, it's possible :

var myWindow = new Window('dialog','test',undefined)

var RED = myWindow.add('panel',undefined,'group-01')
RED.size = [150,50]

var GREEN = myWindow.add('group')
GREEN.orientation = 'column'
GREEN.add('statictext',undefined,'group-02')
var GREENpanel = GREEN.add('panel')
GREENpanel.size = [150,50]
	
myWindow.show()

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
Reply
Loading...
Explorer ,
Jun 10, 2020

Copy link to clipboard

Copied

Hi SychevKA,

Thanks, it works.

After lot of srearch before I did not found an example, so I post this question.

 

Where I can find more (other) examples of this Indesign stuff?

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
Reply
Loading...
Most Valuable Participant ,
Jun 10, 2020

Copy link to clipboard

Copied

Just About Everything To Know About ScriptUI, by Peter Kahrel (courteously hosted by CreativePro): https://creativepro.com/files/kahrel/indesign/scriptui.html

 

The title states it's "for dummies", but it actually covers a lot of very advanced topics.

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
Reply
Loading...
Engaged ,
Jun 10, 2020

Copy link to clipboard

Copied

Hello janm5304503!

 

This a useful site where you can build and down load your Scripts UI and add in you code aferwards.

 

https://scriptui.joonas.me/

 

Regards

Mike

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
Reply
Loading...
Explorer ,
Jun 11, 2020

Copy link to clipboard

Copied

Hi mikeb41294032

 

Thanks for link, great stuff.... I will study this!

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
Reply
Loading...
Explorer ,
Jun 22, 2020

Copy link to clipboard

Copied

Hi mikeb41294032,

 

I made reveral dialog windows with https://scriptui.joonas.me/ ... that works fine!

Now I have a problem with Radiobuttons.

I want 2 (or more) lines with radio button + image on one line, so:

radio + image

radio + image

z-radio.jpg

I suppose to group each (radio + image) to get them on one line.... but than radio does not work.

How get radio + image on one line with woking radios.

Code:

Code for Import https://scriptui.joonas.me — (Triple click to select): 
{"activeId":0,"items":{"item-0":{"id":0,"type":"Dialog","parentId":false,"style":{"text":"Radio + image on -1- line doe not work","preferredSize":[0,0],"margins":16,"orientation":"row","spacing":10,"alignChildren":["left","top"],"varName":null,"windowType":"Dialog","creationProps":{"su1PanelCoordinates":false,"maximizeButton":false,"minimizeButton":false,"independent":false,"closeButton":true,"borderless":false,"resizeable":false},"enabled":true}},"item-40":{"id":40,"type":"RadioButton","parentId":46,"style":{"enabled":true,"varName":null,"text":"RadioButton","preferredSize":[0,0],"alignment":null,"helpTip":null,"checked":true}},"item-43":{"id":43,"type":"Image","parentId":46,"style":{"enabled":true,"varName":null,"image":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQdJREFUeNrslv0NgyAQxcV0AEZwBEdoN3AEu0E7iSN0hW6gG9gRuoFuQB8NtGg9QSL4R33JixcUf3zcEZiAkg2UJhvpYMRX+BGYl8PVOxJfHV164rsc5j5UydCwdEGnAu4QtnCH+OY7AOcZ410moeJXVegZFzAn2jfJah4afF/Yvg6YMfbE4wz3RnOjSjBcchnfcpUgWbRyUjPv4UatgDmYWtZ3tORSdVzDcrUWwVPLjyu4tEBzI8Pd4dQeq5NJq5zY61ZMq6Pg5h5PgkfQAdwCnYXPggmo1sUBSsJJsAXqowGcArcijD5wE8wiXX3kiXfSmR/z6jMuvYT93WVvB+/gHbyaXgIMAHWCmD3KjfSwAAAAAElFTkSuQmCC"],"alignment":null,"helpTip":null}},"item-45":{"id":45,"type":"Panel","parentId":0,"style":{"enabled":true,"varName":null,"creationProps":{"borderStyle":"etched","su1PanelCoordinates":false},"text":"radio does not work","preferredSize":[0,0],"margins":10,"orientation":"column","spacing":10,"alignChildren":["left","top"],"alignment":null}},"item-46":{"id":46,"type":"Group","parentId":45,"style":{"enabled":true,"varName":null,"preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-47":{"id":47,"type":"Group","parentId":45,"style":{"enabled":true,"varName":null,"preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-48":{"id":48,"type":"RadioButton","parentId":47,"style":{"enabled":true,"varName":null,"text":"RadioButton","preferredSize":[0,0],"alignment":null,"helpTip":null,"checked":true}},"item-49":{"id":49,"type":"Image","parentId":47,"style":{"enabled":true,"varName":null,"image":["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQdJREFUeNrslv0NgyAQxcV0AEZwBEdoN3AEu0E7iSN0hW6gG9gRuoFuQB8NtGg9QSL4R33JixcUf3zcEZiAkg2UJhvpYMRX+BGYl8PVOxJfHV164rsc5j5UydCwdEGnAu4QtnCH+OY7AOcZ410moeJXVegZFzAn2jfJah4afF/Yvg6YMfbE4wz3RnOjSjBcchnfcpUgWbRyUjPv4UatgDmYWtZ3tORSdVzDcrUWwVPLjyu4tEBzI8Pd4dQeq5NJq5zY61ZMq6Pg5h5PgkfQAdwCnYXPggmo1sUBSsJJsAXqowGcArcijD5wE8wiXX3kiXfSmR/z6jMuvYT93WVvB+/gHbyaXgIMAHWCmD3KjfSwAAAAAElFTkSuQmCC"],"alignment":null,"helpTip":null}},"item-50":{"id":50,"type":"Group","parentId":0,"style":{"enabled":true,"varName":null,"preferredSize":[0,0],"margins":0,"orientation":"row","spacing":10,"alignChildren":["left","center"],"alignment":null}},"item-51":{"id":51,"type":"Panel","parentId":50,"style":{"enabled":true,"varName":null,"creationProps":{"borderStyle":"etched","su1PanelCoordinates":false},"text":"radio works OK","preferredSize":[0,0],"margins":10,"orientation":"column","spacing":10,"alignChildren":["left","top"],"alignment":null}},"item-52":{"id":52,"type":"RadioButton","parentId":51,"style":{"enabled":true,"varName":null,"text":"RadioButton","preferredSize":[0,0],"alignment":null,"helpTip":null,"checked":false}},"item-54":{"id":54,"type":"RadioButton","parentId":51,"style":{"enabled":true,"varName":null,"text":"RadioButton","preferredSize":[0,0],"alignment":null,"helpTip":null,"checked":true}}},"order":[0,45,46,40,43,47,48,49,50,51,52,54],"settings":{"importJSON":true,"indentSize":false,"cepExport":false,"includeCSSJS":true,"functionWrapper":false,"compactCode":false,"showDialog":true,"afterEffectsDockable":false,"itemReferenceList":"None"}}
*/ 

 

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
Reply
Loading...