GuideView.pas 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. unit GuideView;
  2. interface
  3. uses
  4. Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  5. Dialogs, BaseChromeView, cefvcl, GIFImage, ExtCtrls, RealICQRoundBorderPanel,
  6. StdCtrls, Buttons, RealICQButton;
  7. type
  8. TGuideViewForm = class(TBaseChromeViewForm)
  9. rndContent: TRealICQRoundBorderPanel;
  10. pnlClient: TPanel;
  11. procedure FormCreate(Sender: TObject);
  12. procedure FormClose(Sender: TObject; var Action: TCloseAction);
  13. private
  14. { Private declarations }
  15. public
  16. procedure ChangeUIColor(AColor: TColor); override;
  17. end;
  18. var
  19. AGuideViewForm: TGuideViewForm;
  20. implementation
  21. uses
  22. ConditionConfig;
  23. {$R *.dfm}
  24. procedure TGuideViewForm.ChangeUIColor(AColor: TColor);
  25. begin
  26. inherited;
  27. rndContent.ChangeUIColor(AColor);
  28. pnlClient.Color := FormColor;
  29. end;
  30. procedure TGuideViewForm.FormClose(Sender: TObject; var Action: TCloseAction);
  31. begin
  32. inherited;
  33. if TCustomerConfig.GetConfig.ShowGuideView then
  34. TCustomerConfig.GetConfig.ShowGuideView := not MessageBox(Self.Handle, PChar('下次登录不再显示?'), PChar('引导页显示设置'), MB_YESNO or MB_ICONQUESTION or MB_SYSTEMMODAL) = IDYES;
  35. end;
  36. procedure TGuideViewForm.FormCreate(Sender: TObject);
  37. begin
  38. inherited;
  39. // Chrome.Parent := rndContent;
  40. Chrome.BringToFront;
  41. ChangeUIColor($EADEBA);
  42. rndContent.Left := 7;
  43. rndContent.Top := 7;
  44. rndContent.Width := ClientWidth - 14;
  45. rndContent.Height := ClientHeight - 14;
  46. AutoFree := True;
  47. end;
  48. end.