Page 7 of 12

Re: HMG 3.2 (Stable)

Posted: Tue Dec 17, 2013 9:34 am
by tonton2
voila un exemple de SUBSTR dans "COMBOSEARCHGRID" ,il a l'air de fonctionner normalement
here is an example of SUBSTR in "COMBOSEARCHGRID", it seems to work normally

Code: Select all

function _HMG_CSG_C2SQL( Value )
local cValue := ""
local cdate := ""
if ( valtype(value) == "C" .or. valtype( value ) == "M" ) .and. len(alltrim(value)) > 0
   value := strtran(value, "'", "''" )
endif
do case
   case Valtype(Value) == "N"
      cValue := AllTrim(Str(Value))
   case Valtype(Value) == "D"

      if !Empty(Value)
         cdate := dtos(value)
          cValue := "'"+SUBSTR(cDate,1,4)+"-"+SUBSTR(cDate,5,2)+"-"+SUBSTR(cDate,7,2)+"'"
      else
         cValue := "''"
      endif
   case Valtype(Value) $ "CM"
      IF Empty( Value)
         cValue="''"
      ELSE
         cValue := "'" + value + "'"
      ENDIF
   case Valtype(Value) == "L"
      cValue := AllTrim(Str(iif(Value == .F., 0, 1)))
   otherwise
      cValue := "''"       // NOTE: Here we lose values we cannot convert
endcase
return cValue
may be I did not understand the real problem :?:

Re: HMG 3.2 (Stable)

Posted: Mon Dec 23, 2013 5:42 am
by Rathinagiri
Sorry friends,

I was on a business tour, an official tour and a personal tour continuously for the past one month. I have to catch up with the various posts. I am happy that there are hundreds of posts to follow. :)

Re: HMG 3.2 (Stable)

Posted: Mon Dec 23, 2013 7:58 am
by CalScot
Welcome back!
I hope that you were able to enjoy every part of your trip.
Regards,
CalScot

Re: HMG 3.2 (Stable)

Posted: Wed Jan 22, 2014 11:05 pm
by srvet_claudio
Hi All,
this is a patch for HMG:

1) unzip HMG.3.2_patch2.rar file in folder c:\hmg.3.2\

2) execute c:\hmg.3.2\BuildLib.bat

See demo: C:\hmg.3.2\SAMPLES\Controls\RichEditBox

Code: Select all

1) The documentation was rearranged (e.g. DISABLE/ENABLE EVENTS, CREATE EVENTS and READ KEYBOARD FUNCTIONS is moved to Advanced topic)

2) New Features (see doc):

***************
* RICHEDITBOX
***************

New Properties:
---------------
FontName
FontSize
FontBold
FontItalic
FontUnderline
FontStrikeOut
FontColor
FontBackColor
FontScript
Link
GetClickLinkRange
GetClickLinkText
RTFTextMode
AutoURLDetect
Zoom
SelectRange
CaretPos
Value
ViewRect
GetSelectText
GetTextLength
GetTextRange
GetPosChar
AddText
AddTextAndSelect
CanPaste
CanUndo
CanRedo
BackGroundColor
ParaAlignment
ParaNumbering
ParaNumberingStyle
ParaNumberingStart
ParaOffset
ParaLineSpacing
ParaIndent
FindText
ReplaceText
ReplaceAllText


New Methods:
-------------
SelectAll
UnSelectAll
SelCopy
SelPaste
SelCut
SelClear
Undo
Redo
ClearUndoBuffer
RTFLoadFile
RTFSaveFile
RTFPrint


New at definition:
------------------
NOHSCROLL
NOVSCROLL
ON SELECT
ON LINK
ON VSCROLL


******************
* SELECT PRINTER
******************

OpenPrinterGetDC()
OpenPrinterGetPageDC()
IsPrintPageMetaFile()
OpenPrinterGetPageWidth()
OpenPrinterGetPageHeight()


********************
* DEFINE WINDOW
********************

<FormName>.Handle
<FormName>.Index
<FormName>.IsMinimized
<FormName>.IsMaximized
<FormName>.ClientAreaWidth
<FormName>.ClientAreaHeight



*****************
* New Functions
*****************
    - FindTextDialog
    - ReplaceTextDialog
    - HMG_LoadResourceRawFile ( cFileName, cTypeResource | nTypeResourceID ) --> cData
    - GetFontList ( [ hDC ] , [ cFontFamilyName ] , [ nCharSet ] , [ nPitch ] , [ nFontType ] , [ lSortCaseSensitive ] , [ @aFontName ] )
    - System.EmptyClipboard

********************
* Enanced Function
********************
    - GetColor ( [ aDefaultColor ], [ @aCustomColors ], [ lFullOpenBox ] )

Re: HMG 3.2 (Stable)

Posted: Wed Jan 22, 2014 11:14 pm
by danielmaximiliano
Gracias Claudio por tu trabajo con HMG .

Re: HMG 3.2 (Stable)

Posted: Wed Jan 22, 2014 11:38 pm
by Javier Tovar
Gracias Dr. Claudio por su dedicación a HMG! :D

Saludos

Re: HMG 3.2 (Stable)

Posted: Thu Jan 23, 2014 10:45 am
by esgici
srvet_claudio wrote: this is a patch for HMG:
Muchas Gracias Dr. :!:

Viva HMG :D

Re: HMG 3.2 (Stable)

Posted: Thu Jan 23, 2014 9:35 pm
by Mario Mansilla
Hola :
He bajado el nuevo patch y recompilado un proyecto que estoy realizando y a su vez mi avast antivirus al actualizarse me acusa el archivo ld.exe de la carpeta mingw/bin de la distribucion con el virus WIN:EVO-GEN .
Me da opciones de acusar falso positivo o bien ingresarlo como exclusion .
Por supuesto no me deja crear el ejecutable .
Alguien que use avast le sucede lo mismo . :(
Saludos
Mario Mansilla

Hello:
I downloaded the new patch and recompiled a project I'm already making my turn to update avast antivirus accuses me ld.exe file mingw / bin folder of the distribution with the virus WIN: EVO-GEN.
It gives me options to acknowledge or submit false positive as exclusion.
Of course not let me create the executable
Someone using avast same thing happens. : (
regards
Mario Mansilla

HMG 3.2 (Stable)

Posted: Fri Jan 24, 2014 5:01 pm
by Pablo César
Mario Mansilla wrote:Alguien que use avast le sucede lo mismo . :(
Hola Mario, yo uso Avast y no tuve problemas.

Gracias, Claudio por los nuevos recursos en el RichEditBox.

Re: HMG 3.2 (Stable)

Posted: Sat Jan 25, 2014 12:32 am
by andyglezl
Hola, estoy compilando con esta nueva version
y me despliega que no encuentra algunas funciones.
Ya ejecute BuildLib.bat, BuildAllLib.bat, en ANSI, en UNICODE, aplique
los "HMG.3.2Patch1.rar", "HMG.3.2Patch2.rar" y nada,
me sigue dando el mismo mensaje.
Alguna idea ?
----------------------------------------------------------------------
Hi, I'm compiling with this new version
and displays that I can not find some functions.
Now run BuildLib.bat, BuildAllLib.bat in ANSI, in UNICODE, apply
the "HMG.3.2Patch1.rar", "HMG.3.2Patch2.rar" and nothing,
still gives me the same message.
Any idea?