Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Jumping of image in button
Message
De
09/09/2001 12:31:37
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00552379
Message ID:
00554424
Vues:
70
This message has been marked as the solution to the initial question of the thread.
Vlad-

>Ok, I sent you my own bitmap and msk file which I used to reproduce problem.

I still can't reproduce the problem (VFP 7.0 build 4248). FWIW, the button size you sent isn't big enough to display the whole BMP, I don't know if it's important. Also, the code you sent doesn't use the BMP you sent, so I changed that line.

If you paste _exactly_ the code I used below, and run it, do you see the problem? If so I'll stick to my other suggestions/questions: Try SP5, and please tell us what resource file (language?) you're using. Here's the code I tried:
PUBLIC oform1

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


**************************************************
*-- Form:         form1 (c:\temp\temp.scx)
*-- ParentClass:  form
*-- BaseClass:    form
*-- Time Stamp:   09/09/01 09:22:05 AM
*
DEFINE CLASS form1 AS form


	Top = 0
	Left = 0
	Height = 574
	Width = 793
	DoCreate = .T.
	Caption = "Form1"
	WindowState = 2
	Name = "Form1"


	PROCEDURE Init
		THIS.ADDOBJECT('cmdexit', "commandbutton" )
		WITH THIS.cmdExit
			.TOP = 3
			.LEFT = 745
			.HEIGHT = 40
			.WIDTH = 44
			.FONTNAME = "MS Sans Serif"
			.FONTSIZE = 8
			*!* Picture = "btnbmps\sclose.bmp", ; && standard button from VFP samples
			.PICTURE = "\temp\1MFORM1.bmp" && But, this is the bmp that Vlad sent.
			.CANCEL = .T.
			.CAPTION = "Koniec"
			.TABINDEX = 12
			.TOOLTIPTEXT = "Zatvorenie okna"
			.NAME = "cmdExit"
			.VISIBLE = .T.
		ENDWITH
	ENDPROC


ENDDEFINE
*
*-- EndDefine: form1
**************************************************
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform