Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Jumping of image in button
Message
From
10/09/2001 06:06:09
 
 
To
09/09/2001 12:31:37
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00552379
Message ID:
00554553
Views:
72
Hi!

Yes, the image size is larger than button's, and seems this was only exactly situation when this behaviour happens.
Probably this is fixed in later versions of VFP SP and in VFP7.

Thanks Nancy!

>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
>**************************************************
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform