Autor Beitrag
Spurius
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 142

Win XP Home
D3 Prof, D7 Prof
BeitragVerfasst: Mi 09.07.03 14:05 
Hallo

ich habe folgendes Problem: ich habe ein form1, formstyle fsmdiform, außerdem ein form2, fsmdichild. Auf form1 ist ein Button. wenn ich diesen auslöse, sollte auf label1 ein Wort erscheinen, es geschieht jedoch nichts. woran kann das liegen?

MfG
Spurius

Moderiert von user profile iconTino: Titel geändert.
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Mi 09.07.03 19:44 
hallo spurius!

hast es schon mal im OnClickEvent des Button1 mit folgendem code versucht:
ausblenden Delphi-Quelltext
1:
  Label1.Caption:= 'das_wort_das_du_anzeigen_willst';					


oder hast Label1 als 'hidden' deklariert? dann geschieht auch nichts :)

wird dein mdiform schon angezeigt, wenn du auf den button klickst?
ein paar mehr infos wären nicht schlecht

mfg, stefan
Spurius Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 142

Win XP Home
D3 Prof, D7 Prof
BeitragVerfasst: Mi 09.07.03 20:31 
Hallo,
das mdi-hauptform besteht von anfang an. Beim Button sollte mit dem onclick Ereignis das wort in label1 ausgegeben werden. funktioniert aber nicht. Wenn ich formstyle auf fsnormal umstelle, funktioniert es, aber ich brauche fsmdiform. woran könnte das liegen?
mfg
Spurius
ErnestoChe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 528

Win 2000 pro, CRUX 2.0
Delphi 6 Pers, Open K3
BeitragVerfasst: Mi 09.07.03 21:23 
Hallo,

ist der Label auf der MDI-Form. Etwa so:

user defined image

Das geht nicht im MDI-Style. Das widerspricht der Philosophie der MDI-Geschichte. Das MDI-Hauptfenster soll nur als Container-Fenster für die Child-Fenster dienen. Du kannst da ein Panel oder eine ControlBar anbringen (align alTop, alLeft etc.) und darauf das Label und den Button anbringen. Dann gehts.

MFG

- Ernesto -
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Mi 09.07.03 22:00 
hallo ernesto!
nur gut, dass ich das label und den button auf ein panel am mdiform gesetz hatte, sonst wärs mir aufgefallen, dass es am 'nackten' form nicht funktioniert ;)
ja, auf einem panel funktionierts ohne probleme.

mfg, stefan
Spurius Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 142

Win XP Home
D3 Prof, D7 Prof
BeitragVerfasst: Do 10.07.03 13:35 
Hallo
danke, mit dem panel funtionierts.
mfg
Spurius