Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 03 AUG 2005 11:58:45PM William Ng wrote:

How do u get the column position from an edit table control where the user click or dbl click on its header?

I know CLICKPOS to determine if header or not but how to get the column position?This edit table is for display purpose only so all the columns are protected and i have tried SELPOS and send messages but it just always give me back 1 even if i click on the second column.Is there any documentation on send messages to edit tables?

What does getnotifycol$ or 1108 means for send messages to edit tables?Any help would be much appreciated.


At 04 AUG 2005 10:18AM dsig _at_ sigafoos.org wrote:

this should do it ..

HandleId=Get_Property(CtrlEntId,HANDLE$)

Col=SendMessage(HandleId, DTM_GETNOTIFYCOL$, 0, 0) + 1

Row=SendMessage(HandleId, DTM_GETNOTIFYROW$, 0, 0) + 1

* are we at the header?

If Row=0 Then

  • ** okay you have the table HEADER

dsig


At 04 AUG 2005 10:27AM [notag][[/notag] wrote:

sorry forgot the equates

equ DTM_GETNOTIFYCOL$ to 1108

equ DTM_GETNOTIFYROW$ to 1107

dsig


At 04 AUG 2005 04:37PM Richard Bright wrote:

How about on CLICK event:

If Get_Property(CtrlEntID,'CLICKPOS')=1 then
  Selpos=Get_Property(CtrlEntID,'SELPOS')
  • Do some processing if Selpos is right column
End

Return 1

Richard Bright

BrightIdeas New Zealand


At 04 AUG 2005 09:25PM William Ng wrote:

I tried the send message but it always gives me 1.If all the columns is protected does it still works?


At 04 AUG 2005 09:49PM William Ng wrote:

The clickpos works.The selpos does not because all my columns are protected because its for enquiry purposes.It will always return 1.


At 04 AUG 2005 09:50PM William Ng wrote:

The oi popups works, why mine does not? where did i go wrong?


At 04 AUG 2005 10:10PM William Ng wrote:

Thanks, got it working already.

It always give me 1 because i uses the send_message instead of sendmessage.

I did not know there is another sendmessage.

Why is there 2?

I check the help file and it says send_message.Is the help file wrong?


At 04 AUG 2005 10:11PM William Ng wrote:

Thanks.

Got it working already.

I was using send_message instead of sendmessage.


At 04 AUG 2005 10:18PM William Ng wrote:

Where can i get the info or documentation of commands that the help dont include?


At 05 AUG 2005 03:10AM [email protected] wrote:

You are referring to the Windows SDK SendMessage. Documentation on this and all other SDK routines may be found at the Microsoft site.

[email protected]

The Sprezzatura Group Web Site

World Leaders in all things RevSoft

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/5e537d56177bcea8852570530015dc08.txt
  • Last modified: 2023/12/28 07:39
  • by 127.0.0.1