I like to discuss here about new GridStyles handling in NextGrid v5.
In version 5 of NextGrid, there will be no GridStyle property in classic way.
Every Style will be separated object, and user will be able to chose one or more styles per Grid. Example:
NextGrid1:
- ReportStyle1
- ReportStyle2
- SlideStyle1
- SlideStyle2
- IconStyle1
Code:
CODE
TNxGridStyle = class
end;
TNxReportStyle = class(TNxGridStyle)
...
property FixedCols;
property RowHeight;
...
end;
TNxSlidesStyle = class(TNxGridStyle)
...
property SlideHeight;
property SlideSelectionColor;
...
end;
end;
TNxReportStyle = class(TNxGridStyle)
...
property FixedCols;
property RowHeight;
...
end;
TNxSlidesStyle = class(TNxGridStyle)
...
property SlideHeight;
property SlideSelectionColor;
...
end;
Initial code is allready finished, and main work will start in July. Every registered user will get new version for free as usuall.
Column structure will not be changed, and every style will share columns (like in current version).
Main Advantages:
- Drawing code will be separated for different styles.
- New GridStyles may be easily created in future (IconStyle, CardStyle...)
- If Grid use only report style, code for Slides style will not be loaded.
User will be able to menage current styles within small component editor (like for Collections)
Best regards