Forum > LCL
[solved] how to have colorful tabs
(1/1)
Kraig:
I’m trying to make a control that is a descendant of tpagecontrol so that I can control the color of the tabs better.
What is the best way to do this?
So far I have
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- Tmypagecontrol = class (tpagecontrol) I’m not sure what I need to override to draw the tabs the same color as page
dseligo:
Look at ATTabs control.
It's not descendant of TPagecontrol, but it may be easier to achieve what you want:
https://wiki.freepascal.org/ATTabs
Kraig:
Thanks for 5he reply I’ll look into that. Do you know if it has a multiline property?
Also at one point I was trying to use ttab control but I couldn’t seem to control the height of the tabs.
dseligo:
--- Quote from: Kraig on March 19, 2024, 01:06:39 pm ---Thanks for 5he reply I’ll look into that. Do you know if it has a multiline property?
--- End quote ---
I see it has option OptMultiline but I didn't use it.
--- Quote ---Also at one point I was trying to use ttab control but I couldn’t seem to control the height of the tabs.
--- End quote ---
ATTabs has OptTabHeight to set height of the tabs.
Thaddy:
alex is indeed a - very active - forum member, so he will read this.
Navigation
[0] Message Index