In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

suggestion: lRequired (new property)

Xailer professional forum in English
Responder
Avatar de Usuario
Hurricane
Mensajes: 242
Registrado: Mar Mar 24, 2015 10:21 am
Ubicación: Brasil
Contactar:

suggestion: lRequired (new property)

Mensaje por Hurricane »

Hi Team,

Could you please add this new property to 7 types of controls? (T*MaskEdit, T*Memo...). I promise not to ask for anything else (this semester :P )
This new native property will be extremely useful for anyone who wants to create utility routines to validate and make the code cleaner.

Xailer would just display the property in the Object Inspector and nothing else. The programmer would be responsible for any use of this property and creating the necessary logic.

Of course I can create the controls with that, but it would be a step towards de-characterizing the Xailer for something so simple and important for any system.
xailer_property_required.png
xailer_property_required.png (16.63 KiB) Visto 120 veces
regards,
[x]Harbour + GUI (all) | Delphi | SQL | FastReport
Professional contacts Developments, Training, Support
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5683
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Re: suggestion: lRequired (new property)

Mensaje por jfgimenez »

Hi,

you may use this code in your own component's dll, just where you're calling RegisterComponent():

Código: Seleccionar todo

XA_ObjAddProperty( TEdit(), "lRequired", .F. )
This code adds the property "lRequired" to the TEdit class and all of its descendants, and you'll see it in the object inspector
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
Hurricane
Mensajes: 242
Registrado: Mar Mar 24, 2015 10:21 am
Ubicación: Brasil
Contactar:

Re: suggestion: lRequired (new property)

Mensaje por Hurricane »

Hi,
I tested and everything works.
thanks.
jfgimenez escribió: Mié May 25, 2022 11:27 am you may use this code in your own component's dll, just where you're calling RegisterComponent():

Código: Seleccionar todo

XA_ObjAddProperty( TEdit(), "lRequired", .F. )
This code adds the property "lRequired" to the TEdit class and all of its descendants, and you'll see it in the object inspector
regards,
[x]Harbour + GUI (all) | Delphi | SQL | FastReport
Professional contacts Developments, Training, Support
Responder