prg code function documentor in HMG

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
Tiger
Posts: 70
Joined: Mon Aug 31, 2015 11:28 am
Location: Taipei

Re: prg code function documentor in HMG

Post by Tiger »

Hi Jimmy,

Thanks for your effort to make the Click works with HMG. I am wonder if it can be enhanced to add the comment to those statements ( while ,if ...)

Code: Select all

While aaa
  If bbb
  .
  .
    While ccc
	.
	.
    Enddo // While ccc
    If ddd
	.
	.
    Endif // If ddd
  .
  .
  Endif // If bbb  
  .
Enddo // While aaa 
 
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: prg code function documentor in HMG

Post by AUGE_OHR »

hi,
Tiger wrote: Sat Jan 04, 2020 2:45 pm I am wonder if it can be enhanced to add the comment to those statements ( while ,if ...)
nice Idea :idea: ... but that mean that CLICK "change Code" ... hm
now CLICK just write Header which does not touch Code so it is safe.
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: prg code function documentor in HMG

Post by AUGE_OHR »

hi,

here now lastes Version 0.18
hb_click017.zip
(60.43 KiB) Downloaded 416 times
fixed : LFN (instead of 8.3) Support
change : now include path for DBF
add : Checkbox "Verbose" which can be used "on-fly" to speed up
Click017.jpg
Click017.jpg (60.15 KiB) Viewed 13407 times
if "underflow" or "overflow" now display YesNo Box.
it is recommend to BREAK loop with "Yes" ... but sometimes it still fail

i do my best but i can't "Guarantee" that it produce right Code with "your" Source :!:
so i include Source and everbody can look into it how it work.

please send me a (small) Sample if you found a Problem ( HMG Snytax still not include in this Version), thx
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: prg code function documentor in HMG

Post by AUGE_OHR »

hi,

as i found out not all "underflow" or "overflow" are "urgent" to BREAK ...

i found out that

Code: Select all

END WINDOW
or

Code: Select all

END TOOLBAR
are those Msg which i get when using HMG Syntax with CLICK

i will try to include those Syntax into CLICK.
i guess there are "more" with "END ..." so please help me and post other "END ..." when you have, thx
have fun
Jimmy
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: prg code function documentor in HMG

Post by quartz565 »

hi Jimmy thank you for your fantastic work!
I'm sending you a file that causes a problem with "END BUTTON" on line 38
Attachments
Mainok.zip
(1.81 KiB) Downloaded 388 times
Best Regards,
Nikos.

os: Windows Server 2019 - 64
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: prg code function documentor in HMG

Post by AUGE_OHR »

hi,
quartz565 wrote: Fri Jan 10, 2020 11:31 am I'm sending you a file that causes a problem with "END BUTTON" on line 38
thx for Sample.

i have implement DEFINE with

Code: Select all

 lAction := cLookFor $ 'WINDOW|TOOLBAR|GRID|BUTTON|MAINMENU|MAIN MENU|POPUP|TEXTBOX|RICHEDITBOX|STATUSBAR|CONTROL|NOTIFY'
i need "more" if "your" Source still fail with HMG Version of CLICK

---

it will FAIL on HB_FUNC Code ... :o
those Code will give Error when compile but i don't know why :?:
here you can see what Windiff.EXE give me.
CLICK_C.jpg
CLICK_C.jpg (209.64 KiB) Viewed 13277 times
in produced Code that "C" Part look Different while it is (wrong) Indent. so it look different to WinDiff.EXE ... hm ...
i think it need a HEX Editor to see what is going on ... :roll:

p.s. the HB_FUNC is very nice :!:
can you change Background Color of hdItem using FillRect( hDC, rect, ::BrushHiBack ) :?:

---

here CLICK.EXE, please test it and tell me "more" DEFINE to implement.
hb_CLICK_EXE20.zip
(1.33 MiB) Downloaded 430 times
p.s. do NOT skip when get a HMG Syntax Error. it will not display when i got "full" HMG Syntax
have fun
Jimmy
User avatar
quartz565
Posts: 667
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Contact:

Re: prg code function documentor in HMG

Post by quartz565 »

hi,
Thank you very much. I'll try the new program and let you know.
Nikos
Best Regards,
Nikos.

os: Windows Server 2019 - 64
RPC
Posts: 281
Joined: Fri Feb 10, 2017 4:12 am
DBs Used: DBF

Re: prg code function documentor in HMG

Post by RPC »

edk wrote: Tue Dec 10, 2019 11:12 am Hi.
I changed the control type from EDITBOX to RICHEDITBOX and used the Addtext property.
Every 250 lines displayed, release memory and do event queue.
click_prg.7z
Check it now.
Hi edk
From where can I get DLL.CH used in your click program. Unable to compile without it.
thanks
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: prg code function documentor in HMG

Post by AUGE_OHR »

RPC wrote: Sat Jan 11, 2020 9:01 pm From where can I get DLL.CH used in your click program. Unable to compile without it.
you fine it under c:\harbour\include\dll.ch but that CLICK is a old Version and obsolet.

try new Version with HMG include, Source will available soon (have to clean up Code)
have fun
Jimmy
RPC
Posts: 281
Joined: Fri Feb 10, 2017 4:12 am
DBs Used: DBF

Re: prg code function documentor in HMG

Post by RPC »

AUGE_OHR wrote: Sat Jan 11, 2020 9:26 pm
RPC wrote: Sat Jan 11, 2020 9:01 pm From where can I get DLL.CH used in your click program. Unable to compile without it.
you fine it under c:\harbour\include\dll.ch but that CLICK is a old Version and obsolet.

try new Version with HMG include, Source will available soon (have to clean up Code)
Ok. Thanks AUGE_OHR

I have tried hb_click_exex20 and it is working well.
Many thanks for sharing.
Post Reply