Autor Beitrag
bernd29
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 116

winxp
D7 und VB6
BeitragVerfasst: Sa 05.03.05 10:22 
hi alle zusammen,

ich habe eine komponente mit der ich den lautstärke pegel anzeigen will problem dei komponente verfügt nur über Value fehler meldung value (singel) und bassplayer volumen (byte) vertragen sich net .


dank euch :shock:
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Sa 05.03.05 10:30 
Dann wirst du Value eben auf Byte runterrunden müssen. Aber vielleicht solltest du mal schreiben, was Value genau ist und welche Eigenschaften der Compos wofür zuständig sind. Was sagt das Readme?

AXMD
bernd29 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 116

winxp
D7 und VB6
BeitragVerfasst: Sa 05.03.05 10:36 
hi axmd,

also es ist eine pegel anzeige mit zeiger ,wie rundet man es den runter.

gruss bernd29
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Sa 05.03.05 10:43 
Da du nicht schreibst in welchem Wertebereich sich diese beiden befinden kann ich dir das nicht sagen. Ich tippe mal: AByte := Trunc(Value / MaxValue * High(Byte)); wobei MaxValue der Maximalwert von Value ist (maximal möglich). Round geht auch.

AXMD
bernd29 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 116

winxp
D7 und VB6
BeitragVerfasst: Sa 05.03.05 10:47 
wo finde ich den den werte bereich ? :(
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Sa 05.03.05 10:50 
Woher soll ich das wissen ^^? Du hast die Compo heruntergeladen, nicht ich ;)

AXMD
bernd29 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 116

winxp
D7 und VB6
BeitragVerfasst: Sa 05.03.05 10:53 
versuchen wir es mal so wen ich eine trackbar nehmen würde
wie würde es den da aussehen wen ich die zu einem pegel mache.



gruss bernd29 :roll:
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Sa 05.03.05 11:02 
die Position auf der Trackbar kannste mit Trackbar.Position angeben.
bernd29 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 116

winxp
D7 und VB6
BeitragVerfasst: Sa 05.03.05 11:05 
supi danke erstmal werd ich mal probieren .



grüsse,