Hello AL,
If the behavior you are seeing is similar to what I am seeing, try the following procedure:
First get a handle to the Textbox control:
static CAObjHandle txtBox;
GetObjHandleFromActiveXCtrl (panel, PANEL_RTXBOX, &txtBox);
Then SET the rich text box to remember the highlighted state:
RichTextLib_IRichTextSetHideSelection (txtBox, NULL, VFALSE);
*** Notice that the call is to the Set function instead of the Get function. ***
Then load your easy tab, and any additional code:
EasyTab_ConvertFromCanvas(...);
EasyTab_LoadPanels(...);
When I do this, the highlighted text in the textbox keeps its state independent of whether or not I tab through different panels on the Easy Tab control.
Let me know how this works. Thanks.
Wendy L
LabWindows/CVI Developer Newsletter