SalTblSetRow ignores current FocusRow

Report TD 5.x and 6.x bugs and possible workarounds.
MWegner
Germany
Posts: 83
Joined: 11 Apr 2017, 07:39
Location: Germany

SalTblSetRow ignores current FocusRow

Post by MWegner » 20 May 2015, 13:00

Hey guys,

i have a problem with the SalTblSetRow function. I use this function to navigate with Buttons in my grid. However, if I set the FocusRow with my Mouse the next SalTblSetRow ignores this current Focus. (Alternative the Mouse seems to set the Focusrow but doesn't)

Steps to reproduce:
1. Start my reprocase
2. Click Button NEXT --> Focus is now in Row 1
3. Click on Row 6 --> Focus is now in Row 6
4. Click Button NEXT --> Focus is now in Row 2, should be in 7

I can "avoid" this problem when I use "Call SalTblSetFocusRow( grid1 , lParam )" in the On SAM_DoubleClick Event of the grid. However this is still a problem for me.

Thanks in advance.

Best regards
Martin

EDIT: Zip-File with content this time
You do not have the required permissions to view the files attached to this post.
Last edited by Anonymous on 21 May 2015, 13:03, edited 1 time in total.

Uwe van der Horst
Site Admin
Site Admin
Germany
Posts: 628
Joined: 05 Mar 2017, 14:21
Location: Wetter (Ruhr), Germany

Re: SalTblSetRow ignores current FocusRow

Post by Uwe van der Horst » 21 May 2015, 12:21

Hi Martin,

I cannot open your testcase. The zip file is empty.

Best regards,
Best regards,
Uwe van der Horst
stp.one

MWegner
Germany
Posts: 83
Joined: 11 Apr 2017, 07:39
Location: Germany

Re: SalTblSetRow ignores current FocusRow

Post by MWegner » 21 May 2015, 13:03

Hey Uwe,
thanks for the tip. It's a good idea to put the file in the zip.
You do not have the required permissions to view the files attached to this post.

Uwe van der Horst
Site Admin
Site Admin
Germany
Posts: 628
Joined: 05 Mar 2017, 14:21
Location: Wetter (Ruhr), Germany

Re: SalTblSetRow ignores current FocusRow

Post by Uwe van der Horst » 21 May 2015, 13:56

Yes, obviously there is a bug. After clicking the Row Header SalTblQueryFocus() gives wrong result. After clicking into the column it works. No problems with Child Table.

Work-around:

On SAM_RowHeaderClick
...Call SalTblSetFocusRow( grid1, lParam )
Best regards,
Uwe van der Horst
stp.one

MWegner
Germany
Posts: 83
Joined: 11 Apr 2017, 07:39
Location: Germany

Re: SalTblSetRow ignores current FocusRow

Post by MWegner » 21 May 2015, 14:24

I click in the rows (on the numbers) and it doesnt work for me. Is this working for you (multiple times)?

Uwe van der Horst
Site Admin
Site Admin
Germany
Posts: 628
Joined: 05 Mar 2017, 14:21
Location: Wetter (Ruhr), Germany

Re: SalTblSetRow ignores current FocusRow

Post by Uwe van der Horst » 21 May 2015, 15:16

MWegner wrote:I click in the rows (on the numbers) and it doesnt work for me. Is this working for you (multiple times)?
Yes. I'm using Team Developer 6.2 SP3 Update 2 (6.2.3 45008 UPD2). With older versions it doesn't work here, neither.
Best regards,
Uwe van der Horst
stp.one

MWegner
Germany
Posts: 83
Joined: 11 Apr 2017, 07:39
Location: Germany

Re: SalTblSetRow ignores current FocusRow

Post by MWegner » 21 May 2015, 15:19

Ah okay. I'm still using Version 6.2.3.44526 UPD1

Return to “Bug Reports”

Who is online

Users browsing this forum: [Ccbot] and 4 guests