Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Margin is overwritten using dynamic created objects
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00870390
Message ID:
00870436
Views:
8
Hi Andreas.

It looks like a bug to me
PUBLIC oForm AS Form
oForm = CREATEOBJECT("Form")
oForm.AddObject("cbo1", "cbomy")
oForm.Show()
WAIT WINDOW oForm.cbo1.Margin   && Displays 2 instaed of 1
RETURN

DEFINE CLASS cbomy AS combobox
	Height = 24
	Margin = 1
	Width = 100
	Name = "cbomy"
ENDDEFINE
>Hi,
>
>I have a combobox class with margin property set to 1
>or 0. Using this class at design time works fine.
>Adding e.g. a container class which includes this
>class at runtime overwrites the margin property
>with default 2. It had worked fine with VFP7.
>
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform