PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: johngbauer on May 30, 2006, 11:19:38 PM

Title: getting the backcolor from a cell in egrid32
Post by: johngbauer on May 30, 2006, 11:19:38 PM
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.
Title: getting the backcolor from a cell in egrid32
Post by: TechSupport on May 30, 2006, 11:30:32 PM
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
Title: getting the backcolor from a cell in egrid32
Post by: David Martin on May 31, 2006, 09:53:01 AM
Have looked into EG_GETCELLPROFILE?
Title: getting the backcolor from a cell in egrid32
Post by: Marc Van Cauwenberghe on May 31, 2006, 02:02:03 PM
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
Title: getting the backcolor from a cell in egrid32
Post by: johngbauer on June 03, 2006, 02:02:54 AM
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