Author Topic: "Select Symbol" dialog keeps getting widers  (Read 149 times)

Kurt

  • Junior Community Member
  • Posts: 8
  • Hero Points: 0
"Select Symbol" dialog keeps getting widers
« on: April 10, 2019, 12:57:29 pm »
I just upgraded to SE 2018, and one thing I noticed when I press "Ctrl + ." to tag into a function is that the dialog which lets me select between .h and .cpp keeps getting larger, and I keep having to resize it.

Is there a fix for it?

Graeme

  • Senior Community Member
  • Posts: 2279
  • Hero Points: 296
Re: "Select Symbol" dialog keeps getting widers
« Reply #1 on: April 10, 2019, 11:01:33 pm »
That looks like a bug.  In the tag_select_match function in taggui.e, if you change the code to this, the problem appears to go away.  I removed SL_XY_WIDTH_HEIGHT from the list of masks.  I don't know if this will cause other problems so be prepared to revert the change if you try it.  Load the module using the "load module" command in the macro menu.


Code: [Select]
      match_id = select_tree(captions, match_ids, pictures, overlays,
                             null, tag_select_callback, null,
                             "Select Symbol",
                             SL_COLWIDTH|SL_SIZABLE|SL_USE_OVERLAYS,
                             "Name,File,Line,",
                             columnInfo,
                             true,
                             "Select Symbol dialog",
                             "find_tag"
                            );

Kurt

  • Junior Community Member
  • Posts: 8
  • Hero Points: 0
Re: "Select Symbol" dialog keeps getting widers
« Reply #2 on: April 11, 2019, 03:05:15 am »
Seems to work initially, but when I tag into a function with lots of parameters (hence, a longer width), the behavior comes back.

Graeme

  • Senior Community Member
  • Posts: 2279
  • Hero Points: 296
Re: "Select Symbol" dialog keeps getting widers
« Reply #3 on: April 11, 2019, 04:10:03 am »
You could try removing the "retrieve name" in the call i.e delete the argument "find_tag" so that retrieve name is null.

Kurt

  • Junior Community Member
  • Posts: 8
  • Hero Points: 0
Re: "Select Symbol" dialog keeps getting widers
« Reply #4 on: April 12, 2019, 12:00:45 am »
Sorry, Graeme.  It was my mistake.  I was editing the .e file in the Program Files folder directly, which requires Admin level, so the .ex wasn't being generated.  I've unloaded taggui.ex, copied taggui.e into a regular folder, edit it, and load that version, and now it works.

Seems to be working fine so far with few hours of usage.  Thanks!