Author Topic: Squished icons  (Read 663 times)

dunkers

  • Senior Community Member
  • Posts: 752
  • Hero Points: 36
Squished icons
« on: October 31, 2021, 10:17:21 am »
Just noticed my toolbar (customised) has flattened icons. The attached screencap shows V26 behind with V24.2 on top to show that the toolbar dimensions haven't changed.

I enabled the standard toolbar and the icons on that were correct (despite showing at the same time as my toolbar). I then disabled my toolbar and re-enabled it but the icons remain squished.


Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3618
  • Hero Points: 481
Re: Squished icons
« Reply #1 on: November 01, 2021, 12:13:28 pm »
Could you send your user.cfg.xml and userToolbars.xml from your Slickedit configuration directory (along with any supporting bitmaps I am going to need to reproduce the problem).

dunkers

  • Senior Community Member
  • Posts: 752
  • Hero Points: 36
Re: Squished icons
« Reply #2 on: November 01, 2021, 01:04:25 pm »
Uploaded to support@

The toolbar isn't anything special in the way of customised icons - it's just a shorter version of the standard toolbar with a couple of items from other toolbars, so uses the Slickedit icons.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3618
  • Hero Points: 481
Re: Squished icons
« Reply #3 on: January 12, 2022, 02:01:28 pm »
Sorry, it took me a while to circle back to this one.  I did not request enough data to reproduce the problem.  Could you zip up "*.e" from your 24.0.2 configuration directory?  (that is where the custom toolbar form definitions are)  And also what platform were you seeing this issue on?

dunkers

  • Senior Community Member
  • Posts: 752
  • Hero Points: 36
Re: Squished icons
« Reply #4 on: January 12, 2022, 03:19:34 pm »
No problem - I suspect there may be a few other issues with bigger  impact :)

I've uploaded to support using this topic number, dunkers.zip. Inside are:
e-24.0.2.zip - the .e files you asked for
e-26.0.0.zip - the current .e files for compare
e-25.0.2.zip - V25 .e files (V25 is OK, and V26 was upgraded from that)
MyMacros.zip - user .e not part of the SE distribution. Not all used in all versions.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3618
  • Hero Points: 481
Re: Squished icons
« Reply #5 on: January 12, 2022, 05:08:18 pm »
OK, reproduced.  This will be fun.

dunkers

  • Senior Community Member
  • Posts: 752
  • Hero Points: 36
Re: Squished icons
« Reply #6 on: January 12, 2022, 06:22:12 pm »
 :D

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3618
  • Hero Points: 481
Re: Squished icons
« Reply #7 on: January 12, 2022, 08:33:29 pm »
I checked in a hot fix.  The problem traced back to the old user-defined forms having an incorrect value for p_Nofstates.  Since these forms are loaded when the configuration is migrated, it is a bit late for the hot fix to really help you.

The best way for you to fix this issue (you do not really need the hot fix) is to open <config>/vusrobjs.e and replace "p_Nofstates=2" with "p_Nofstates=1" for all the icons in the user-defined toolbars.  Then run the macro as follows from the SlickEdit command line:

Code: [Select]
xcom <config>/vusrobjs.e
Then if you go to View > Toolbars and undock the toolbar(s) which is/are squished and then go there again to redock the toolbar; it should then display correctly.  It might be easier to just close and re-open the editor.  That should take care of it.

dunkers

  • Senior Community Member
  • Posts: 752
  • Hero Points: 36
Re: Squished icons
« Reply #8 on: January 12, 2022, 09:08:57 pm »
Perfect, thanks very much ;D