RAD Studio 10.2.2 Annoying New Features. Help? – Forum – Embarcadero Community
Posted by jpluimers on 2018/07/24
Does anybody know a shorter, more permanent solution for [WayBack] RAD Studio 10.2.2 Annoying New Features. Help? – Forum – Embarcadero Community.
Especially the first one is very important to me.
Ever since Delphi introduced IDE layouts, it would remember the last one selected. With Delphi 10.2.2 Tokyo not so any more: it ALWAYS starts with an imposed “Startup Layout”. If you delete it, it re-appears.
I have a carefully named set of layouts that depends on the monitors I am using.
The workaround – every time I switch monitors, at least a few times a day, especially when moving between places, for instance for meetings – is this:
- Start Delphi 10.2.2 Tokyo
- Select the layout for that monitor
- Save it as “Startup layout”
Then each time I tweak a layout, I have to remember to save it both as “Startup layout” and as the actual named layout.
The really dumb thing is that RSP-20138 Can not define default Startup layout is classified as
“Jira-Quality Sync Service added a comment – 29/May/18 2:50 AM
Issue is reclassified as ‘New Feature'”
Via [WayBack1, WayBack2] So Embarcadero broke the “Default layout” (now always enforces a new “Standard Layout”) upon IDE startup in 10.2 Tokyo, and commented on the bug report … – Jeroen Wiert Pluimers – Google+ which has quite a few nice comments and links, including:
- [RSP-19560] Closing and Re-opening a project ignores the custom desktop layout – Embarcadero Technologies which is a different issue for which GExperts has a fix by Achim Kalwa in [WayBack] …/gexperts/code/2159/tree//trunk/Source/Framework/GX_EditorChangeServices.pas
- [WayBack] New in 10.2.2: Welcome Page and Startup improvements – Community Blogs – Embarcadero Community somebody actually thought this would be a neat feature for an everyday workhorse.
- [WayBack] Meine Vorstellung einer Willkommens-Seite – IT-Consulting d.wolf with a much nicer Welcome Page:
–jeroen
PS2 (found after the below PS): it has been implemented in Gexperts under the define STARTUP_LAYOUT_FIX_ENABLED which is enabled for Delphi 10.2 Tokyo:
- [WayBack] +Thomas Mueller is there a feature in GExperts where you can set maximum design time contraints for forms? – Jeroen Wiert Pluimers – Google+
+Daniela Osterhagen has just pointed out to me, that there was already code from +Achim Kalwa in GX_EditorChangeServices, that does this. It is enabled / disabled with the STARTUP_LAYOUT_FIX_ENABLED conditional define, so it should automatically be enabled on Delphi 10.2. (She seemed a bit pissed because she had already implemented it again somewhere else and sent me patches. ;-) )
- [WayBack] GExperts / Mailing Lists: [GExperts-Checkins] SF.net SVN: gexperts:[2159] trunk/Source/Framework/ GX_EditorChangeServices.pas ———– Fix for Delphi 10.2 bug RSP-19560, modified patch from Achim Kalwa
- [WayBack] GExperts / Code / Commit [r2159]: Fix for Delphi 10.2 bug RSP-19560, modified patch from Achim Kalwa
PS: on [WayBack] Does anybody know a shorter, more permanent solution for [WayBack] RAD Studio 10.2.2 Annoying New Features. Help? – Forum – Embarcadero Community. Espec… – Jeroen Wiert Pluimers – Google+, Thomas Mueller discusses a potential fix in GExperts:
he last one you selected is stored in
HKCU\Software\Embarcadero\BDS\19.0\Session\DesktopName
(Just looked it up).
So you could use some batch magic to read that and then overwrite the “Startyp Layout” with that one.…
Another option would be to add the code to GExperts. It is started early enough to read the correct value from the registry and since it already has a delayed initialization in
TGExperts.DoAfterIDEInitialized
it can then change the desktop back to what is should be:type TComboBoxHack = class(TComboBox) end; procedure TGExperts.ForceDesktop; var AppBuilder: TForm; cbDesktop: TComboBoxHack; begin AppBuilder := TForm(Application.FindComponent('AppBuilder')); if not Assigned(AppBuilder) then Exit; cbDesktop := TComboBoxHack(AppBuilder.FindComponent('cbDesktop')); if not Assigned(cbDesktop) then Exit; cbDesktop.Text := FLastDesktopName; //<-- this was read from the registry cbDesktop.Click; end;Works fine in my test. But this does not overwrite the .dst file but instead selects the “correct” desktop. This has the advantage of not overwriting the file but the disadvantage that closing a project will switch back to the Startup Layout.
KMorwath said
The whole idea of a “Welcome page” is stupid – maybe show it the first time a product is run, then stop bothering users with information usually useless – put them on your web site, not inside the IDE, that’s not the right place for your marketing efforts. Also, trying to enforce marketing – crippling or removing functionalities, like in this case – upon users is one of the most annoying things you can do, especially when the user has paid several thousand dollars for the “privilege” of using your product.
Ned Daniels said
New Feature? NEW FEATURE?!? So how about removing Syntax Highlighting and calling THATa New Feature?
jpluimers said
(:
They’d better remove the error insight.