trichview.com

trichview.support




Re: DBRVE


Return to index


Author

Message

Sergey Tkachenko

Posted: 11/14/2003 19:10:58


Create a constant larger than WM_USER:


const WM_SELECTFIRSTROWCOL = WM_USER+10;


Create form's method WMSelectFirstRowCol.


In form's class declaration:


procedure WMSelectFirstRowCol(var Msg: TMessage); message

WM_SELECTFIRSTROWCOL;


Implementation:


procedure TForm3.WMSelectFirstRowCol(var Msg: TMessage);

begin

  // your code for selecting cells is here

end;


In OnDblClick, call:

  PostMessage(Handle, WM_SELECTFIRSTROWCOL, 0, 0);


That's all.

Last two parameters of PostMessage can be used to pass values in

WMSelectFirstRowCol (they will be available as Msg.WParam and Msg.LParam)


>

> > Unfortunately, this code cannot be executed inside OnDblClick.

> > The solution is using PostMessage. If you need an example, I can create

> it.

>

> I would appreciate that.

>

> Regards

> Emil

>

>

>

>

>





Powered by ABC Amber Outlook Express Converter