Menu

Cannot change TUITableView Header section Background color

Chris
2014-04-14
2014-04-22
  • Chris

    Chris - 2014-04-14

    Hi
    How can i change the TUITableView Header and Footer section background colour?

    When i tried this

    l_sect := TableView.Sections.add;
    l_sect.Header.BackgroundColor := TAlphaColors.Blue;

    TableView.refreshNeeded;

    When i run the application, the section header background colour still remain as grey

    Please advise

    thanks
    chris

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2014-04-14

    Hi Chris

    You must be set section kind to custom:

    DPFUITableView1.Sections[0].Header.Kind := TDPFTableHeaderFooterKind.kCustom;
    

    Regards

     
  • Chris

    Chris - 2014-04-16

    hi babak

    How can i create the rounded corners like in your example of TableView3? I can't do it at run time.
    Please advise

    thanks
    chris

     
    • Gordon

      Gordon - 2014-04-17

      usually do it by having the main view with rounded corners, and laying other views inside.

       
  • Chris

    Chris - 2014-04-22

    hi Gordon.
    Seems like i have to look into the UITableView3 example.

    Thanks
    chris

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2014-04-22

    Hi Chris

    Use grouped table:

    SET DPFUITableView1.Options.ViewStyle = tvsGrouped

    Regards

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.