Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weirdest problem I've ever seen
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01127459
Message ID:
01127477
Views:
13
>>>Maybe they are not inherited from the same base class as the first one?
>>
>>Ok, here is what I found. On the parent class one textbox had 22 in bold. I reset to default, saved the form and opened the child class. What do you think all textboxes now were - 21! How would you explain the missing pixel??????
>
>Did you check the commandbutton class they are inherited from?

Here is the class code (without methods). Do you think IntegralHeight has something to do with the problem?
#INCLUDE "c:\mmortals\common30\include\framincl.h"
*
DEFINE CLASS ctextbox AS textbox


	FontSize = 8
	Format = "!"
	Width = 80
	DisabledForeColor = RGB(0,0,0)
	SelectedBackColor = RGB(0,0,128)
	IntegralHeight = .T.
	*-- The name of a view parameter linked to this control. Used in criteria selection forms.
	cviewparameter = ""
	*-- Specifies a custom builder reserved for use with BUILDER.APP (supplied with VFP).  Must be a valid PRG, FXP, APP, or SCX filename.
	builder = "ctextbox"
	*-- Specifies a customer builder reserved for use with BuiderX.  Must be a valid VCX class, PRG, FXP, APP, or SCX filename.  Classes are specified using [ClassLib], Class syntax.  Leave ClassLib blank to specify the current classlib ( ,<class>).
	builderx = "MMBuildr,MMBuilder"
	*-- Specifies the version number of this class.
	cversion = 01.00.0001
	*-- Unique control ID
	icontrolid = 0
	*-- Contains the control's original tool tip text
	PROTECTED coriginaltooltiptext
	coriginaltooltiptext = ""
	Name = "ctextbox"

	*-- If TRUE, indicates the control is read only. Used by the control's When( ) method in conjunction with the form's lReadOnly property to return TRUE or FALSE.
	lreadonlyignore = .F.

	*-- If TRUE, indicates this control is read only
	lreadonly = .F.

	*-- Security Setup Mode receptor
	lsecuritysetup = .F.

	*-- Localize Event Receptor
	llocalize = .F.

	*-- Localize Setup Event receptor
	llocalizesetup = .F.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform