Page 1 of 1

Help /Ayuda sobre GRID_SetBkImage

Posted: Fri Nov 29, 2013 9:45 pm
by Javier Tovar
Hola a todos

Estaba ocupando la siguiente función y ahora al compilar me dice que no la encuentra, alguien me podría decir en donde la encuentro o que tengo que poner para encontrarla?

Uso

Code: Select all

 HMG.3.1.5
En mi archivo tengo esto declarado:

Code: Select all

#include "hmg.ch"
#include "hfcl.ch"
#include "Dbstruct.ch"
#include "Fileio.ch"

La funcion es:

Code: Select all

GRID_SetBkImage ("Browse_1", "PantFiltros", _GRID_SETBKIMAGE_FILL_, ccPaisajes+"Paisaje1.bmp", 0, 0)
También me dice que ya esta duplicada la función:

Code: Select all

`ISEXERUNNING'
Esta función ya esta incluida en alguna biblioteca de HMG? porque solo la tengo declarada una vez.



//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Hello everyone

He was taking the next function to compile and now tells me not found, someone could tell me where the meeting or that I have to put in to find it?

Use

Code: Select all

HMG.3.1.5 
In my file I have this declared:

Code: Select all

# include "hmg.ch"
# include "hfcl.ch"
# include "Dbstruct.ch"

The function is:

Code: Select all

GRID_SetBkImage ("Browse_1" "PantFiltros" _GRID_SETBKIMAGE_FILL_, ccPaisajes + "Paisaje1.bmp", 0, 0)

It also tells me that already duplicated the function:

Code: Select all

 `ISEXERUNNING '
This feature is already included in any library HMG? because I only declared once.

El error que me sale al compilar es:
The error I get when compiling is:

Code: Select all

Harbour 3.2.0dev (r1307180024)
Copyright (c) 1999-2013, http://harbour-project.org/
C:/hmg.3.1.5/lib/libhmg.a(c_winapimisc.o):c_winapimisc.c:(.text+0xf60): multiple definition of `HB_FUN_ISEXERUNNING'
C:/Users/MAQUIN~1/AppData/Local/Temp/hbmk_h368y2.dir/Sistema.o:Sistema.c:(.text+0x80): first defined here
C:/Users/MAQUIN~1/AppData/Local/Temp/hbmk_h368y2.dir/Sistema.o:Sistema.c:(.data+0x1158): undefined reference to `HB_FUN_GRID_SETBKIMAGE'
Gracias por su ayuda y las posibles soluciones.
Un Abrazo!

Thanks for your help and possible solutions.
A Hug!

Re: Help /Ayuda sobre GRID_SetBkImage

Posted: Fri Nov 29, 2013 9:54 pm
by Javier Tovar
Hola.

Aclaro que en HMG.3.0.46 no tengo problemas, el problema es al compilarlo con HMG.3.1.5.

Saludos

//////////////////////////////////////////////////////////////////////////////////////////////////////////////



Hello.

I clarify that I have no problem HMG.3.0.46, the problem is to compile with HMG.3.1.5.

regards

Re: Help /Ayuda sobre GRID_SetBkImage

Posted: Sat Nov 30, 2013 7:26 pm
by Javier Tovar
Hola

Seguire buscando una solución :cry:

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Hello

I will keep looking for a solution :cry:

Re: Help /Ayuda sobre GRID_SetBkImage

Posted: Sat Nov 30, 2013 9:42 pm
by danielmaximiliano
Hola -Javier :

* GRID_SetBkImage ---> Set background image in Grid
pertenece a HFCL

Code: Select all

C:\hmg.3.0.46\hfcl\Source\GRIDEX.prg
y su demo :

Code: Select all

C:\hmg.3.0.46\hfcl\Samples\GridEx\demo.prg
y el procedimiento es este :

Code: Select all

PROCEDURE GRID_SetBkImage (cControlName, cParentForm, nAction, cBMPFileName, yOffset, xOffset)
   IF Valtype (cParentForm) == "U"
      cParentForm := ThisWindow.Name
   ENDIF	
   // LISTVIEW_SETBKIMAGE and BMP_LOAD_FILE are Low-level functions in C (see the end of this file)
   LISTVIEW_SETBKIMAGE (GetControlHandle (cControlName, cParentForm), BMP_LOAD_FILE (cBMPFileName), xOffset, yOffset, nAction)
RETURN
creo que si colocas esta porcion de codigo "puede funcionar" dentro de HMG.3.1.5test ya que este mismo no esta incluido en la nueva version de HMG. solo Claudio Soto diria que paso o si se reemplazo con otras Funciones/Procedimiento.

Re: Help /Ayuda sobre GRID_SetBkImage

Posted: Sat Nov 30, 2013 10:16 pm
by esgici
danielmaximiliano wrote:..Claudio Soto would say just happened or is replaced with other Functions / Procedures.
Me too, I will wait :?

TIA :D

Re: Help /Ayuda sobre GRID_SetBkImage

Posted: Sat Nov 30, 2013 10:23 pm
by Javier Tovar
GRACIAS DANIEL

Ya estuve escudriñando y si, la nueva función en HMG3.1.5 es:

Code: Select all

_GridEx_SetBkImage ('Browse_1', 'Win_Comp', GRID_SETBKIMAGE_TILE, ccPaisajes+'Comppedi.bmp', 0, 0))
Y las nuevas constantes son:

Code: Select all

// CONSTANTS -->  _GridEx_SetBkImage (nAction)
**********************************************************************************
#define GRID_SETBKIMAGE_NONE        0
#define GRID_SETBKIMAGE_NORMAL      1
#define GRID_SETBKIMAGE_TILE        2
#define GRID_SETBKIMAGE_WATERMARK   3
**********************************************************************************
Y no hay que agregar nada, solo poner #include "hmg.ch", ya que ahi ya estan incluidas en "i_grid.ch"

Toda la tarde de ayer y toda la mañana, pero lo encontre.

Mil gracias de antemano a todos y en especial a ti Daniel.

Re: Help /Ayuda sobre GRID_SetBkImage

Posted: Sat Nov 30, 2013 10:32 pm
by esgici
Since I was searching and if the new function is HMG3.1.5:
As name indicated this is an internal function :?

And than were are GirdEx\demo.prg and handy functions included in :?

TIA :D

Re: Help /Ayuda sobre GRID_SetBkImage

Posted: Sat Nov 30, 2013 10:58 pm
by srvet_claudio
In HMG 3.1.3 and later is:

Code: Select all

<ParentWindowName>.<GridControlName>.BackGroundImage ( nAction, cPicture, nRow, nCol )
      nAction = GRID_SETBKIMAGE_NONE | GRID_SETBKIMAGE_NORMAL | GRID_SETBKIMAGE_TILE | GRID_SETBKIMAGE_WATERMARK
See doc in:
C:/hmg.3.1.5/doc/data/HMG_UNICODE_DOC/Update_HMG_Unicode.htm