Autor Beitrag
Massiv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 93



BeitragVerfasst: Mo 30.03.09 17:30 
hallo

wenn ich eine Trackbar ins vertikale drehe dann zeigt er mir den statuszeiger(siehe bild)
nach unten(bei MAX) obwohl er ja unten sein muss wenn er auf 0 ist, denn wenn ich die lautstärke erhöhen möchte mit dem trackbar, ist es ja üblich das man den statusanzeiger nach oben schiebt
wei kann ich das machen?Auf dem bild sieht ihr die statusanzeige bei volume 100% als oauf maximum, eigentlich müsste der zeiger oben sein, komischer weise aber nicht^^


bildupload.sro.at/p/303131.html
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 30.03.09 17:36 
Das Maximum ist nun einmal bei einer Trackbar unten, wenn du es umgekehrt haben willst, dann musst du den Wert selbst umdrehen. Also nimm statt Position beim Auslesen einfach Max - Position, fertig. ;-)
Und beim Setzen entsprechend.

Warum lädst du das Bild nicht einfach hier als Anhang hoch, bei irgendeinem Bildhoster ist es ja nach einer Weile wieder weg...
Massiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 93



BeitragVerfasst: Mo 30.03.09 17:43 
ehhmmm... könntest du mir pls zeigen wie der code so ungefähr aussehen sollte^^
sry ich weiss nämlich nicht wei dus meinst^^
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 30.03.09 17:45 
ausblenden Delphi-Quelltext
1:
2:
3:
ShowMessage(IntToStr(TrackBarX.Max - TrackBarX.Position));

TrackBarX.Position := TrackBarX.Max - DeinePosition;
Wo ist das Problem? :gruebel:
Massiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 93



BeitragVerfasst: Mo 30.03.09 17:56 
was soll ich bei "deine position" eingeben?
100 oder 0?
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Mo 30.03.09 19:12 
Am besten gibst du da deine Position an :)
Also die Position, an der die Lautstärke grade ist :roll:

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.