HMG Tutorials & Tips

Exclusive forum for HMG, a Free / Open Source xBase WIN32/64 Bits / GUI Development System

    I did how you told me, works just fine.

    Thank you

    Statistics: Posted by ROBROS — Thu Jul 20, 2017 11:41 am

  2. You can also add all .prg files references into .hbp project file and compile to one exe. All functions and procedures will be included.

    Statistics: Posted by edk — Wed Jul 19, 2017 10:57 pm

  3. @ edk: Sorry, absolutely my fault.
    Up to now I used xbase++ in text mode, compiled the single prg-files and called them sequently via command line *.bat.


    Statistics: Posted by ROBROS — Wed Jul 19, 2017 9:14 pm

  4. Thank you very much, MAIN_DEMO is, what I was looking for, I searched the web for it, and it is part of HMG-distribution, by Roberto Lopez.


    Statistics: Posted by ROBROS — Wed Jul 19, 2017 8:43 pm

  5. ROBROS wrote:
    Wed Jul 19, 2017 6:50 pm
    @ edk: your suggestion doesn't work. Are there any settings to be done to make it work?
    Strange, this code work like a charm:


    #include ""Function MainDEFINE WINDOW Win_1 ;AT 0,0 ;WIDTH 400 ;HEIGHT 200 ;TITLE 'Tutor 02 - Property Test' ;MAINDEFINE MAIN MENUPOPUP "First Popup"ITEM 'DO proc1' ACTION proc1() &&on select this do proc1ITEM 'DO proc2' ACTION proc2() &&on select this do proc2ITEM "E&xit" ACTION ThisWindow.ReleaseEND POPUPEND MENUEND WINDOWACTIVATE WINDOW Win_1Return*********************************PROCEDURE proc1Local iFOR i=1 TO 100   i:=i*iNext iMsgInfo('Result: '+hb_ValToStr(i), 'proc1')RETURN *********************************PROCEDURE proc2Local iFOR i=1 TO 100    i:=i+i Next iMsgInfo('Result: '+hb_ValToStr(i), 'proc2')RETURN
    Unless I misunderstood your question. My English is not very good. :(
    But another question: maybe 2 weeks ago I stumbled across a fully featured demo-program with checkbox, datepicker, calendar function and on and on, but I can't find the site again.
    There may be helpful samples from the HMG installation:

    Statistics: Posted by edk — Wed Jul 19, 2017 8:29 pm