Contents
6 FDK Programmer’s Guide
8 Creating and Deleting API Objects .........................................................................357
Creating objects .......................................................................................................... 357
Deleting objects .......................................................................................................... 377
Implicit property changes ........................................................................................... 379
9 Manipulating Commands and Menus with the API ..............................................381
How the API represents commands and menus .......................................................... 381
Getting the IDs of commands and menus ................................................................... 385
Determining a session’s menu configuration .............................................................. 387
Arranging menus and menu items .............................................................................. 388
Getting and setting menu item labels .......................................................................... 395
Manipulating expandomatic menu items .................................................................... 397
Using check marks ...................................................................................................... 398
Using context-sensitive commands and menu items .................................................. 398
10 Creating Custom Dialog Boxes for Your Client .....................................................403
Overview ..................................................................................................................... 403
How to create a dialog box ......................................................................................... 408
Creating a DRE file ..................................................................................................... 408
Designing the layout of the dialog box ....................................................................... 411
Setting the properties of the dialog box ...................................................................... 415
Setting the properties of a dialog item ........................................................................ 419
Saving a DRE file ....................................................................................................... 427
Modeless Dialog Boxes .............................................................................................. 428
Testing a dialog box .................................................................................................... 429
A simple example ....................................................................................................... 431
General tips for dialog editing .................................................................................... 435
Summary of keyboard shortcuts ................................................................................. 435
11 Handling Custom Dialog Box Events ......................................................................437
How the API represents dialog boxes ......................................................................... 437
Overview of using a custom dialog box in your client ............................................... 440
Opening dialog resources ............................................................................................ 444
Initializing items in a dialog box ................................................................................ 445
Displaying a dialog box .............................................................................................. 446
Updating items in a dialog box ................................................................................... 447
Handling user actions in dialog boxes ........................................................................ 448
Closing a dialog box ................................................................................................... 457
12 Using Imported Files and Insets ..............................................................................459
Types of imported files and insets .............................................................................. 459
Importing text and graphics ........................................................................................ 460
Updating text insets .................................................................................................... 467
Client text insets .......................................................................................................... 467
Writing filter clients .................................................................................................... 472
Specifying format IDs and filetype hint strings .......................................................... 476