Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem: scrollbars on Form is a object typing property.
Message
From
12/12/2003 09:56:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Problem: scrollbars on Form is a object typing property.
Miscellaneous
Thread ID:
00858562
Message ID:
00858562
Views:
54
Hi,

i aspected Form.scrollbars read/write at runtime,
but if the form object is created with
scrollbars = 0
any set of the property is ignored at runtime.

repro code ( resize the form over the checkbox )
PUBLIC oform1

oform1=NEWOBJECT("form1")
oform1.Show
RETURN

DEFINE CLASS form1 AS form

	Height = 223
	Width = 358
	Caption = "Form1"
	Name = "Form1"

* remove this comment
*	ScrollBars 	= 3

	ADD OBJECT check1 AS checkbox WITH ;
		Top = 43, ;
		Left = 118, ;
		Height = 17, ;
		Width = 133, ;
		Caption = "V ScrollBars", ;
		Name = "Check1"

	PROCEDURE Load
		thisform.ScrollBars = 2
	ENDPROC

	PROCEDURE check1.Init
		IF m.thisform.ScrollBars = 2
			this.Value = 1
		ENDIF
	ENDPROC

	PROCEDURE check1.Valid
		thisform.ScrollBars = m.this.value * 2
	ENDPROC

ENDDEFINE
Then ( on help is little explain this )
a Form scrollable and a Form not scrollable are different objects,
with internal different code and status ( and bugs ).

Fabio
Next
Reply
Map
View

Click here to load this message in the networking platform