Discussion:
Creating forms using OTA, 3 questions..
(too old to reply)
Linces
2008-03-24 04:07:48 UTC
Permalink
Hello,

I´m using OTA to create forms automatically, i can nominate, and i can
insert labels in this form. I´m using Delphi 7 on Windows XP. I have 3
questions:

1 - How i can modify the caption on labels?

2 - How i can insert MainMenu in this form, and menu items on this MainMenu?

3 - How i can modify propertis like "color" in TLabels and in TEdits?

If need the code that i use the example i sent.

Thank´s
Erik Berry
2008-05-29 07:36:31 UTC
Permalink
Post by Linces
1 - How i can modify the caption on labels?
IOTAComponent.SetPropByName is one method.
Post by Linces
2 - How i can insert MainMenu in this form
IOTAFormEditor.CreateComponent
Post by Linces
3 - How i can modify propertis like "color" in TLabels and in TEdits?
IOTAComponent.SetPropByName (if you want to use the OTA). You can also do
things like cast IOTAComponent.GetComponentHandle to a TEdit and just set
"MyEdit.Color := clBlack;" directly;

Erik

Loading...