Page 6 of 7
Re: HMG Easy Build
Posted: Mon Sep 08, 2014 2:39 pm
by danielmaximiliano
Agil Abdullah wrote:
I failed to recompile your source of hmg_easybuild.prg. Error read as below:
Kill process with Process Explorer , Sysinternals Microsoft.
Link Español ...
http://technet.microsoft.com/es-es/sysi ... 96653.aspx
Link English ...
http://technet.microsoft.com/en-us/sysinternals/
http://technet.microsoft.com/en-us/sysi ... s/bb795533
Re: HMG Easy Build
Posted: Mon Sep 08, 2014 3:14 pm
by esgici
pctoledo wrote:
In my initial code SEARCH_OPEN, was using Form_1.StatusBar.Item (1) to get the current open folder, but your suggestion included the name of the selected file, then the only way out was to use Form_1.Tree_1.Cargo (Form_1.Tree_1.Value)).
"Cargo" is undocumented property and not a obligation using it here. Getting path info from a full file specification isn't difficult nor unknown method.
The HMG Easy Build can be used to compile the demos of the SAMPLES folder, but can also build any other project HMG in other folders. So I thought it best to limit SEARCH_OPEN only when the SAMPLES folder is selected. So the search will be based on the selected folder, searching forum function / events / controls related to the current folder.
IMO unnecessary limitations are not good programming practice; instead programmer should open easy and free ways to user as soon as possible. For example if I have a project named "browse" out of <hmg>\SAMPLE folder, what problem may arise when I want search "browse" on forum ?
When any folder is selected, different SAMPLES, the button HMG Forum will open hmgforum
Again, IMO this is a wrong behavior.
Sorry, everything in this subject are different personal points of view and discussing is meaningless. Lets author of program will select his best way.
Re: HMG Easy Build
Posted: Mon Sep 08, 2014 4:07 pm
by srvet_claudio
I think the best solution is that the user has available two clear alternatives:
1) direct access to the forum
2) allow search of any word, the name of the control in sample folder appear as suggestions but not as obligation
Re: HMG Easy Build
Posted: Mon Sep 08, 2014 4:37 pm
by esgici
srvet_claudio wrote:I think the best solution is that the user has available two clear alternatives:
1) direct access to the forum
2) allow search of any word, the name of the control in sample folder appear as suggestions but not as obligation
+1
Re: HMG Easy Build
Posted: Mon Sep 08, 2014 5:59 pm
by esgici
srvet_claudio wrote:...
2) allow search of any word, the name of the control in sample folder appear as suggestions but not as obligation
Alright
So my changed suggestion :
Code: Select all
PROCEDURE SEARCH_FORUM()
LOCAL nGrRow := Form_1.Grid_1.CellRowFocused
LOCAL cPath := '',;
cFNam := '',;
cSStr := ''
IF nGrRow > 0
cPath := aFiles[ nGrRow, 5 ]
IF !EMPTY( cPath )
HB_FNameSplit( cPath, , @cFNam )
ENDIF
ENDIF
cSStr := InputBox( "Enter search string :", "Search in HMG Forum", cFNam )
IF !EMPTY( cSStr )
URL_OPEN ( URL_FORUM + "/search.php?keywords=" + cSStr + "&ch=300" )
ENDIF
RETURN // SEARCH_FORUM()
Saludos to all friends

Re: HMG Easy Build
Posted: Mon Sep 08, 2014 7:53 pm
by srvet_claudio
esgici wrote:srvet_claudio wrote:...
2) allow search of any word, the name of the control in sample folder appear as suggestions but not as obligation
Alright
So my changed suggestion :
Code: Select all
PROCEDURE SEARCH_FORUM()
LOCAL nGrRow := Form_1.Grid_1.CellRowFocused
LOCAL cPath := '',;
cFNam := '',;
cSStr := ''
IF nGrRow > 0
cPath := aFiles[ nGrRow, 5 ]
IF !EMPTY( cPath )
HB_FNameSplit( cPath, , @cFNam )
ENDIF
ENDIF
cSStr := InputBox( "Enter search string :", "Search in HMG Forum", cFNam )
IF !EMPTY( cSStr )
URL_OPEN ( URL_FORUM + "/search.php?keywords=" + cSStr + "&ch=300" )
ENDIF
RETURN // SEARCH_FORUM()
Saludos to all friends

This is nice!
Re: HMG Easy Build
Posted: Mon Sep 08, 2014 10:44 pm
by esgici
Since we have
Task Manager, why using separate program for terminate any process ?
Simply right click the
task bar, select
task manager, select process to terminate and click
terminate process button; that's all

Re: HMG Easy Build
Posted: Mon Sep 08, 2014 10:53 pm
by esgici
srvet_claudio wrote:...
This is nice!
Thanks Claudio
Now may be it's time to add :
- - Search in HMG DOC
- Sampled HMG Doc (?)
- Search in local HD (s)
Regards
Re: HMG Easy Build
Posted: Mon Sep 08, 2014 11:24 pm
by srvet_claudio
esgici wrote:srvet_claudio wrote:...
This is nice!
Thanks Claudio
Now may be it's time to add :
- - Search in HMG DOC
- Sampled HMG Doc (?)
- Search in local HD (s)
Regards
Very good ideas!
PS: For these days I've left this project because I'm finishing the new release of HMG.
Re: HMG Easy Build
Posted: Mon Sep 08, 2014 11:37 pm
by esgici
srvet_claudio wrote:[
Very good ideas!
Thanks Claudio
PS: For these days I've left this project because I'm finishing the new release of HMG.
OK. You are right; HMG should have high priority
Regards
