Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG a Top/Left/Height/Width get fire property_Assign
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00911720
Message ID:
00911909
Views:
14
>this is a old bug,
>but with the new Anchor property this bug is very destructive.

I'm not sure why you say this behavior is more destructive for Anchors. The following code shows Width.Assign being called only once, as expected.
PUBLIC oform1

oform1=NEWOBJECT("form1")
oform1.Show
DOEVENTS
oForm1.Width = oForm1.Width + 10

DEFINE CLASS form1 AS form
	Caption    = "bug: a access to Width fire a Assign !"
	allowOutput = .f.
	
	ADD OBJECT txt1 as textbox WITH anchor=15
	
	PROCEDURE txt1.Width_assign
		LPARAMETERS vNewVar
		? "Assigning Text1 Width."
		This.Width = vNewVar
	ENDPROC
ENDDEFINE
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform