PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Elias Montoya on February 16, 2010, 11:23:15 PM

Title: Egrid32 Issue with command.
Post by: Elias Montoya on February 16, 2010, 11:23:15 PM

Hello,

I am getting wrong results when using this code:

Call SendMessage(HWND_REPORTE_EGRID321, %EG_SETEDITLOCK, %TRUE, 0)

This command is supossed to lock the Grid so the contents cannot be modified at user level,
but the grid stays open for edition.

I tried the following code in a non-firefly example and it works as expected:

CALL SendMessage(HGRID1, %EG_SETEDITLOCK, %TRUE, 0)

Maybe the command is intercepted and discarded somehow?
Title: Re: Egrid32 Issue with command.
Post by: Paul Squires on February 16, 2010, 11:38:32 PM
Quote from: Elias Montoya on February 16, 2010, 11:23:15 PM
Maybe the command is intercepted and discarded somehow?
Nope. FireFly does not intercept SendMessage calls to controls. Must be something else.
Title: Re: Egrid32 Issue with command.
Post by: Brian Chirgwin on February 17, 2010, 08:42:08 AM
Elias,

I've tried a quick example and it is working.

If you want I can send the project and exe, but it is really just a form with EGRID and the sendmessage in the WM_create of the form.

Are you sure the Sendmessage is in a function being called?
Is the HWND to the correct grid control? Do you have more than one?

I can't think of anything else.

Brian
Title: Re: Egrid32 Issue with command.
Post by: Elias Montoya on February 18, 2010, 04:29:51 PM
 Well it is still happening. I dont know what is wrong.
I will check this problem later today. Thanx for the feedback.