Autor Beitrag
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Di 10.12.02 20:15 
Hi,

ich hab mal ne frage...
Ich hab mir eine Komponente von einem TPanel abgeleitet, wenn ich die auf's Form packe is alles wunderbar.. wenn ich das Programm starte immernoch...

NUR, wenn ich nu speichere, Delphi beende etc.. und irgenwann wieder das Projekt mit dem Panel auf meinem Form öffne, dann hat zwar mein Panel die richtige größe, aber die objekte darauf (also in meiner Komponente) sind noch so gesetzt als würde ich meine Panel-Kompo nie in der größe veränert haben...

Ich platziere die Objekte innerhalb meiner Komponente einmal im Create der Komponente selbst, und einmal im OnResize meiner Kompo...

Aber, beim OnCreate ist die größe der Komponente noch die ursprüngliche = die falsche...
und ein OnResize wird garnicht ausgeführt (zummindest nicht in der IDE)

Dadurch muß ich meine Komponente in der IDE jedesmal erst einmal selber kurz vergrößern/verkleiner damit sie richtig dargestellt wird.. was relativ nervig ist.. :)

Weiß jemand nen weg, was ich evtl. falsch mache??

Au'revoir,
Aya
Aya Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Di 10.12.02 22:34 
hat sich erledigt, hab's rausbekommen :)
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mi 11.12.02 11:55 
Und wie ??

Gruß
TINO
Aya Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Mi 11.12.02 16:50 
Hab anstatt dem OnResize ereigniss das OnConstrainedResize genommen, das funktionierte.. :)