Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Titlebar off in scrollable form = loss of themed scrollbar
Message
De
12/06/2005 17:08:31
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Titlebar off in scrollable form = loss of themed scrollbar
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Divers
Thread ID:
01022620
Message ID:
01022620
Vues:
61
Can anyone confirm the following under XP/VFP 9?

When creating a vertically scrollable SCX based form without a titlebar, the form's scrollbar "scroll arrows" lose their themed appearance. The scrollbar's elevator remains themed.

To reproduce, create a blank SCX form, place a textbox at the top of the form and one at 10, 600 or there abouts.

Then set the following form properties:
BorderStyle = 0
Height = 300
Scrollbars = 2  && vertical
Titlebar = 0    && titlebar off
When creating an identical form in code the scrollbar appears fully themed. Code sample below demonstrates this. Double clicking on the form itself will toggle the form's titlebar on/off. Appears to work fine.

Wondering if this a VFP bug or something specific to my environment.
loForm = createobject( "clsForm" )
loForm.Show( 1 )

define class clsForm as Form

	BorderStyle = 0
	Height = 300
	Scrollbars = 2  && vertical 
		
	add object text1 as Textbox with left = 10, top = 10
	add object text2 as Textbox with left = 10, top = 600
	
	function DblClick()
		with ThisForm
			if .TitleBar == 0
				.TitleBar = 1
			else
				.TitleBar = 0
			endif
		endwith
	endfunc

enddefine
Thanks,
Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform