Dynamic Controls - a good idea
Posted: Mon May 30, 2016 7:47 am
Hello guys
I'm sorry but I do not speak English all is translated with Google.
Long ago in Visual Object I had developed a library to create dynamic controls. It worked so well that I wanted to repeat in HMG.
After three years of fine-tuning and adjustments I can be said to be satisfied.
I am sure that someone will be useful and again through I decided to share it.
It states that the library does not contain all the HMG controls but only the most common ones.
I was used for supporting a remarkable program.
advantages:
-is all HMG
-you can add in your programs or you can add it to your programs
-you just have to connect KForm3.prg into your .hbp
-try moving a control line change unless you do not have to recalculate the position
for more complex applications can continue to write code with HMG
The windows are considered Main and Modal.
You can use the memory variable or field names not together. (see Dbf tests)
Let me illustrate:
FV3_OpenMain('This a Main Window')
FV3_Show()
without controls window is resized by default to 400w and 300h
FV3_OpenModal('Empty Window')
FV3_Show()
FV3_Result() / * always indicated except for main window * /
Does this: this:
FV3_OpenModal('Empty Window')
FV3_Show(2)
IF FV3_Result() / * always indicated except for main window * /
// OK button pressed
Endif
Does this:
Remember that you have to try to do tests with small steps until you understand how it works.
regards
Brunello
I'm sorry but I do not speak English all is translated with Google.
Long ago in Visual Object I had developed a library to create dynamic controls. It worked so well that I wanted to repeat in HMG.
After three years of fine-tuning and adjustments I can be said to be satisfied.
I am sure that someone will be useful and again through I decided to share it.
It states that the library does not contain all the HMG controls but only the most common ones.
I was used for supporting a remarkable program.
advantages:
-is all HMG
-you can add in your programs or you can add it to your programs
-you just have to connect KForm3.prg into your .hbp
-try moving a control line change unless you do not have to recalculate the position
for more complex applications can continue to write code with HMG
The windows are considered Main and Modal.
You can use the memory variable or field names not together. (see Dbf tests)
Let me illustrate:
FV3_OpenMain('This a Main Window')
FV3_Show()
without controls window is resized by default to 400w and 300h
FV3_OpenModal('Empty Window')
FV3_Show()
FV3_Result() / * always indicated except for main window * /
Does this: this:
FV3_OpenModal('Empty Window')
FV3_Show(2)
IF FV3_Result() / * always indicated except for main window * /
// OK button pressed
Endif
Does this:
Remember that you have to try to do tests with small steps until you understand how it works.
regards
Brunello