Greek Characters in a TGLabel

Hello,

Is is possible to insert greek characters into the text of a TGLabel object?

Thanks,
Shawn

Hi Shawn,

This issue was included in our GUI ToDo list some time ago, but it is still open because of lack of time.

Cheers, Ilka

Hi,

For the time being, you can try to use something like this:

{ TGMainFrame *frmMain = new TGMainFrame(gClient->GetRoot(), 200, 100); TGHorizontalFrame *hfrm = new TGHorizontalFrame(frmMain, 200, 100); TGLayoutHints *llh = new TGLayoutHints(kLHintsLeft | kLHintsBottom); TGLabel *label = new TGLabel(hfrm, "Greek characters ("); hfrm->AddFrame(label, llh); label = new TGLabel(hfrm, " abc "); label->SetTextFont("symbol", kFALSE); label->SetTextColor(0xff0000, kFALSE); hfrm->AddFrame(label, llh); label = new TGLabel(hfrm, ") inside..."); hfrm->AddFrame(label, llh); frmMain->AddFrame(hfrm, new TGLayoutHints(kLHintsCenterX | kLHintsCenterY, 15, 15, 15, 15)); frmMain->MapSubwindows(); frmMain->Resize(); frmMain->MapWindow(); }
Cheers,
Bertrand.