Screencast:CSS

From Delphi for PHP Documentation Wiki

Jump to: navigation, search

[edit] Screencast location

Click here to view the screencast

[edit] Screencast structure

  1. Create a new form
  2. Save it somewhere
  3. Set a name for it
  4. Drop a component, in this case a Label, which is going to use the style
  5. Set something in the caption
  6. Now, create a new stylesheet
  7. Create a custom style with some attributes
  8. Save the stylesheet on a .css file
  9. Place an StyleSheet component on the form
  10. Set the FileName property to point to the .css file just created
  11. Now, all components having Style property, on the drop down, will show the styles stored on the .css file
  12. Setting it to .mystyle, will apply the style to the caption
  13. If you change the contents of the .css file, simply forcing controls to redraw, will update the component
Personal tools