Autor Beitrag
FlameDiver
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 104

WIN XP
D6 Pers
BeitragVerfasst: Sa 22.05.04 11:19 
also ich hab 3 tgrabars! eine steht für den rotanteil eine für den blau anteil und eine für den grün anteil! und ich habe eine paintbox! die tragbars haben alle ein min wert von null und einen max wert von 255 (wie die farben)! jetzt will ich dadurch das ich die tragbars verscheibe die farbe in der paintbox ändern! aber igrendwie weiß ich ned wie!

_________________
From Hell and back again
chefkoch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WIN XP pro
D7
BeitragVerfasst: Sa 22.05.04 13:56 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
var rueckcolor : tColor;
    r,g,b      : integer;
begin
    r := trackbar1.Position;
    g := trackbar2.Position;
    b := trackbar3.position;
    rueckcolor := rgb(r,g,b);
end;


in rueckcolor steht dann der wert der farbe

hf Chefkoch

_________________
Chaos, Panic, Disorder - My work here is done
FlameDiver Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 104

WIN XP
D6 Pers
BeitragVerfasst: So 23.05.04 09:33 
thx! ich werds gleich mal ausprobieren!

_________________
From Hell and back again