HMG 3.1.5

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

User avatar
srvet_claudio
Posts: 2145
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 58 times
Been thanked: 250 times
Contact:

Re: HMG 3.1.5 (Test)

Post by srvet_claudio »

mol wrote:Thanks Claudio for your work!
Could you point changes in IDE? We would take a closer look to test it....
The improvements are small:
- Changing the language at runtime
- Language files with different extension (.ASN and .UNI)
- All names of files language are in English
- Show compiler version of HMG
- Show the path of the open project
- Display the contents of BUILD.LOG file
- Different icons and splash screen (red and blue)
- Version of the IDE with numbers
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

User avatar
srvet_claudio
Posts: 2145
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 58 times
Been thanked: 250 times
Contact:

Post by srvet_claudio »

The IDE has had several versions since birth (identified with dates).
What do you consider should be appropriate the number of this version :?:
1.0.3 is an appropriate number :?:
Thanks.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

User avatar
srvet_claudio
Posts: 2145
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 58 times
Been thanked: 250 times
Contact:

Post by srvet_claudio »

Pablo César wrote: 4. In Tools/Preferences at module Editor option.

Since we are walking to the disassociation of the Notepad++ installed files under HMG installations and let user define his own preferred editor. I suggest that the initial value of editor_field comes after a routine (which I can contribute) to detect which is the default editor used by the user. If no found of any association with the PRG extension file (by checking at Windows registry), should be displayed as "<Not defined>" and also under displayed the Notepad++ link for installation. This will allow the sources editor shall be installed in a conventional way and not in HMG installation sub-folders.
Please Pablo, post the routine that implements this idea.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 411 times
Been thanked: 120 times
Contact:

Post by esgici »

srvet_claudio wrote:...The improvements are small:...
Maybe small for developer, definitely great for users;
thank a lot :)

Viva HMG :D
Viva INTERNATIONAL HMG :D

User avatar
mol
Posts: 3495
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 289 times
Been thanked: 197 times
Contact:

Post by mol »

srvet_claudio wrote:
mol wrote:I'm trying to build form with new Unicode IDE and I got good work while project time and bad while working...
Hi Marek
Your code page is SET CODEPAGE TO UNICODE :?:
You compiled HMG library with the UNICODE option :?:
I'm afreaid I've mixed unicode and ansi.
By the way, I don't need unicode.
It's too much work and too few time to translate my huge project from ansi to unicode at this time...

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César »

srvet_claudio wrote:
Pablo César wrote: 4. In Tools/Preferences at module Editor option.

Since we are walking to the disassociation of the Notepad++ installed files under HMG installations and let user define his own preferred editor. I suggest that the initial value of editor_field comes after a routine (which I can contribute) to detect which is the default editor used by the user. If no found of any association with the PRG extension file (by checking at Windows registry), should be displayed as "<Not defined>" and also under displayed the Notepad++ link for installation. This will allow the sources editor shall be installed in a conventional way and not in HMG installation sub-folders.
Please Pablo, post the routine that implements this idea.
Sure !

Here it is:

Code: Select all

#include <hmg.ch>

Function Main
Local cEditor:=CheckExt("prg")
Local cNPP:=""

If Empty(cEditor)
   cNPP:=IsNotepadPlusPlus()
   If !Empty(cNPP)
      If MsgYesNo("Do you want to set Notepad++ as source default editor ?","Notepad++ is already installed")
	     cEditor:=cNPP
	  Endif
   Endif
Endif
If Empty(cEditor)
   MsgStop("Source editor <Not installed> !")
Else
   MsgInfo(cEditor,"Editor for prg files")
Endif
Return Nil

Function CheckExt(cExt)
Local cRet, nIni, nFin

cRet := RegistryRead("HKEY_CLASSES_ROOT\."+cExt+"\")
If cRet=Nil
   cRet:=""
Else
   If !(":\" $ cRet)
      cRet := RegistryRead("HKEY_CLASSES_ROOT\"+cRet+"\shell\open\command\")
   Endif
Endif
If ":\" $ cRet
   nIni:=HB_UAt('"',cRet)
   nFin:=HB_UAt('"',HB_USubStr(cRet,nIni+1),2)
   cRet:=HB_USubStr(cRet,nIni+1,nFin-1)
   If !File(cRet)
	   cRet:=""
   Endif
Endif
Return cRet

Function IsNotepadPlusPlus()
Local cRet:=""

cRet := RegistryRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Notepad++\UninstallString")
If !Empty(cRet)
   If File(cRet)
      cRet:=HB_USubStr(cRet,1,HB_UAt("\UNINSTALL.EXE",HMG_Upper(cRet)))+"notepad++.exe"
	  If !File(cRet)
	     cRet:=""
	  Endif
   Else
      cRet:=""
   Endif
Endif
Return cRet
It is in xBase. You can change CheckExt("prg") by other extension file, just to make a test if Notepad++ is installed as regular installation or not. I hope you find it useful.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
srvet_claudio
Posts: 2145
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 58 times
Been thanked: 250 times
Contact:

Post by srvet_claudio »

Pablo César wrote:It is in xBase. You can change CheckExt("prg") by other extension file, just to make a test if Notepad++ is installed as regular installation or not. I hope you find it useful.
Thanks
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

User avatar
srvet_claudio
Posts: 2145
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 58 times
Been thanked: 250 times
Contact:

Post by srvet_claudio »

Hello Friends,
they think of these questions:
srvet_claudio wrote:The IDE has had several versions since birth (identified with dates).
What do you consider should be appropriate the number of this version? :?:
1.0.3 is an appropriate number? :?:
Thanks.
The version 1.0.3 does not give a false impression that it is a new IDE ?

Please give me your opinion.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César »

srvet_claudio wrote:Hello Friends,
they think of these questions:
srvet_claudio wrote:The IDE has had several versions since birth (identified with dates).
What do you consider should be appropriate the number of this version? :?:
1.0.3 is an appropriate number? :?:
Thanks.
The version 1.0.3 does not give a false impression that it is a new IDE ?

Please give me your opinion.
ohh sorry I forgot to give my opinion about.
IMO, I think every tool and applications should have the version number. And do not think that is a problem to be different version IDE and HMG release package, however it is important for reference anyway.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
danielmaximiliano
Posts: 2471
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 579 times
Been thanked: 123 times
Contact:

Post by danielmaximiliano »

Pablo :
subo una imagen que comprueba los resultados del codigo que publico hace un rato.
2013-08-26 21_08_59-Editor for prg files.png
2013-08-26 21_08_59-Editor for prg files.png (20.33 KiB) Viewed 3646 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO

Post Reply