Window-Framworks

General
Anonymous
2011-07-16
2013-05-14
  • Anonymous - 2011-07-16

    Hey,

    in the last Tutorial it says that I should setup my Display like so

    procedure TAdAppl.Run;
    var
      AdDLLExplorer: TAdDLLExplorer;
    begin
      AdDraw := TAdDraw.Create(nil);
    
      AdDraw.DllName := DefaultPlugin; //Function in the AdDLLExplorer unit
      AdDraw.Display.Width := 800;
      AdDraw.Display.Height := 600;
      AdDraw.Display.BitCount := 32;
      if AdDraw.Initialize then
      begin
        AdDraw.Window.Title := 'Andorra 2D';
        AdDraw.Run;
      end;
      AdDraw.Free;
    end;
    

    But AdDraw.Display is read-only property :/ So I can't modify the resolution. Any help?

     
  • Andreas Stöckel

    Hi, thats a problem with newer Delphi versions, I think there is a tutorial on the web how to fix this issue.

     
  • Anonymous - 2011-07-28

    Ill just replace the following line in AdDraws i guess

        {The display settings.}
        property Display: TAdDisplay read FDisplay;
    

    With

        {The display settings.}
        property Display: TAdDisplay read FDisplay write FDisplay;
    

    Should work…why isn't it like that by default?

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks