Screencast:CSS
From Delphi for PHP Documentation Wiki
[edit] Screencast location
Click here to view the screencast
[edit] Screencast structure
- Create a new form
- Save it somewhere
- Set a name for it
- Drop a component, in this case a Label, which is going to use the style
- Set something in the caption
- Now, create a new stylesheet
- Create a custom style with some attributes
- Save the stylesheet on a .css file
- Place an StyleSheet component on the form
- Set the FileName property to point to the .css file just created
- Now, all components having Style property, on the drop down, will show the styles stored on the .css file
- Setting it to .mystyle, will apply the style to the caption
- If you change the contents of the .css file, simply forcing controls to redraw, will update the component

