Function InputWindow()
Moderator: Rathinagiri
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Function InputWindow()
Was funny, yesterday night (almost around midnight, we were tired) and did not see this mistake...
The incridible, that I have check both (enable/disable) but I had not see that was inverted...
To use StopControlEventProcedure() is ok for me and it is working perfectly !!
I will still use Empty for numeric check but with different message. Because in case we do not want this checking/message, it's just not to include in SetMethodCode() at xTestCode().
And I will take off hb_IdleSleep( 0.8 ) because there is no more reason to keep it. MessageBoxTimeout took place in that !
It was very good, really good !
Many thanks, Claudio !
The incridible, that I have check both (enable/disable) but I had not see that was inverted...
To use StopControlEventProcedure() is ok for me and it is working perfectly !!
I will still use Empty for numeric check but with different message. Because in case we do not want this checking/message, it's just not to include in SetMethodCode() at xTestCode().
And I will take off hb_IdleSleep( 0.8 ) because there is no more reason to keep it. MessageBoxTimeout took place in that !
It was very good, really good !
Many thanks, Claudio !
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Function InputWindow()
After Angel suggestions and Claudio's instructions about MessageBoxTimeout I made some litle improvements:
1. At UFD at xIfEmpty() which is responsable for controls checking/settings. It was added MessageBoxTimeout to display a message saying that no field must be empty/zero or without option (these are just examples).
2. In that verifications, was inserted a Ctrl-Z for TEXT and EDIT cases to UNDO what the text was previously.
3. BackColor in InputWindow is posible to be defined as optional.
4. Add and fixed ENTER events (except for CheckBox)
<Code source files were removed because there is a updated version ahead of this topic>
I hope be enjoyed !
1. At UFD at xIfEmpty() which is responsable for controls checking/settings. It was added MessageBoxTimeout to display a message saying that no field must be empty/zero or without option (these are just examples).
2. In that verifications, was inserted a Ctrl-Z for TEXT and EDIT cases to UNDO what the text was previously.
3. BackColor in InputWindow is posible to be defined as optional.
4. Add and fixed ENTER events (except for CheckBox)
<Code source files were removed because there is a updated version ahead of this topic>
I hope be enjoyed !
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Re: Function InputWindow()
Cool !
I'll test it ASAP
This a key black box routine for my programs.
Angel
I'll test it ASAP
This a key black box routine for my programs.
Angel
Angel Pais
Web Apps consultant/architect/developer.
Web Apps consultant/architect/developer.
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Function InputWindow()
Thanks Angel !
Good to know it will be useful !
Good to know it will be useful !
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Function InputWindow()
Grid control was incorporated. It's for simple use, Grid is a complex control ans support only for arrays.
CheckBox was not posible to detect ENTER event. Claudio made an indication by CREATE EVENT.
Even with this resource, was not satisfactory, probably I do not know to implement. The main idea of this InputWindow is to make a generic function (as black-box) and I added this event in My_UDF.
InputWindow was split in separated module with the important functions concerned.
The most considered and the biggest gain was widths in the all controls is allowed for pre-definition. But it works with fixed controls widths. The difference is on xControlWidth as will be defined, could be as fixed size of width or chooso to make in array with each element for each control. This resource with array, lets look better, more aesthetic.
Added a new button for test and comparasion.
<Code source files were removed because there is a updated version ahead of this topic>
Enjoy it !
CheckBox was not posible to detect ENTER event. Claudio made an indication by CREATE EVENT.
Even with this resource, was not satisfactory, probably I do not know to implement. The main idea of this InputWindow is to make a generic function (as black-box) and I added this event in My_UDF.
InputWindow was split in separated module with the important functions concerned.
The most considered and the biggest gain was widths in the all controls is allowed for pre-definition. But it works with fixed controls widths. The difference is on xControlWidth as will be defined, could be as fixed size of width or chooso to make in array with each element for each control. This resource with array, lets look better, more aesthetic.
Added a new button for test and comparasion.
<Code source files were removed because there is a updated version ahead of this topic>
Enjoy it !
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Re: Function InputWindow()
Very good extension
Thank you Pablo César
Thank you Pablo César
BPD
Convert Dream into Reality through HMG
Convert Dream into Reality through HMG
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Function InputWindow()
Thank you guys !
I'm happy you have enjoyed !
I'm happy you have enjoyed !
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- luisvasquezcl
- Posts: 1258
- Joined: Thu Jul 31, 2008 3:23 am
- Location: Chile
- Contact:
Re: Function InputWindow()
Excelente aporte y muy útil, muchas gracias
saludos cordiales,
Luis Vásquez
saludos cordiales,
Luis Vásquez
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
Re: Function InputWindow()
Gracias, Luis.
Que bueno que te haya gustado ! Espero que sea de gran utilidad !
Un abrazo,
Que bueno que te haya gustado ! Espero que sea de gran utilidad !
Un abrazo,
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein