Author Topic: "Select Symbol" dialog keeps getting widers  (Read 2183 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: 2796
  • Hero Points: 347
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: 2796
  • Hero Points: 347
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!

Dennis

  • Senior Community Member
  • Posts: 3960
  • Hero Points: 517
Re: "Select Symbol" dialog keeps getting widers
« Reply #5 on: May 22, 2019, 02:37:31 PM »
I am checking in a fix for this for the next hot fix for 23.0.1 (or 23.0.2, whichever happens first).  The fix will have the "Select a tag" dialog restore its position and height as before, but the width will always be dynamic.