Adobe 65007312 Programming Guide - Page 85

Controls, Container type, Description, Type-specific properties

Page 85 highlights

CHAPTER 5: Creating a User Interface for Your Plug-in Types of containers are: User interface elements 85 Container type view group_box tab_view tab_view_item column row spacer Description Type-specific properties A basic containment frame for a set of controls, with no visual representation. A visible containment frame for a set of controls. Can have a localizable title, which is displayed near the top left corner of the frame. title and font: See "Control node view properties" on page 92 show_title: True to display the title. Default is true. A container of tabbed pages. The containing tab_view draws the frames for its tab_view_item children, but has no title. The font is used for the tab text of the children. font and size: See "Control node view properties" on page 92 value: The identifier of the currentlly selected tab. A tabbed page in a tab_view. The localizable title text is displayed in the tab. title: The display text for the tab. identifier: A unique identifier of any type, used to select the current tab in the tab_view. These group controls for layout purposes, but do not otherwise affect the child nodes. These do not have any non-layout properties, such as visible. Otherwise, a column or row is the same as a view with place = vertical or horizontal. This is a row that contains no child nodes. width, height: The size in pixels. It is used only for spacing. Controls You can use the LrView factory to create visible controls of types common to Windows and Mac OS interface systems. If the creation function is called within the creation of a container, the control is a child of that container. For complete details of how to create the controls and specify their appearance and behavior, see the Lightroom SDK API Reference. The following table summarizes the available control types and lists their type-specific properties. X All controls have the shared view properties listed in "General view properties" on page 91 and "Control node view properties" on page 92. X All controls have the layout properties and functions described in "Determining layout" on page 107.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204

C
HAPTER
5: Creating a User Interface for Your Plug-in
User interface elements
85
Types of containers are:
Controls
You can use the
LrView
factory to create visible controls of types common to Windows and Mac OS
interface systems. If the creation function is called within the creation of a container, the control is a child
of that container.
For complete details of how to create the controls and specify their appearance and behavior, see the
Lightroom SDK API Reference
. The following table summarizes the available control types and lists their
type-specific properties.
X
All controls have the shared view properties listed in
“General view properties” on page 91
and
“Control node view properties” on page 92
.
X
All controls have the layout properties and functions described in
“Determining layout” on page 107
.
Container type
Description
Type-specific properties
view
A basic containment frame for a set of
controls, with no visual representation.
group_box
A visible containment frame for a set of
controls. Can have a localizable
title
,
which is displayed near the top left corner
of the frame.
title
and
font
: See
“Control node
view properties” on page 92
show_title
: True to display the title.
Default is true.
tab_view
A container of tabbed pages. The
containing
tab_view
draws the frames for
its
tab_view_item
children, but has no
title. The font is used for the tab text of the
children.
font
and
size
: See
“Control node
view properties” on page 92
value
: The identifier of the currentlly
selected tab.
tab_view_item
A tabbed page in a
tab_view
. The
localizable
title
text is displayed in the
tab.
title
: The display text for the tab.
identifier
: A unique identifier of any
type, used to select the current tab in
the
tab_view
.
column
row
These group controls for layout purposes,
but do not otherwise affect the child
nodes.
These do not have any non-layout
properties, such as
visible
.
Otherwise, a
column
or
row
is the same
as a
view
with
place = vertical
or
horizontal
.
spacer
This is a row that contains no child nodes.
It is used only for spacing.
width
,
height
: The size in pixels.