Questions on framing with controller

Comments

4 comments

  • Roy Woll

    1. I cannot reproduce your access violation problem.  Can you email us a simple project with the problem?

    2. The borders are drawn by windows.  In what way do you wish to change them?  They are drawn in styles, i.e. sunken, box, etc. so it is not just one color.

    0
    Comment actions Permalink
  • Steven Kant

    1. I will work on a simple project.

    2. I only want to change the color of the border line on a frame box. I realize that this is determined by the Windows theme. Is there any event that gives me access so I could change the color of the pen from the default?

    0
    Comment actions Permalink
  • Steven Kant

    I have emailed a sample project for XE10.2. To get an error, just choose a style, then ApplyFraming. Is there a way to attach the project here?

    0
    Comment actions Permalink
  • Roy Woll

    Thank you for the project. I do see a bug. I don't see a workaround, but you can modify our source in vcl.wwcommon.pas as follows. I will log this for future correction.

    function wwIsCustomStyle(Control: TControl): boolean;
    begin
     // 5/4/2020 - TwwController is not TControl so don't call wwUseThemes
      if (Control = nil) or wwIsClass(Control, 'TwwController') then
        wwIsCustomStyle := TStyleManager.IsCustomStyleActive
      else
        wwIsCustomStyle := TStyleManager.IsCustomStyleActive and
          wwUseThemes(Control);
    end;

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk