Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListView (WinNative) columnclick doesn't fire if control is in Frame or SSTab #1591

Closed
ja-rpms opened this issue Jun 17, 2023 · 2 comments
Closed

Comments

@ja-rpms
Copy link

ja-rpms commented Jun 17, 2023

Describe the bug
A WinNative Listview control inside a frame control (WinNative) or SSTab control (VBx) does not fire the columnheader click event.

To Reproduce

  1. Create a TB form and put a WinNative Listview on the form, a frame on the form, and another WinNative Listview inside the frame.
  2. Write code in the Form Load Event to add column headers to each of the two Listviews - sample below.

ListView1.GridLines = True
ListView1.BorderStyle = ccFixedSingle
ListView1.ColumnHeaders.Add(, "string,Initials", "Initials ^", dblColWidth)
ListView1.ColumnHeaders(1).Tag = "Ascending"
ListView1.ColumnHeaders.Add(, "date,DOB", "Date of Birth", dblColWidth)
ListView1.ColumnHeaders.Add(, "double,NetWorth", "Net Worth", dblColWidth, 1)

  1. Add a MsgBox("Clicked!") line to each Listview's ColumnClicked event.
  2. Run the form and click any column header in each listview. The listview on the form will show the message box. The listview within the frame or SSTab will not display the messagebox.

Expected behavior
Columnclick events should fire whether or not the listview control is in another container within the form.

Screenshots

Desktop (please complete the following information):

  • OS: Windows 11 Pro 22H2 (frame issue); and
  • OS: Windows 7 Professional Version 6.1Build 7601 Service Pack 1 (SSTab issue)
  • twinBASIC compiler version 0.15.326 for both

Additional context
Apologies if this is related to 706 (not all controls fully implemented, last edited Octl '22) or 1188 (Frame -> Designer Properties -> Right to Left) but it seemed to me to be an unknown issue.

@WaynePhillipsEA
Copy link
Collaborator

This is fixed for Frame and PcitureBox containers in BETA 336. Not yet fixed for Ax control containers.

@WaynePhillipsEA
Copy link
Collaborator

Fixed in BETA 338. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants