Delphi IDE has no color control for Standard Components - delphi-ide

My Alexandria Delphi IDE has lost its color control for Standard Components.
I cannot set the Font color at design time for components like TLabel, but it's correctly applied at run time.
Non-standard components i.e. JvLabel seem to work at design time and run time.
Parent Font is False.
Have I screwed a setting somewhere?

From my point of view this is a new bug in the Designer of Delphi 11.
In Delphi 10.4.2 the color display of TLabel.Font.Color still worked correctly in the Designer.
I recommend creating an RSP in Embarcadero's Quality Central for this bug.
Update 19-Jan-23:
This is an already known problem of Delphi 11.X.
You can uncheck "Tools->Options->User Interface->Form Designer->mimic the system style" option as a workaround.

Related

forms appear poorly scaled at runtime

I have created a form in visual studio (vb.net winforms) and it looks great in designer however at runtime it appears extremely out of scale (on my computer only) - my computer is using resolution of 3840x2160 with DPI scaling of 250% - this is obviously the problem how do I make my application deal with this better?
I have tried using Autoscalemode, autosize, and autosizemode with the form only appearing more broken than it currently does.
Here is the appearance in designer:
Here is the appearance at runtime on my computer:
Is your application DPI Aware? Read this article for more info: https://msdn.microsoft.com/en-us/library/windows/desktop/dn469266(v=vs.85).aspx
Basically you want to add this to your app.manifest inside the <asmv1:assembly> block:
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>true</dpiAware>
</asmv3:windowsSettings>
</asmv3:application>
Make sure that you didn't change the default anchor property of the tools. Also make sure that you don't change location or size of the tools at runtime.

How to make WinForms application completely ignore any kind of DPI settings?

I have WinForms application written in VB .NET that "explodes" on non default DPI settings. This applications uses some ActiveX controls that just don't work with scaling.
I'm kindly asking you not to suggest me to rewrite it, move it to WPF and this kind of advices. I am fully aware that this application is bad, really bad. My job is just to make it "work".
Is there any way to make it so that application ignores completely any DPI setting? Any solution is good one as long as it works.
Right-click the executable -> Properties -> Compatibility -> Check "Disable display scaling on high DPI settings".
(Might be slighly different on Windows version other than 10.)
This did it for me for legacy applications that "explode".
Adding this to your manifest file should do the trick:
<asmv3:windowsSettings
xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>false</dpiAware>
</asmv3:windowsSettings>
Try setting AutoScaleMode to None for automatic scaling. You probably also have to 'scale' the font. This can be done by adding the following before InitializeComponent
Font = new Font(Font.Name, Font.Size * 96f / CreateGraphics().DpiX, Font.Style, Font.Unit, Font.GdiCharSet, Font.GdiVerticalFont);
I don't know how the hosted ActiveX control responds to these settings. Please let me know when you tried.

VB control styles change for unknown reason and cannot change back

For some reason while I program in Microsoft Visual Basic 2010 Express OR VS Express for Desktop my controls seem to change style for an unknown reason.
This screenshot is in the DESIGN part of my programming:
And here is when I actually run the program:
I don't understand how it can change like that, I've tried changed properties on all the controls, but they just keep changing to whatever style that is...
I can update with more screenshots if need be.
Thanks
Answer given via a comment:
Using Application.EnableVisualStyles() Fixes the whole thing.
Thanks to #Plutonix for the answer!

Visual Studio 2012 XAML Designer Vertical Split Can't Be Set As Default?

Is there only Horizontal Split as default and not Vertical Split? Again or my eyes are going bad? It was an issue in VS2008 and VS2010 when it was per-file basis so nothing has changed?
Yep there is currently no way of defaulting to a vertical split for the XAML designer in VS2012.
Like you mentioned the only way at this point is doing it per-file basis as these settings are saved together in your .suo file.
This applies to VS08 and VS10 or VS12...
If you do want to let microsoft know that you would like this to be a feature you can send them a request here
Here is the original thread about this issue.
Its funny though that their HTML designer does allow defaulting to vertical split..

Changing keyboard layout on application focus

As everybody knows the en-US Keyboard-layout is the best one for programming. So I'd like to use it in my IDEs. But since I live in a non-en-US country I need the de-CH layout for all other applications. Now I wonder if it is possible to set the layout depending to which application currently has the focus. If that is possible, can a human brain adapt to such a behaviour or is it just confusing?
cheers,
AC
The operating system is Windows 7 and the IDEs are VisualStudio and Netbeans
i thought about the same question some time ago, haven't fount an easy solution and so i changed the layout of may PC (where i do mostly programming) to en-US and left my Laptop on de-DE (i'm from germany) - after almost a week i changed back my PC to de-DE because i was confused ll the time...
you should probably mention your operating system and ides. afaik there's an option to make the keyboard layout application specific – so you set it once after starting up your ide, and when you switch windows the layout is also changed.
nevertheless, have a look at ergonomic/optimized layouts (like neo ;)
There is an option in both Windows and Linux to use a US layout with additional international characters. For instance, typing an ä will be yielded by pressing RAlt+q. The good thing about this is that it's the same combination for Windows and Linux.
I think you can configure it easily with built-in Windows settings.
In "Control Panel" - "Clock, language and Region" - "Language", you can enable "Enable different input methods for each application window" (the translation is approximated because I am using Spanish OS). I think that suffices.
I created my own customized keyboard layout with Microsoft Keyboard Layout Creator (MSKLC)
I used my current keyboard as base and modified only a few keys in order not to always twist my right thumb when I want to get curling bracktes {}
It works very well in combination with a short-cut for switching the keyboard layout. You can define such shortcut in your system language settings.