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

SynCompletionProposal Active Elements #201

Open
8Loading8 opened this issue Sep 25, 2023 · 8 comments
Open

SynCompletionProposal Active Elements #201

8Loading8 opened this issue Sep 25, 2023 · 8 comments

Comments

@8Loading8
Copy link

lol

Hi. Is there any way to find out which SynCompletionProposal elements are currently being displayed and how many?

@PTlaowai
Copy link

Maybe it's FLinesInWindow in SynCompletionProposal.pas?

@8Loading8
Copy link
Author

FLinesInWindow in SynCompletionProposal.pas in private type and IntToStr(SynCompletionProposal.FLinesInWindow); return error

@PTlaowai
Copy link

PTlaowai commented Oct 8, 2023

Maybe try moving FLinesInWindow to public type?
Then you could use inttostr(SynCompletionProposal1.Form.FLinesInWindow)
Also, SynCompletionProposal1.Form.ItemList should return you a list of the current strings in the form.

@8Loading8
Copy link
Author

Work IntToStr(SynCompletionProposal.Form.FLinesInWindow).
But displays the number of lines of the form, not the number of lines with text
By default, it always gives 12
If you expand the form, the value changes
This is not what I need

@PTlaowai
Copy link

IntToStr(SynCompletionProposal1.Form.ItemList.count) should work.

@8Loading8
Copy link
Author

8Loading8 commented Oct 16, 2023

IntToStr(SynCompletionProposal1.Form.ItemList.count) should work.

Outputs the total number all
Not the displayed

Need displayed lines

lol

@PTlaowai
Copy link

I tested this one and it works, BUT only after the list has "dropped" for the user to see...

IntToStr(SynCompletionProposal1.Form.AssignedList.Count);

@8Loading8
Copy link
Author

I tested this one and it works, BUT only after the list has "dropped" for the user to see...

IntToStr(SynCompletionProposal1.Form.AssignedList.Count);

Works. 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