Autor Beitrag
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: So 10.07.05 18:12 
Der Titel agt eigentlich schon alles. Ich suche eine Möglichkeit die Größen von BitBtns und Grouüpboxen zur Laufzeit wie in der IDE von Delphi zu verändern. Auch mit einem solchen schönen Ramen drumrumm *träum*.

mfg
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: So 10.07.05 19:45 
Hallo!
Vllt. hilft dir das hier: www.swissdelphicente...showcode.php?id=2307

Gruß,
maxk

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Di 12.07.05 17:51 
Die Unit verwendet die Unit QGraphics. Wo bekomm ich die her, bei mir is die net im Lib Ordner.
galagher
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2562
Erhaltene Danke: 46

Windows 10 Home
Delphi 10.1 Starter, Lazarus 2.0.6
BeitragVerfasst: Di 12.07.05 18:43 
Hallo!
Das hier dürfte es sein:
www.simes.clara.co.uk/delphi/ctrlsize.htm

_________________
gedunstig war's - und fahle wornen zerschellten karsig im gestrock. oh graus, es gloomt der jabberwock - und die graisligen gulpen nurmen!
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Di 12.07.05 18:50 
Die Unit ist doch Teil der CLX, oder? Das ist die clx-Ausgabe der vcl-unit graphics
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Di 12.07.05 20:29 
Ganz einfach: Ich suche die Unit QGraphics ohne großes Rumgezetere. Der Link hilft mir net sonderlich weiter, steh ich nur auf der Leitung oder was?
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Di 12.07.05 22:20 
user profile iconmaxk hat folgendes geschrieben:
Vllt. hilft dir das hier: www.swissdelphicente...showcode.php?id=2307
Das habe ich gerade ausprobiert und es funktioniert! Du musst nur statt QDialogs Dialogs benutzen ;)

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mi 13.07.05 14:10 
Ich nehme mal stark an dass du QGraphics, und nicht Dialog meinst, oder bin ich schon wieder schief gewickelt?
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mi 13.07.05 14:21 
user profile icongalagher hat folgendes geschrieben:
Hallo!
Das hier dürfte es sein:
www.simes.clara.co.uk/delphi/ctrlsize.htm

Und ich hab jetzt mal das ausprobiert. Funzt ohne Probleme (bis auf eines :? ).
Die Unit mit den QGraphics bringt zwar keine Fehler mehr, erstellt aber auch keine Markierungen :cry:
@MaxK: Vielleicht könntest du dein Testprog mal posten.

mfg

//Edit: Die Markierungen werden doch erstellt. Nur sieht man sie net. Das geht erst wenn folgender Eintrag in der Unit hinzugefügt wird (unter MarkierungCreate in der ersten schleife)

ausblenden Delphi-Quelltext
1:
2:
Panels[i].ParentBackground := false;
Jetzt kann die Farbe richtig zugewiesen werden


Zuletzt bearbeitet von Fabian W. am Mi 13.07.05 14:57, insgesamt 1-mal bearbeitet
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Mi 13.07.05 14:55 
Muss mich erstmal entschuldigen: Ich meine natürlich auch QGraphics und nicht Dialogs :oops: Das Testprogramm hängt unten dran. Ist wirklich simpelstes Copy & Paste (abgesehen von dem einem Q, das weg muss ;)).
Einloggen, um Attachments anzusehen!
_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mi 13.07.05 15:10 
Danke, warst leider zu spät hab's schon hinbekommen.
Folgendes:
Bugs bei der Version mit den Graphics:
Mann muss 2mal klicken um die Markierungen von einer zur anderen Kompo zu bekommen,
Die Markiwerungen ham den normalen Cursor

Bugs bei der anderen Version:
Die Markierungspunkte verschwinden, wenn zb Button auf einer Groupbox*

Ich muss mir jetzt überlegen welche der beiden ich nehm.
mfg

*Hat jemand ne Idee wie ich das wegbekomm?
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mi 13.07.05 15:38 
user profile iconFabian W. hat folgendes geschrieben:
Danke, warst leider zu spät hab's schon hinbekommen.
Folgendes:
Bugs bei der Version mit den Graphics:
Mann muss 2mal klicken um die Markierungen von einer zur anderen Kompo zu bekommen,
Die Markiwerungen ham den normalen Cursor

Bugs bei der anderen Version:
Die Markierungspunkte verschwinden, wenn zb Button auf einer Groupbox*

Ich muss mir jetzt überlegen welche der beiden ich nehm.
mfg

*Hat jemand ne Idee wie ich das wegbekomm?


Das wurde behoben indem ich die Box toBack gesented hab.
Ich enhm den Controlsizer. Danke an alle, ichr habt mir sehr geholfen :D