Click on banner to return to main menu.

View.h++ Code Example

Here is a very simple example of the natural and intuitive interface provided by View.h++

Using C with Motif

XmString delMsg, button1, filename;
delMsg = XmStringCreateSimple ("Delete");
filename = XmStringCreateSimple ("workfile");
button1 = XmStringConcat(delMsg, filename);

Using View.h++

RWXmString delMsg("Delete"), filename("workfile"), button1;
button1 = delMsg + filename;  // Using + to concatenate
Back

© Copyright 1995, Rogue Wave Software, Inc.