Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to compare 2 different controls?
Message
De
05/02/2015 20:16:55
 
 
À
05/02/2015 17:47:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01614934
Message ID:
01614944
Vues:
39
But this will only compare the lowest level subclassed and might gloss over properties set in perhaps different superclass hierarchies?
Or programmatic changes with addproperty() on the fly?

@Al:
I think it has to be handled at the instantiation level, some simple checking with amembers() and some logging or the diff could also be handled programatically...


HTH

thomas


>>I'm doing some maintenance programming. I have 2 container classes, each of which contains a grid. Within the first column of each grid there's a dropdown combo control.
>>
>>I have an appearance issue with one of the dropdowns (see attached image). If the dropdown has the focus, the colour scheme is such that the text of the item is not visible. If the focus is elsewhere, the selected value in the combo can be read as expected. The other combo does not have this problem, its text is visible even if the combo has the focus.
>>
>>My main goal is to fix this issue, so if anyone has a suggestion specific to the use of combos in this scenario I'd appreciate it.
>>
>>But, in general this is part of a larger maintenance issue. In this particular case the combos are two different subclasses of the same combo class. It would be nice to have a tool that could gather all PEMs for both classes and highlight the differences. Anyone know of anything like that?
>>
>>It would be helpful in those cases where the client says "Make item X work the same as item Y".
>
>Hi Al:
>
>If you want to compare VCX classes or forms, you can convert to text with FoxBin2Prg and compare them as text, so you can see the differences with WinMerge or similar tool, change the text files (PRG style) and regenerate the VCX or SCX with your changes.
>
>Take a shot at it:
>https://vfpx.codeplex.com/wikipage?title=FoxBin2Prg
>
>Or you can download it from Thor, a must have tool in VFPx that give you access to various tools and their configurations.
>
>
>As example, the generated code is like this one, as you can see, easy to understand and compare:
>
>
>*--------------------------------------------------------------------------------------------------------------------------------------------------------
>* (ES) AUTOGENERADO - ¡¡ATENCIÓN!! - ¡¡NO PENSADO PARA EJECUTAR!! USAR SOLAMENTE PARA INTEGRAR CAMBIOS Y ALMACENAR CON HERRAMIENTAS SCM!!
>* (EN) AUTOGENERATED - ATTENTION!! - NOT INTENDED FOR EXECUTION!! USE ONLY FOR MERGING CHANGES AND STORING WITH SCM TOOLS!!
>*--------------------------------------------------------------------------------------------------------------------------------------------------------
>*< FOXBIN2PRG: Version="1.19" SourceFile="test_combo.vcx" /> (Solo para binarios VFP 9 / Only for VFP 9 binaries)
>*
>*
>DEFINE CLASS cbo AS combobox 
> 	*< CLASSDATA: Baseclass="combobox" Timestamp="" Scale="Pixels" Uniqueid="" />
>
>	Alignment = 0
>	BackColor = 255,255,255
>	BorderColor = 100,100,100
>	ColumnCount = 0
>	ColumnLines = .T.
>	Height = 24
>	Name = "cbo"
>	Width = 100
>	
>	PROCEDURE InteractiveChange
>		MESSAGEBOX( "Test message!" )
>		
>	ENDPROC
>
>ENDDEFINE
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform