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

table error on windows10 #369

Open
qktrzrj opened this issue Oct 10, 2019 · 3 comments · May be fixed by andlabs/libui#484
Open

table error on windows10 #369

qktrzrj opened this issue Oct 10, 2019 · 3 comments · May be fixed by andlabs/libui#484

Comments

@qktrzrj
Copy link

qktrzrj commented Oct 10, 2019

when I insert one line with rownum 0,the table auto insert next line...

@andlabs
Copy link
Owner

andlabs commented Oct 11, 2019

Can you please post code?

@qktrzrj
Copy link
Author

qktrzrj commented Oct 11, 2019

thanks, and how can I set size for table column?

@qktrzrj
Copy link
Author

qktrzrj commented Oct 11, 2019

and I need to select dir ,but I can not find the func , only openfile?

pftbest pushed a commit to pftbest/libui that referenced this issue Feb 5, 2020
…ad of 1.

When LVM_INSERTITEM is called after we updated LVM_SETITEMCOUNT,
the actual count will be increased by one causing one extra item
to appear in the table and loading data from the model.
This extra item is invisible at first because it doesn't get painted but
you can click on it to confirm that it is actually there.

To fix this problem we need to call INSERTITEM first and
then update the ITEMCOUNT.

Fixes andlabs#416
Fixes andlabs/ui#369

cc @bcampbell
r? @andlabs
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

Successfully merging a pull request may close this issue.

2 participants