Jump to content

Softacom | Company

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

2 Neutral
  1. Softacom | Company

    Make Bold DBRrid Row Color

    Here procedure TForm3.DBGrid1DrawDataCell(Sender: TObject; const Rect: TRect; Field: TField; State: TGridDrawState); begin //detect last row of DataSet if DBGrid1.DataSource.DataSet.RecNo = DBGrid1.DataSource.DataSet.RecordCount then DBGrid1.Canvas.Font.Style := [fsBold]; //draw cell DBGrid1.DefaultDrawDataCell(Rect, Field, State); end; Don't forget to set property DefaultDrawing into False to prevent draw data few times
  2. Softacom | Company

    ShowModal on a form makes it maximized for some reason

    VCL Framework does not support work inside DLL. The problem is that DLL can’t share types, memory manager etc. So, you got uninited instance of Application inside your dll and many, many more problems. The easiest way to solve all these problems is to use BPL instead of DLL. It's can be loaded dynamicaly too, if you need it. Or you can try to write your form in pure WinApi.
  3. Softacom | Company

    Free wizard component?

    You can just create generic TForm, put TCardPanel on it, add panel with next/back buttons which will change active Card of TCardPanel and here is wizard template.
  4. Behavior of saving value of property in DFM is controlled by Storage Specifiers: 1. It's Storage Specifier "default" value. So, if your property defined like: property MyProperty: boolean read FMyProperty write FMyProperty default true; and on moment when you save form into DFM value of your property MyProperty is true, it's will be not written into DFM file. 2. It's Storage Specifier "stored". by default it's TRUE, but you can write constant FALSE or use Boolean function to change behavior for specified situations. More details here So, for your case, you can try to redeclare published properties in class TBaseForm with correct (for your opinion) Storage Specifiers. About changes in DoubleBuffering and RemoteDesktop in new versions of Delphi you can read here About StyleElements: it's used only on case when you use VCL styles, so if you don't plan to use it - you can just ignore this properties. P.S. If you want to know which parts of sources IDE use in debug mode, you can debug one Delphi instance from another. Just write some BPL, intall it into IDE, got o Run->Parameters->Debugger->Host Application and set it into "C:\Program Files (x86)\Embarcadero\Studio\23.0\bin\bds.exe", then you can run Delphi with debugging, put breakpoints and see which methods does it use and why save some params. I think you need to check some TWinControl.IsDoubleBufferedStored method, TWriter and TReader classes, etc.
×