likemike Posted April 2, 2021 Share Posted April 2, 2021 Hello! Is there anyone out there who could share his CSS-files/code to the community? It's where difficult for me to create correct css-code because of the undocumented syntax (like ".x-inner-el" etc.). Thanks a lot in advance Mike 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 2, 2021 Share Posted April 2, 2021 1 hour ago, likemike said: Is there anyone out there who could share his CSS-files/code to the community? It's where difficult for me to create correct css-code because of the undocumented syntax (like ".x-inner-el" etc.). Thanks a lot in advance Hello, Exactly what do you need? Quote Link to comment Share on other sites More sharing options...
likemike Posted April 2, 2021 Author Share Posted April 2, 2021 Hi! For example I need: 1. change the font size of the items of a TUnimSelect 2. change the title font, color and height of a TUnimDBGrid 3. increase the size of the square of a TUnimCheckbox Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 2, 2021 Share Posted April 2, 2021 4 hours ago, likemike said: 1. change the font size of the items of a TUnimSelect procedure TMainmForm.UnimFormCreate(Sender: TObject); begin with UnimSelect1 do begin JSInterface.JSConfig('itemTpl', ['<span class="x-list-label" style="'+ Font.ToStyleString(True) +'; font-size: '+ (Font.Size+11).ToString() +'px">{val:htmlEncode}</span>']); end; end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 2, 2021 Share Posted April 2, 2021 5 hours ago, likemike said: 2. change the title font, color and height of a TUnimDBGrid Quote Link to comment Share on other sites More sharing options...
likemike Posted April 2, 2021 Author Share Posted April 2, 2021 Thank you! But can you explain, why CSS doesn't work with " title font, color and height of a TUnimDBGrid"? How should we know, when we have to use JS and when CSS? I prefer to use CSS in most cases. If I have to toggle always between both, this would be bad for structured programming. But nevertheless - if someone could share some CSS-files, this would be very appreciated and helpful. Best wishes 1 Quote Link to comment Share on other sites More sharing options...
fraxzi Posted April 22, 2021 Share Posted April 22, 2021 Hi @Sherzod, Where can I find CSS reference of dbgrid (for now).. It it so difficult for newbie like me to navigate with CSS and dbGrid.. for example, in dbgridtree, i'd like to change the expand/collapse icon.. matters like that. could you help me again? Thanks, Frances Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.