Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem: scrollbars on Form is a object typing property.
Message
De
12/12/2003 09:56:19
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Problem: scrollbars on Form is a object typing property.
Divers
Thread ID:
00858562
Message ID:
00858562
Vues:
53
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform