Patch level : 10.0 gamma

Files correlati     : ba0.exe ba0100a.msk
Ricompilazione Demo : [ ]
Commento            :
Gestione terminalini


git-svn-id: svn://10.65.10.50/trunk@19689 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2009-12-01 10:19:26 +00:00
parent 3280d61832
commit c9bd17945a
2 changed files with 20 additions and 10 deletions

View File

@ -237,6 +237,16 @@ class TColor_mask : public TAutomask
protected: protected:
COLOR get_color_entry(const char* name) const; COLOR get_color_entry(const char* name) const;
virtual void update(); virtual void update();
virtual PNT log2dev(long x, long y) const { PNT p = { short(ROWY*y), short(CHARX*x) }; return p; }
virtual void log2dev(const TRectangle& rctl, RCT& r) const
{
r.left = short(rctl.x*CHARX);
r.top = short(rctl.y*ROWY);
r.right = short(r.left + rctl.width()*CHARX);
r.bottom = short(r.top + rctl.height()*ROWY);
if (rctl.height() > 0)
r.bottom -= ROWY-CHARY;
}
public: public:
TPreview_panel(short x, short y, short dx, short dy, TColor_mask* owner); TPreview_panel(short x, short y, short dx, short dy, TColor_mask* owner);
} *_preview; } *_preview;
@ -326,27 +336,27 @@ void TColor_mask::TPreview_panel::update()
set_pen(p = get_color_entry("Normal")); // Stesso inchiostro del normale set_pen(p = get_color_entry("Normal")); // Stesso inchiostro del normale
set_brush(b = get_color_entry("RequiredBack")); set_brush(b = get_color_entry("RequiredBack"));
frame(x+3, y+3, x+w-3, y+4, 0); frame(x+3, y+2, x+w-3, y+3, 0);
set_color(p, b); set_color(p, b);
stringat(x+4, y+3, "Campo obbligatorio"); stringat(x+4, y+2, "Campo obbligatorio");
set_pen(p = get_color_entry("Focus")); set_pen(p = get_color_entry("Focus"));
set_brush(b = get_color_entry("FocusBack")); set_brush(b = get_color_entry("FocusBack"));
frame(x+3, y+5, x+w-3, y+6, 0); frame(x+3, y+3, x+w-3, y+4, 0);
set_color(p, b); set_color(p, b);
stringat(x+4, y+5, "Campo attivo"); stringat(x+4, y+3, "Campo attivo");
set_pen(p = get_color_entry("Disabled")); set_pen(p = get_color_entry("Disabled"));
set_brush(b = get_color_entry("DisabledBack")); set_brush(b = get_color_entry("DisabledBack"));
frame(x+3, y+7, x+w-3, y+8, 0); frame(x+3, y+4, x+w-3, y+5, 0);
set_color(p, b); set_color(p, b);
stringat(x+4, y+7, "Campo disabilitato"); stringat(x+4, y+4, "Campo disabilitato");
set_pen(p = get_color_entry("ButtonLight")); set_pen(p = get_color_entry("ButtonLight"));
set_brush(b = get_color_entry("ButtonBack")); set_brush(b = get_color_entry("ButtonBack"));
frame(x+3, y+9, x+w-3, y+10, 0); frame(x+3, y+5, x+w-3, y+6, 0);
set_color(get_color_entry("Normal"), b); set_color(get_color_entry("Normal"), b);
stringat(x+4, y+9, "Bottone normale"); stringat(x+4, y+5, "Bottone normale");
} }
void TColor_mask::TPreview_icons::update() void TColor_mask::TPreview_icons::update()

View File

@ -16,7 +16,7 @@ END
STRING F_PASSWORD 64 16 STRING F_PASSWORD 64 16
BEGIN BEGIN
PROMPT 1 3 "Password " PROMPT 1 2 "Password "
FLAGS "*" FLAGS "*"
END END