I’m adding a TGLabel to a class GTMsgDlg : public TGTransientFrame derived class.
I am have difficulty displaying my TGLabel text without being cutoff. Here is a snippet of the code.
pfLabelFrame = new TGHorizontalFrame(this, GetWidth(), GetHeight());
// Layout hint for adding the pfLabel onto the TGVerticalFrame, pfLabelFrame
// Vertical Frame.
pfL4 = new TGLayoutHints(kLHintsCenterX | kLHintsLeft | kLHintsExpandX, 5, 5, 10, 0);
// Label to add to the the pfLabelFrame
pfLabel = new TGLabel(pfLabelFrame, msg);
pfLabel->SetWidth(200);
pfLabel->SetHeight(200);
pfLabelFrame->AddFrame(pfLabel, pfL4);
// Add the pfLabelFrame to the Dialog
AddFrame(pfLabelFrame);
When this section of the code is called, msg = #define ANIMALCODE_TEXT_LABEL “Bull Change cycle is now complete and machine is ready to be drop delayed.\nPlease enter Animal Code to continue.”
I have not found a easily documented way to make sure my text fits in my dialog. Right now, my text looks like this when printed:
Bull Change cycle is now complete and machine
Please enter Animal Code to continue."
Some missing text.
How can I solve my problem?
Thank you,
Angel