Re: HMG Easy Build
Posted: Sun Sep 07, 2014 4:03 pm
Ok, I'll work on it.Rathinagiri wrote:A request from a lazy man.
Can we have the latest version?
Exclusive forum for HMG, a Free / Open Source xBase WIN32/64 Bits / GUI Development System
http://hmgforum.com/
Ok, I'll work on it.Rathinagiri wrote:A request from a lazy man.
Can we have the latest version?
bpd2000 wrote:Wow! Congrats Claudio. Many more 1000s expected.
Many thanks Friendsbpd2000 wrote:Congrats
Best wishes
Jajaja bien, Sabía que aparte de todo tienes buen humor!!!srvet_claudio wrote:
This post is totally useless, it's just to complete my first 1000 posts.
I couldn't understand how my suggestion was an obstacle to work properly SEARCH_OPEN module of Toledopctoledo wrote:...
Using Form_1.StatusBar.Item(1) will not work properly, because of the changes suggested by Esgici.
Code: Select all
DEFINE WINDOW Form_1;
AT 0,0;
WIDTH 900;
HEIGHT 600;
TITLE 'HMG Easy Build' + _VERSION;
ICON "_EasyBuild_Icon.ico";
ON INIT Initialize() ;
ON PAINT SPLITBOX_RESIZE();
ON RELEASE (Form_1.Tree_1.ImageList := 0, Form_1.Grid_1.ImageList := 0 ); // avoid release System Icon ImageList
MAIN
Code: Select all
DEFINE TOOLBAR ToolBar_1 BUTTONSIZE 120,95 IMAGESIZE 64,64 STRICTWIDTH FLAT
BUTTON Button_1 CAPTION "Ho&me" PICTURE '_home' ACTION URL_OPEN ( URL_BLOG ) TOOLTIP 'Home page ...'
BUTTON Button_3 CAPTION "HMG &Help" PICTURE '_help' ACTION URL_OPEN ( cHMG_Help ) TOOLTIP 'Open HMG Help'
BUTTON Button_2 CAPTION "HMG &Forum" PICTURE '_ftp' ACTION URL_OPEN ( URL_FORUM ) TOOLTIP 'Open HMG Forum'
BUTTON Button_8 CAPTION "Forum &Search " PICTURE '_FrmSearch' ACTION SEARCH_FORUM() TOOLTIP 'Search at HMG Forum'
BUTTON Button_4 CAPTION "&Setting Options" PICTURE '_setting' ACTION SETTING_OPTIONS() TOOLTIP 'Setting Options'
BUTTON Button_5 CAPTION "&Open File" PICTURE '_open' ACTION OPEN_FILE() TOOLTIP 'Open File'
BUTTON Button_6 CAPTION "&Build App" PICTURE '_build' ACTION BUILD_APP() TOOLTIP 'Build .HBP/.PRG Files'
BUTTON Button_7 CAPTION "&About" PICTURE '_about' ACTION ABOUT_INFO() TOOLTIP 'About ...'
END TOOLBAR
Code: Select all
*-----------------------------------------------------------------------------*
PROCEDURE Initialize()
*-----------------------------------------------------------------------------*
Form_1.Button_6.Enabled := .F.
RETURN // Initialize()
Code: Select all
PROCEDURE SEARCH_FORUM()
LOCAL nGrRow := Form_1.Grid_1.CellRowFocused
LOCAL cPath, cFNam
IF nGrRow > 0
cPath := aFiles[ nGrRow, 5 ]
IF !EMPTY( cPath )
HB_FNameSplit( cPath, , @cFNam )
IF !EMPTY( cFNam )
URL_OPEN ( URL_FORUM + "/search.php?keywords=" + cFNam + "&ch=300" )
ENDIF
ENDIF
ENDIF
RETURN // SEARCH_FORUM()
"Permission denied" means HMG_EasyBuild.exe is running, quit from said program and then compileAgil Abdullah wrote:Hallo Dr.Claudio Soto,
I failed to recompile your source of hmg_easybuild.prg. Error read as below:
---------------------------------------------------------------------------------------------------
Harbour 3.2.0dev (r1407111333)
Copyright (c) 1999-2014, http://harbour-project.org/" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;
d:/hmg331/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: reopening HMG_EasyBuild.exe: Permission denied
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)).esgici wrote:I couldn't understand how my suggestion was an obstacle to work properly SEARCH_OPEN module of Toledo
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.esgici wrote:In my opinion there isn't any reason to limit search for samples.
I noticed that in your module SEARCH_FORUM you are using the file name selected to search forum. Most names of PRG files or HBP is demo (Demo.prg, demo1.prg, demo2.prg, etc), then the forum will search by name "demo", no matter which folder is selected.esgici wrote:And I have a new suggestion with a new SEARCH_FORUM module
+1pctoledo wrote: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.
When any folder is selected, different SAMPLES, the button HMG Forum will open [url]http://www.hmgforum.com"%20onclick[/url]
..//..
I think the correct approach would be to search for the name of the selected folder, as I did SEARCH_OPEN.