Author Topic: text_box autocomplete  (Read 3236 times)

warnerrs

  • Senior Community Member
  • Posts: 114
  • Hero Points: 4
text_box autocomplete
« on: November 14, 2014, 04:28:25 PM »
I'm attempting to use autocomplete in a form. I have a text_box where I intend the user the type a class name. So I've set the text_box's p_completion property to TAG_ARG.
Code: [Select]
   _text_box cExtends {
      p_auto_size=true;
      p_backcolor=0x80000005;
      p_border_style=BDS_FIXED_SINGLE;
      p_completion=TAG_ARG;
      p_forecolor=0x80000008;
      p_height=230;
      p_tab_index=8;
      p_tab_stop=true;
      p_text='ClassName';
      p_width=3058;
      p_x=1331;
      p_y=1350;
      p_eventtab=frm_uvm_class_wizard.cPackage;
      p_eventtab2=_ul2_textbox;
   }
This is listing all symbols from the tag database as completion suggestions. I'd like to limit the suggestions to just classes. Further more, when I enter something like "uvm_sequence" the suggestions look like this:
Quote
uvm_sequence(uvm_pkg:class)
uvm_sequence_base(uvm_pkg:class)
uvm_sequence_item(uvm_pkg:class)
uvm_sequence_lib_mode(uvm_pkg:typedef)
I want that list to look like:
Quote
uvm_sequence
uvm_sequence_base
uvm_sequence_item
And if I type "uvm_pkg::uvm_sequence" into the text box, there is no auto completion. In that case I'd like to see:
Quote
uvm_pkg::uvm_sequence
uvm_pkg::uvm_sequence_base
uvm_pkg::uvm_sequence_item
I think I kind of understand what's going on to cause the existing behavior, but I don't know how to change it. I guess I'm looking for the same kind of auto-completion that is going on inside the editor.

I tried CLASSNAME_ARG (which is undocumented), but the list was incomplete. It seemed to not support packages/namespaces or only searched the active project or something.

Thanks,
Ryan