Help /Ayuda sobre GRID_SetBkImage

HMG en Español

Moderator: Rathinagiri

Post Reply
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Help /Ayuda sobre GRID_SetBkImage

Post 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!
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: Help /Ayuda sobre GRID_SetBkImage

Post 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
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: Help /Ayuda sobre GRID_SetBkImage

Post by Javier Tovar »

Hola

Seguire buscando una solución :cry:

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

Hello

I will keep looking for a solution :cry:
User avatar
danielmaximiliano
Posts: 2763
Joined: Fri Apr 09, 2010 4:53 pm
DBs Used: DBF
Location: Argentina
Contact:

Re: Help /Ayuda sobre GRID_SetBkImage

Post 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.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Help /Ayuda sobre GRID_SetBkImage

Post by esgici »

danielmaximiliano wrote:..Claudio Soto would say just happened or is replaced with other Functions / Procedures.
Me too, I will wait :?

TIA :D
Viva INTERNATIONAL HMG :D
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: Help /Ayuda sobre GRID_SetBkImage

Post 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.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Help /Ayuda sobre GRID_SetBkImage

Post 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
Viva INTERNATIONAL HMG :D
User avatar
srvet_claudio
Posts: 2224
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: Help /Ayuda sobre GRID_SetBkImage

Post 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
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
Post Reply