getting the backcolor from a cell in egrid32

Started by johngbauer, May 30, 2006, 11:19:38 PM

Previous topic - Next topic

johngbauer

I am trying to get the backcolor of a cell in an egrid32 cell
this won't compile "undefined equate"
bg&=  %EG_GETCELLBACKCOLOR (1,1)

this compiles but gives the same value for forecolor and backcolor
    SendMessage HWND_FORM2_EGRID321,  %EG_INTERNALSELECTTL,2,2
    FF_Control_GetColor( HWND_FORM2_EGRID321, ForeColor&, BackColor&)

from reading past postsI thing it may be more complicated. Most of my experience has been with pbcc, so pb/win is new and firefly is even newer.  Any help would be appreciated.

TechSupport

I'm sure that Elias (the egrid author) will be able to answer your question. He visits this forum very often. You can also post over in his forum if you like: http://www.sweetheartgames.com/phpbb2/index.php

David Martin


Marc Van Cauwenberghe

Hello John,

on first look there seems to be a problem with the include file.
It has

%EG_GETBACKCOLOR           = %WM_USER + 37  ' Gets the back color of a cell, This dont use internal selection, CBWPARAM = X, CBLPARAM = Y  

but no %EG_GETCELLBACKCOLOR.

I will try to make an example to test it.

Marc

johngbauer

Also posted this with Egrid(per Paul's suggestion). The latest download zip file doesn't have the most current include file. Elias is looking into it, but gave me a workaround to keep me going.
I appreciate everyone's help.
John