Autor Beitrag
lord.paddington
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 76



BeitragVerfasst: Fr 24.06.05 17:18 
Hallo!

Habe eine Komponente, die ich gerne um 180° drehen möchte (siehe Anhang).
Weiß jemand Rat?

Danke


Moderiert von user profile iconAXMD: Topic aus CLX / Delphi Language (Object-Pascal) verschoben am Fr 24.06.2005 um 18:22
Einloggen, um Attachments anzusehen!
_________________
pfutsch ist hin und hin ist pfutsch
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: Fr 24.06.05 17:22 
Äm... entschuldige die Frage, aber was macht das grafisch für einen Unterschied?

AXMD
Larus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 431



BeitragVerfasst: Fr 24.06.05 17:25 
Keinen ??? :lol: Aber auch wenn das in diesem Fall sinnlos ist würd ich das auch mal gerne wissen wie ich eine Komponente um einen X-Beliebigen winkel drehen kann!
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: Fr 24.06.05 17:35 
user profile iconLarus hat folgendes geschrieben:
Keinen ??? :lol: Aber auch wenn das in diesem Fall sinnlos ist würd ich das auch mal gerne wissen wie ich eine Komponente um einen X-Beliebigen winkel drehen kann!


Nochmal die (berechtigte) Frage: wozu?

AXMD
Larus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 431



BeitragVerfasst: Fr 24.06.05 17:37 
just for fun? :lol: Und weil ich es evtl. nochmal gebrauchen könnt?^^
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: Fr 24.06.05 17:40 
user profile iconLarus hat folgendes geschrieben:
just for fun? :lol: Und weil ich es evtl. nochmal gebrauchen könnt?^^


Du kannst die Komponente aus dem Screenshot virtuell umdrehen und einfach rauf und runter vertauschen. Aber das verwirrt den Benutzer. Also wofür? Ist doch sinnlos...

AXMD
Larus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 431



BeitragVerfasst: Fr 24.06.05 17:45 
Ich meinte das jetzt algemein! Damit ich z.B. eine Bildkomponente um 45° drehe und/oder die Buttons auch!
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: Fr 24.06.05 17:47 
user profile iconLarus hat folgendes geschrieben:
Ich meinte das jetzt algemein! Damit ich z.B. eine Bildkomponente um 45° drehe und/oder die Buttons auch!


Bildkomponenten kannst du ja indirekt über das Canvas bzw, die entsprechenden GDI-Rotationsoperationen drehen.

AXMD
Larus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 431



BeitragVerfasst: Fr 24.06.05 17:59 
AHHHHHH ich geb es auf! Lol :P Wennst mir net sagen willst is och egal :wink:
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Fr 24.06.05 19:39 
Für normale Spiegelungen sowie eine Drehung um 180° kannst Du über die GDI das Koordinatensystem des jeweiligen Subfensters ändern. Die VCL kommt mit dieser Änderung nicht zurecht und zeichnet damit Seitenverkehrt.

Andere Winkel als 180° sind damit jedoch nicht möglich.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
lord.paddington Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 76



BeitragVerfasst: Sa 25.06.05 20:10 
Titel: ähem
es handelt sich um eine Scrollbar!

Wenn ich unten klicke, dann wird inkrementiert,
klicke ich oben, dann wird dekrementiert.

Das ist nicht intuitiv!

Wie kann ich die Funktion umkehren?


Dankje!

_________________
pfutsch ist hin und hin ist pfutsch
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 25.06.05 21:06 
Titel: Re: ähem
user profile iconlord.paddington hat folgendes geschrieben:
es handelt sich um eine Scrollbar!

Wenn ich unten klicke, dann wird inkrementiert,
klicke ich oben, dann wird dekrementiert.

Das ist nicht intuitiv!


Und warum willst dus dann so machen?

AXMD
lord.paddington Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 76



BeitragVerfasst: Sa 25.06.05 21:18 
Titel: ???
Ich will es genau anders herum machen!
Weiß aber nicht wie!

:-(

_________________
pfutsch ist hin und hin ist pfutsch
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 25.06.05 23:43 
Vielleicht helfen Dir die beiden Funktionen SetViewportExtEx und SetViewportOrgEx. Es gibt noch zwei weitere Funktionen zu tdem Thema, da müsste ich aber nochmal nachgucken ... Ich weiß, dass ich das mit dem Drehen des Koordinatensystems für GDI schonmal gesehen hab.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.