Page 1 of 1
AutoComplete with filter
Posted: Tue Jan 29, 2013 12:26 pm
by A.D.
Hi there !
Could the AutoCompletation have the feature to show only the constants which belong to the current command? Maybe it means much work but
i think it would be worth doing it.
Greets
A.D.
Re: AutoComplete with filter
Posted: Tue Jan 29, 2013 5:09 pm
by skywalk
Re: AutoComplete with filter
Posted: Tue Jan 29, 2013 8:09 pm
by Josh
This idea i posted two years ago
http://www.purebasic.fr/english/viewtop ... =3&t=42480
For my own procedures and interfaces i use the the following workaround:
Code: Select all
Macro bEnum (Dummy) : b : EndMacro
Macro wEnum (Dummy) : w : EndMacro
Macro lEnum (Dummy) : l : EndMacro
Macro qEnum (Dummy) : q : EndMacro
Macro iEnum (Dummy) : i : EndMacro
Macro sEnum (Dummy) : s : EndMacro
Enumeration
#xyz_test1
#xyz_test2
#xyz_test3
EndEnumeration
Procedure ProcTest (Par1.iEnum(#xyz_))
;............
EndProcedure
ProcTest (...
Especially when i use pbi-files I often don't know which constants can be set. So I write a enum, where all constants start with specific characters. When i call the procedure, I see in the last line of the ide, which constants can be set.
Re: AutoComplete with filter
Posted: Wed Jan 30, 2013 9:38 am
by Danilo
Before adding a filter, I would like to resize the autocomplete popup window, as it's way too small in width.
Re: AutoComplete with filter
Posted: Wed Jan 30, 2013 11:05 am
by c4s
Danilo wrote:I would like to resize the autocomplete popup window, as it's way too small in width.
"Preferences" -> "Auto Complete" -> "Box width"

Re: AutoComplete with filter
Posted: Wed Jan 30, 2013 7:56 pm
by Danilo
c4s wrote:Danilo wrote:I would like to resize the autocomplete popup window, as it's way too small in width.
"Preferences" -> "Auto Complete" -> "Box width"

Thank you very much!
I tried to resize the popup window with the mouse. Would be more comfortable IMO, but it's OK now.