Download 14 - Docu + Design Daube
Transcript
Creating Your Client’s User Interface
3
Example
Suppose you want to create a command palette with two arrows in it. When the user clicks an
arrow, it changes the fill pattern of a selected graphic object in the active document. To make
this command palette, create a document with the graphics shown in Figure 3.8.
FIGURE 3.8
Example hypertext markers
Assuming your client is registered with the FrameMaker product as myapi, insert the
following hypertext markers into the document:
●
In the text column around the up arrow: message myapi 1
●
In the text column around the down arrow: message myapi 2
Save the document in View Only format.
To respond to the user clicking one of the arrows, add the following code to your client:
. . .
#define UPARROW
1
#define DOWNARROW 2
VoidT F_ApiMessage(message, docId, objId)
StringT message;
F_ObjHandleT docId;
F_ObjHandleT objId;
{
F_ObjHandleT targetDocId, targetGraphicId;
IntT fillpatt;
/* Get ID of active document. Note that View Only documents
* are not considered active.
*/
targetDocId = F_ApiGetId(0, FV_SessionId, FP_ActiveDoc);
FDK Programmer’s Guide
33
Related documents
3 - Mekon
FDK Programmer`s Reference
FrameMaker MIF Reference Guide
Leica ASP300 User's Manual
EasyLabel Documentation
PVRScope User Manual - Imagination Technologies
Voicemail Pro Installation and Maintenance Guide
Überblick über VoiceMail Pro
Voicemail Pro - Avaya Support
VoiceMail Pro - Avaya Support
CURSA [1ex] Catalogue and Table Manipulation
OpenCms Documentation Version 5.0