Creating Graphical User Interfaces - The MathWorks - #201

/ 520


catalogue search
P. 201
P. 202
P. 203
P. 204
P. 205
P. 206
P. 207
P. 208
P. 209
P. 210
P. 211
P. 212
P. 213
P. 214
P. 215
P. 216
P. 217
P. 218
P. 219
P. 220
P. 221
P. 222
P. 223
P. 224
P. 225
P. 226
P. 227
P. 228
P. 229
P. 230
P. 231
P. 232
P. 233
P. 234
P. 235
P. 236
P. 237
P. 238
P. 239
P. 240
P. 241
P. 242
P. 243
P. 244
P. 245
P. 246
P. 247
P. 248
P. 249
P. 250


See other catalogues for The MathWorks

Text version of the page
Creating Toolbars
- Pencil tool — Color icon pixels by clicking or dragging
- Eraser tool — Erase pixels to be transparent by clicking or dragging
- Paint bucket tool — Flood regions of same-color pixels with the current color
- Pick color tool — Click a pixel or color palette swatch to define the current color
• Icon Edit pane — A n-by-m grid where you color an icon
• Preview pane — A button with a preview of current state of the icon
• Color Palette — Swatches of color that the pencil and paint tools can use
• More Colors button — Opens the Colors dialog box for choosing and defining colors
• OK button — Dismisses the GUI and returns the icon in its current state
• Cancel button — Closes the GUI without returning the icon
To work with the Icon Editor,
Open the Icon Editor for a selected tool's icon.
Using the Pencil tool, color the squares in the grid:
• Click a color cell in the palette.
• That color appears in the Color Palette preview swatch.
• Click in specific squares of the grid to transfer the selected color to those squares.
• Hold down the left mouse button and drag the mouse over the grid to transfer the selected color to the squares that you touch.
• Change a color by writing over it with another color.
Using the Eraser tool, erase the color in some squares
• Click the Eraser button on the palette.
• Click in specific squares to erase those squares.
6-105

pageCatalog pdf di En 2012-06-22-01