Page 5 of 11

Re: prg code function documentor in HMG

Posted: Sat Jan 04, 2020 2:45 pm
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 
 

Re: prg code function documentor in HMG

Posted: Mon Jan 06, 2020 12:18 am
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.

Re: prg code function documentor in HMG

Posted: Mon Jan 06, 2020 12:39 am
by AUGE_OHR
hi,

here now lastes Version 0.18
hb_click017.zip
(60.43 KiB) Downloaded 451 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 14555 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

Re: prg code function documentor in HMG

Posted: Thu Jan 09, 2020 4:01 am
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

Re: prg code function documentor in HMG

Posted: Fri Jan 10, 2020 11:31 am
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

Re: prg code function documentor in HMG

Posted: Sat Jan 11, 2020 5:03 am
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 14425 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 477 times
p.s. do NOT skip when get a HMG Syntax Error. it will not display when i got "full" HMG Syntax

Re: prg code function documentor in HMG

Posted: Sat Jan 11, 2020 1:57 pm
by quartz565
hi,
Thank you very much. I'll try the new program and let you know.
Nikos

Re: prg code function documentor in HMG

Posted: Sat Jan 11, 2020 9:01 pm
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

Re: prg code function documentor in HMG

Posted: Sat Jan 11, 2020 9:26 pm
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)

Re: prg code function documentor in HMG

Posted: Sat Jan 11, 2020 10:17 pm
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.