mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
RichEditWithToolBar::Skin
This commit is contained in:
parent
0f256ae38b
commit
55f52d26e4
5 changed files with 10 additions and 3 deletions
|
|
@ -4,7 +4,6 @@ namespace Upp {
|
|||
|
||||
CH_STYLE(TabCtrl, Style, StyleDefault)
|
||||
{
|
||||
DLOG("TabCtrl style");
|
||||
font = StdFont();
|
||||
tabheight = font.Info().GetHeight() + 8;
|
||||
margin = 2;
|
||||
|
|
|
|||
|
|
@ -417,7 +417,6 @@ void ChReset()
|
|||
|
||||
void ChFinish()
|
||||
{
|
||||
DLOG("-- chFinish");
|
||||
sChInvalid = false;
|
||||
for(int i = 0; i < sChStyle().GetCount(); i++)
|
||||
sChStyle()[i].init();
|
||||
|
|
|
|||
|
|
@ -768,6 +768,11 @@ void RichEditWithToolBar::RefreshBar()
|
|||
toolbar.Set(THISBACK(TheBar));
|
||||
}
|
||||
|
||||
void RichEditWithToolBar::Skin()
|
||||
{
|
||||
RefreshBar();
|
||||
}
|
||||
|
||||
void RichEdit::EvaluateFields()
|
||||
{
|
||||
WhenStartEvaluating();
|
||||
|
|
|
|||
|
|
@ -855,6 +855,10 @@ public:
|
|||
};
|
||||
|
||||
class RichEditWithToolBar : public RichEdit {
|
||||
public:
|
||||
virtual void Skin();
|
||||
|
||||
private:
|
||||
ToolBar toolbar;
|
||||
bool extended;
|
||||
void RefreshBar();
|
||||
|
|
|
|||
|
|
@ -15,5 +15,5 @@ GUI_APP_MAIN
|
|||
win.Add(edit.SizePos());
|
||||
win.Run();
|
||||
|
||||
DDUMP(AsCString(edit.GetQTF()));
|
||||
RDUMP(AsCString(edit.GetQTF()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue