HMG Tutorials & Tips

Exclusive forum for HMG, a Free / Open Source xBase WIN32/64 Bits / GUI Development System
  1. Ya. It is either dd/mm/yyyy or dd-mm-yyyy as you see it. :)

    Statistics: Posted by Rathinagiri — Fri Sep 15, 2017 6:15 pm


  2. @rathinagiri,@apais:
    your advice is appreciated, every question I asked and so far every question was answered, brought me forward.

    @rathinagiri: I'm surprised that you use the german date format, India was longtime under British rule.

    Statistics: Posted by ROBROS — Fri Sep 15, 2017 4:00 pm


  3. This is what I usually do. When we want a data entry form, I have two buttons viz., 'Save' and 'Cancel'. Standard shortcut keys like Ctrl+S and Escape can also be linked to call these action functions. If an user closes the window without pressing 'Save' that means 'Cancel' or pressing Escape.

    Now, whatever be the data required in the form, the user is allowed to enter, navigate through the controls by keyboard or mouse. When he presses the 'Save' button or Ctrl+S, validation of all the controls are checked once and if all of them are 'OK', then the whole data set would be used/saved.

    Suppose some fields are interdependent, say only after selecting the item they can enter quantity, there we can use onlostfocus. However, I don't use msginfo() or msgstop(). Instead I would use the status bar or a separate label with red color. This label can be made visible whenever required. By this way the whole focus of the window will not be lost anytime.
    screenshot.jpg
    This is a typical data entry screen of a live application.

    Statistics: Posted by Rathinagiri — Fri Sep 15, 2017 2:06 pm


  4. I'm tryng to say that on realease is a good place to make overall form valiation.

    Statistics: Posted by apais — Fri Sep 15, 2017 11:55 am


  5. ok,so I have to add the on release event to the define window statement?
    Sorry hmg (gui) is so different to dbase for DOS.

    Statistics: Posted by ROBROS — Thu Sep 14, 2017 6:59 pm