Home » Community » Newbie corner » GridCtrl + rich texts
Re: GridCtrl + rich texts [message #36992 is a reply to message #36990] |
Sun, 05 August 2012 15:51 |
Sender Ghost
Messages: 301 Registered: November 2008
|
Senior Member |
|
|
Hello, Luigi.
forlano wrote on Sun, 05 August 2012 12:32 | I guess it should work for ArrayCtrl too.
|
Yes, QTFDisplayCls, which inherited from Display, could be used inside many Ctrls, which supports SetDisplay function with Display argument, e.g. ArrayCtrl, ColumnList, DropList, TreeCtrl, etc.
Toggle Spoiler
#include <CtrlLib/CtrlLib.h>
#include <RichText/RichText.h>
using namespace Upp;
class App : public TopWindow {
public:
typedef App CLASSNAME;
App();
ArrayCtrl list;
};
App::App()
{
Title("ArrayCtrl with QTF Display");
Sizeable().Zoomable();
const Size sz(480, 340);
SetRect(sz); SetMinSize(sz);
list.AutoHideSb();
list.SetLineCy(Draw::GetStdFont().GetCy() + 8);
list.AddColumn("QTF");
list.AddColumn("QTF Display").SetDisplay(QTFDisplay());
const String qtf("[1 [* (]x + y[* )]][` %d]");
for (int i = 0; i <= 10; ++i) {
const String text(Format(qtf, i));
list.Add(text, text);
}
Add(list.VSizePosZ(4, 4).HSizePosZ(4, 4));
}
GUI_APP_MAIN
{
App app;
app.Run();
}
forlano wrote on Sun, 05 August 2012 12:32 | I vote to move this example in the reference or examples assembly.
|
I agree (with some variation of contents). But this is undocumented functionality and question to developer(s) of RichText U++ package.
Edit: Fixed QTF formatted text.
[Updated on: Thu, 09 August 2012 15:43] Report message to a moderator
|
|
|
|
|
GridCtrl + rich texts
By: idkfa46 on Thu, 02 August 2012 14:29
|
|
|
Re: GridCtrl + rich texts
By: Didier on Fri, 03 August 2012 18:19
|
|
|
Re: GridCtrl + rich texts
|
|
|
Re: GridCtrl + rich texts
By: koldo on Sat, 04 August 2012 15:38
|
|
|
Re: GridCtrl + rich texts
By: forlano on Sun, 05 August 2012 12:32
|
|
|
Re: GridCtrl + rich texts
|
|
|
Re: GridCtrl + rich texts -- Array Control
By: deep on Sun, 14 October 2018 10:19
|
|
|
Re: GridCtrl + rich texts
By: deep on Sun, 14 October 2018 13:34
|
|
|
Re: GridCtrl + rich texts
By: deep on Mon, 15 October 2018 11:43
|
|
|
Re: GridCtrl + rich texts
By: idkfa46 on Sun, 05 August 2012 00:38
|
|
|
Re: GridCtrl + rich texts
|
|
|
Re: GridCtrl + rich texts
By: idkfa46 on Sun, 05 August 2012 16:23
|
|
|
Re: GridCtrl + rich texts
By: Didier on Sun, 05 August 2012 20:49
|
|
|
Re: GridCtrl + rich texts
|
|
|
Re: GridCtrl + rich texts
By: forlano on Thu, 09 August 2012 13:48
|
|
|
Re: GridCtrl + rich texts
|
|
|
Re: GridCtrl + rich texts
By: forlano on Thu, 09 August 2012 19:17
|
|
|
Re: GridCtrl + rich texts
|
|
|
Re: GridCtrl + rich texts
By: forlano on Thu, 09 August 2012 22:09
|
Goto Forum:
Current Time: Thu Apr 25 13:36:11 CEST 2024
Total time taken to generate the page: 0.02571 seconds
|