2

The icons on the View toolbar no longer work.
If I click them they change color but no dialog opens, or the visibility of non-visual components doesn't switch.

enter image description here

This is Delphi 10.4 Update 1. IIRC it did not happen with the update, but later.
I tried dragging it around, hiding it, in combination with 'Save Desktop', reboots, all without success.

Other info:

  • It also happens in brand new Win32 project (I only do Win32)
  • OS is Win10
  • It's not specific to a form/unit
  • No plugins installed

Any ideas how to give it life again?

Jan Doggen
  • 8,799
  • 13
  • 70
  • 144
  • 1
    Does the unit you're currently working on go with a form? If so, is `{R *.dfm}` in the code? If not, the IDE doesn't know that there's a form/unit to switch to and from, and the buttons wouldn't be enabled. It's difficult with the new IDE appearance to tell when buttons are enabled or not, because some of them are poorly designed. Do you have the same problem with a new, empty VCL forms application? – Ken White Oct 14 '20 at 16:55

2 Answers2

4

This is the trick to fix the issue:

  • Right-click on the toolbar and choose Customize.... Go to the Commands tab
  • Drag those four icons that don't work from the toolbar into the Commands window. Remember which they are (maybe make a screenshot first)
    (They were already there and dragging them off the toolbar did not change anything)
  • Drag them back from the Commands window onto the toolbar
Jan Doggen
  • 8,799
  • 13
  • 70
  • 144
  • It;'s remarkable that I have to search back for my own SO post because it happened again two years later (Now Delphi Alexandria 11) – Jan Doggen Feb 10 '23 at 09:05
1

I have solved the problem by:

Toolbar (Right-Click) > Customize > View checkBox (The last one) Then click Reset button on the top right

enter image description here

Jan Doggen
  • 8,799
  • 13
  • 70
  • 144