Is it possible to change the color of tabs or buttons?
Is it possible to change the color of tabs or buttons?
METAL HEAD FOR LIFE!!!
I'm not sure, but you could make a TImage of a button and use that instead (just a thought).
you could use a TSpeedbutton or a tbitbutton and then use an bitmap on their canvas to draw a different color. As far as i know, changing the buttons actual colors to be different from the background of the form doesnt work in SCAR.
SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
Programming Projects: NotePad | Tetris | Chess
I created a TTabController using Images, it can be done. That way, you can manipulate all the tabs via Canvases and Bitmaps!
Feel free to ask me if you need some help..
No, I don't still have the code![]()
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
something like that i guess. Depends on how you want it. If the bitmap has a background that you dont want to use then you'll need to do fastdrawtransparency if you didnt know that, but otherwise thats about it, i think.SCAR Code:button := TSpeedbutton.create(frmdesign);
with button do
begin
Parent := frmdesign;
Flat := true;
SetBounds(1,1, 17, 17);
Glyph.Width := 16;
Glyph.Height := 16;
SafeCopyCanvas(getbitmapcanvas(imageImCopying), Glyph.Canvas, 0, 0, 16, 16, 0, 0, 16, 16);
end;
SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
Programming Projects: NotePad | Tetris | Chess
There are currently 1 users browsing this thread. (0 members and 1 guests)