RichEditWithToolBar::Skin

This commit is contained in:
Mirek Fidler 2024-11-19 14:05:00 +01:00
parent 0f256ae38b
commit 55f52d26e4
5 changed files with 10 additions and 3 deletions

View file

@ -4,7 +4,6 @@ namespace Upp {
CH_STYLE(TabCtrl, Style, StyleDefault)
{
DLOG("TabCtrl style");
font = StdFont();
tabheight = font.Info().GetHeight() + 8;
margin = 2;

View file

@ -417,7 +417,6 @@ void ChReset()
void ChFinish()
{
DLOG("-- chFinish");
sChInvalid = false;
for(int i = 0; i < sChStyle().GetCount(); i++)
sChStyle()[i].init();

View file

@ -768,6 +768,11 @@ void RichEditWithToolBar::RefreshBar()
toolbar.Set(THISBACK(TheBar));
}
void RichEditWithToolBar::Skin()
{
RefreshBar();
}
void RichEdit::EvaluateFields()
{
WhenStartEvaluating();

View file

@ -855,6 +855,10 @@ public:
};
class RichEditWithToolBar : public RichEdit {
public:
virtual void Skin();
private:
ToolBar toolbar;
bool extended;
void RefreshBar();

View file

@ -15,5 +15,5 @@ GUI_APP_MAIN
win.Add(edit.SizePos());
win.Run();
DDUMP(AsCString(edit.GetQTF()));
RDUMP(AsCString(edit.GetQTF()));
}