mirror of
https://git.vladimir.cc/vladimir/ewsdr.git
synced 2026-08-25 20:37:33 +00:00
rx2 support work
This commit is contained in:
@@ -26,6 +26,7 @@ type
|
||||
FOnSpanSelect: TSpanSelectEvent;
|
||||
FOnHidePanel: THidePanelEvent;
|
||||
FOnInvalidate: TNotifyEvent;
|
||||
FFirstButtonCaption: string;
|
||||
FLeft: Integer;
|
||||
FTop: Integer;
|
||||
FWidth: Integer;
|
||||
@@ -54,6 +55,7 @@ type
|
||||
property Width: Integer read FWidth;
|
||||
property Height: Integer read FHeight;
|
||||
property HotIdx: Integer read FHotIdx;
|
||||
property FirstButtonCaption: string read FFirstButtonCaption write FFirstButtonCaption;
|
||||
property OnSpanSelect: TSpanSelectEvent read FOnSpanSelect write FOnSpanSelect;
|
||||
property OnHidePanel: THidePanelEvent read FOnHidePanel write FOnHidePanel;
|
||||
property OnInvalidate: TNotifyEvent read FOnInvalidate write FOnInvalidate;
|
||||
@@ -200,7 +202,12 @@ begin
|
||||
C.Brush.Style := bsClear;
|
||||
C.Rectangle(HR);
|
||||
C.Font.Size := 8;
|
||||
if FPanelHidden then Cap := '>' else Cap := '<';
|
||||
if FFirstButtonCaption <> '' then
|
||||
Cap := FFirstButtonCaption
|
||||
else if FPanelHidden then
|
||||
Cap := '>'
|
||||
else
|
||||
Cap := '<';
|
||||
TW := C.TextWidth(Cap);
|
||||
C.Font.Color := CLR_TEXT;
|
||||
C.Brush.Style := bsClear;
|
||||
|
||||
Reference in New Issue
Block a user