SHDocVw_TLB
{$IFEND}
;
-
type
TPreviewBrowser = class(TWebBrowser)
private
const
//\83v\83\8c\83r\83\85\81[\83t\83@\83C\83\8b\96¼
HTML_FILE_NAME = 'temp_preview.html';
+ // \83}\83E\83X\83J\81[\83\\83\8b\82©\82ç\82Ì\82¸\82ç\82µ\88Ê\92u
+ DIV_X = 15;
+ DIV_Y = 15;
constructor TPreviewBrowser.Create(AOwner: TComponent);
begin
end;
Result := Rect(0, 0, WindowWidth, WindowHeight);
-
+ // bata55\88È\91O\82Í\8d¶\89E\82ª\8aÔ\88á\82Á\82Ä\82½
// \8fo\82µ\88Ê\92u\82É\82æ\82é\95â\90³
case GikoSys.Setting.PopupPosition of
- gppRightTop: OffsetRect(Result,
- Point.x - WindowWidth - 15, Point.y - WindowHeight - 15);
- gppRight: OffsetRect(Result,
- Point.x - WindowWidth - 15, Point.y - (WindowHeight div 2));
- gppRightBottom: OffsetRect(Result,
- Point.x - WindowWidth - 15, Point.y + 15);
+ gppLeftTop: OffsetRect(Result,
+ Point.x - WindowWidth - DIV_X, Point.y - WindowHeight - DIV_Y);
+ gppLeft: OffsetRect(Result,
+ Point.x - WindowWidth - DIV_X, Point.y - (WindowHeight div 2));
+ gppLeftBottom: OffsetRect(Result,
+ Point.x - WindowWidth - DIV_X, Point.y + DIV_Y);
gppTop: OffsetRect(Result,
- Point.x - (WindowWidth div 2), Point.y - WindowHeight - 15);
+ Point.x - (WindowWidth div 2), Point.y - WindowHeight - DIV_Y);
gppCenter: OffsetRect(Result,
Point.x - (WindowWidth div 2), Point.y - (WindowHeight div 2));
gppBottom: OffsetRect(Result,
- Point.x - (WindowWidth div 2), Point.y + 15);
- gppLeftTop: OffsetRect(Result,
- Point.x + 15, Point.y - WindowHeight - 15);
- gppLeft: OffsetRect(Result,
- Point.x + 15, Point.y - (WindowHeight div 2));
- gppLeftBottom: OffsetRect(Result, Point.x + 15, Point.y + 15); //\83M\83R\83i\83r\83X\83\8c \83p\81[\83g\82P\82Ì453\8e\81\82É\8a´\8eÓ
+ Point.x - (WindowWidth div 2), Point.y + DIV_Y);
+ gppRightTop: OffsetRect(Result,
+ Point.x + DIV_X, Point.y - WindowHeight - DIV_Y);
+ gppRight: OffsetRect(Result,
+ Point.x + DIV_X, Point.y - (WindowHeight div 2));
+ gppRightBottom: OffsetRect(Result, Point.x + DIV_X, Point.y + DIV_Y); //\83M\83R\83i\83r\83X\83\8c \83p\81[\83g\82P\82Ì453\8e\81\82É\8a´\8eÓ
end;
end;