Egrid32 Issue with command.

Started by Elias Montoya, February 16, 2010, 11:23:15 PM

Previous topic - Next topic

Elias Montoya


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?
Win7, iMac x64 Retina display 5K, i7-5820K 4.4 ghz, 32GB RAM, All updates applied. - Firefly 3.70.

Paul Squires

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.
Paul Squires
PlanetSquires Software

Brian Chirgwin

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

Elias Montoya

 Well it is still happening. I dont know what is wrong.
I will check this problem later today. Thanx for the feedback.
Win7, iMac x64 Retina display 5K, i7-5820K 4.4 ghz, 32GB RAM, All updates applied. - Firefly 3.70.