Solved TD-23459: No access to content of DataFields in a Toolbar called by Named Menus for Tables/Grids within TabBars

Post found bugs and possible workarounds.
Uwe van der Horst
Site Admin
Site Admin
Germany
Posts: 49
Joined: 05 Mar 2017, 14:21
Location: Wetter (Ruhr), Germany

TD-23459: No access to content of DataFields in a Toolbar called by Named Menus for Tables/Grids within TabBars

Post by Uwe van der Horst » 05 Apr 2017, 17:05

The value of a data field in a toolbar cannot be accessed from a Named Menu called by a Child Table or Grid that is part of a Tab Bar. No problems when Form Windows has no Tab Bar. Tested with TD 63 and TD 7 (Win 32). Work-aound: Use of Form Window variables abused as duplicates.
You do not have the required permissions to view the files attached to this post.
Best regards,
Uwe van der Horst
Advo-web GmbH

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 89
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Re: TD-23459: No access to content of Data Fields in a Toolbar called by Named Menus for Tables/Grids within TabBars

Post by Jeff Luther » 05 Apr 2017, 18:57

Looks like it's because the menu belongs to the form window. But hWndForm in the child TW's SAM_ContextMenu msg:

Code: Select all

On SAM_ContextMenu
	Call SalTrackPopupMenu( hWndForm , 'namedpopup1', TPM_CursorX | TPM_CursorY | TPM_CenterAlign, 0, 0 )
	! Return TRUE
is a window handle to the TW, and the TW doesn't own the menu. This call in bold also works; it returns the parent of the child TW, which is the form:

Call SalTrackPopupMenu( SalParentWindow( hWndForm ), 'namedpopup1', TPM_CursorX | TPM_CursorY | TPM_CenterAlign, 0, 0 )
Jeff Luther @ PC Design
Palm Springs, California
TD info. & samples: http://www.jeffluther.net/TD/

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

Re: TD-23459: No access to content of DataFields in a Toolbar called by Named Menus for Tables/Grids within TabBars [SOL

Post by Uwe van der Horst » 05 Apr 2017, 19:25

Thank you, Jeff. :oops:
Best regards,
Uwe van der Horst
Advo-web GmbH

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 89
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Re: TD-23459: No access to content of DataFields in a Toolbar called by Named Menus for Tables/Grids within TabBars [SOL

Post by Jeff Luther » 06 Apr 2017, 14:56

HTH, Uwe.
Jeff Luther @ PC Design
Palm Springs, California
TD info. & samples: http://www.jeffluther.net/TD/

Return to “Bug Reports”

Who is online

Users browsing this forum: Ccbot [Crawler] and 0 guests