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 ColumnHeader missing Width property let #1575

Closed
fafalone opened this issue Jun 6, 2023 · 1 comment
Closed

ListView ColumnHeader missing Width property let #1575

fafalone opened this issue Jun 6, 2023 · 1 comment

Comments

@fafalone
Copy link
Collaborator

fafalone commented Jun 6, 2023

Describe the bug
It has the property get so you can retrieve the width, but both the 5.0 and 6.0 controls for VBx have a let to change the width, which tB currently does not.

To Reproduce

  1. New StdExe with WinNativeCommonCtls
  2. Add ListView
  3. Code:
Private Sub Form_Load() Handles Form.Load
    ListView1.View = lvwReport
    ListView1.ColumnHeaders.Add , , "Colum 0"
    ListView1.ColumnHeaders.Add , , "Colum 1"
    ListView1.ListItems.Add , , "Item 1"
    ListView1.ColumnHeaders(1).Width = 4200
End Sub

Expected behavior
Matching VBx by implementing.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10
  • twinBASIC compiler version: 0.15.324

Additional context
Original tlb:

[id(0x00000008), propget, helpstring("Returns/sets the width of an object."), helpcontext(0x000335e7)]
HRESULT Width([out, retval] single* pflWidth);
[id(0x00000008), propput, helpstring("Returns/sets the width of an object."), helpcontext(0x000335e7)]
HRESULT Width([in] single pflWidth);
@WaynePhillipsEA
Copy link
Collaborator

Fixed in BETA 332. 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