Copy link to clipboard
Copied
Hi all!
I have unburied a script from old days of Acrobat 8. It have a custom GUI, with elements that shows in rows forming groups, and all the groups in a column.
But now, in Acrobat XI, all of them are showed in a single row of 3 screens wide.
Here's the GUI's code (I have deleted a big portion, the elements are repetitive):
// descricion de los elementos del GUI
description: {
name: 'REPrinter',
//width: 180,
//height: 200,
type: 'cluster',
align_children: 'align_offscreen',
elements:
[{ type: 'view',
align_children: 'align_row',
elements: [
{ type: 'static_text',
name: 'Combinaciones:',
bold: true,
font: 'dialog' },
{ type: 'edit_text',
item_id: 'ncom',
SpinEdit: true,
font: 'dialog',
char_width: 3,
height: 20 },
{ type: 'static_text',
name: ' ' },
{ type: 'check_box',
item_id: 'tldr',
name: 'Taladrado' },
{ type: 'static_text',
name: ' Impresora',
bold: true,
font: 'dialog' },
{ type: 'radio',
item_id: 'prn1',
group_id: 'prnt',
name: '1' },
{ type: 'radio',
item_id: 'prn2',
group_id: 'prnt',
name: '2' },
] },
// espacio entre botones y ficheros
{ type: 'gap',
height: 15 },
// listado ficheros
{ type: 'view',
align_children: 'align_row',
elements: [
{ type: 'static_text',
name: ' 1.-',
bold: true,
font: 'dialog' },
{ type: 'edit_text',
item_id: 'nf01',
readonly: true,
font: 'dialog',
char_width: 30,
heigth: 20 },
{ type: 'check_box',
item_id: 'cf01',
name: 'C '},
{ type: 'check_box',
item_id: '2f01',
name: '2'},
] },
{ type: 'view',
align_children: 'align_row',
elements: [
{ type: 'static_text',
name: ' 2.-',
bold: true,
font: 'dialog' },
{ type: 'edit_text',
item_id: 'nf02',
readonly: true,
font: 'dialog',
char_width: 30,
heigth: 20 },
{ type: 'check_box',
item_id: 'cf02',
name: 'C '},
{ type: 'check_box',
item_id: '2f02',
name: '2'},
] },
// separacion entre ficheros y botones
{ type: 'gap',
height: 15 },
// botones OK y Cancel
{ type: 'ok_cancel',
ok_name: 'Empezar',
cancel_name: 'Cancelar' }
]} // fin description
The lines
//width: 180,
//height: 200,
type: 'cluster',
align_children: 'align_offscreen',
aren't in the original code, I have tried it with not result, like other types and align options.
Can somebody tell me what's wrong and how to fix it?
Thnaks in advance,
Jose
Have something to add?