Closed landroni closed 10 years ago
For what it's worth, I learned how to replicate the Gtk completion mechanism:
substr(u_x, 1, nchar(val)) == val & grepl(val, u_x, fixed=TRUE)
But my other questions stand:
cb
signal when a completion is available? I can't say for sure. I have a note in the file https://github.com/jverzani/gWidgets2RGtk2/blob/f6183e7bb4f695241377a39f7e743b66e373af2e/R/gcombobox.R#L140 that indicates I am working around something. Further down that file is the function add_completion
. Perhaps the arguments passed along are different? I don't really have time to check right now.
I'm closing this for now. I seem to be able to work around with my ad-hoc searching method, and right now this approach works.
I'm having some trouble with the
gcombobox(..., use_completion=TRUE)
completion mechanism. Consider:Does
cb
signal when a completion is available (i.e. saya
is entered and the pop-up completion menu is activated) or not (i.e. sayasdf
is entered and the pop-up completion menu is NOT visible)?Moreover, I'm unable to replicate the Gtk completion mechanism using
grepl()
. Is there a good reason to have two different completion mechanisms forgcomboboxgroup()
search boxes andgcombobox(..., use_completion=TRUE)
ingfilter.R
?