Delphi TWebBrowser: non-functional scrollbars on Windows 8 - delphi

I'm trying to show normal scrollbars on a Delphi TWebBrowser running on Windows 8.
A TWebBrowser scrollbar on Windows 8 appears this way and they are not usable (it's not draggable a there isn't no arrows):
This problem appears only on Windows 8 and 8.1 when TWebNrowser is showing a responsive website.
Is there any solution to have the normal twebbrowser scrollbar?
Many thanks...

Related

C++ Builder 10.2 how to support Windows 10 App Mode

I'm using C++ Builder 10.2 to create some small apps that will be ran on Windows 10.
I would like to support the Windows 10 Theme "app mode" Light and Dark. (You can see this by RMB on desktop > Personalize..., Settings dialog > Themes > Color, 'Choose your default app mode')
I don't think I'm referring to the VCL styles? I can't seem to make these work automagically when the user toggles their windows theme from Light to Dark or vice versus.
I've tried setting the background color of the main TForm to color 'clWindow' but this doesn't seem to respect the theme app mode when I toggle it from Light to Dark and vice versus.
What do I need to to do to support the Windows 10 app mode?

How can I have Win98 style buttons?

I am using Delphi 10.3 Community Edition and I'm on Windows 7.
By default the buttons generated by Delphi are (of course) Win7 style.
How can I have "old-style" Win98 buttons (see attached picture).
Thanks.
Uncheck the enable runtime themes option.

Migrated C++ Builder project lose Imagelist transparency

I Upgraded from C++ Builder XE7 to C++ Builder Berlin and I have a project with about 100 images in 6 ImageList controls.
In XE7 the transparency worked fine, but after the upgrade all images now have a black solid background instead of transparency.
I double checked that the ImageList's ColorDepth still was cd32bit, and it is. Everything looks file in the IDE, images are transparent, but as soon I run my application, all images have a black background instead of transparency.
I tried to drop a new TImageList, cd32bit depth and added some transparent PNG:s that worked fine in XE7. Still they show up with a black background in Runtime, but not in the IDE.
Finally figured it out!
I noted that all controls had the old Win XP style so I suspected that the wrong version of Comctl32.dll was loaded, the question was only how to change it?
The project is very old and was created before C++ Builder supported manifests. But in the project options, under Application you will find a section named "Manifest File".
Set it to "Auto Generate" and tick the checkbox "Enable Runtime Themes" and it will use the correct version of Comctl32.dll

How can I fixate form for tablet PC in Delphi XE2?

I have a problem. I create a fullscreen form in Delphi XE2. Then I run my application on tablet PC with windows 7 on board where screen resolution is 1024x600. Then I rotate tablet PC (now resolution is 600x1024) and I had some problems with elements on form (some buttons are behind the screen, etc.). Can I configure project so that when I turn the tablet PC my form is not rotate?
According to this MSDN article you can detect that the screen has been rotated by listening for the WM_DISPLAYCHANGE message.
However, you then face a serious problem. You now need to paint your entire app with a 90 degree rotation. That's going to take quite a bit of doing. I honestly don't believe it to be a tractable solution. I suspect that the viable options are to:
Modify your program so that it works in both orientations, or
Configure the device so that it is always in your preferred orientation.

Delphi XE6 - Firemonkey applications rendering bug

I'm experimenting Firemonkey HD with Embarcadero Delphi XE6.
This is what happen when creating a form:
http://i.stack.imgur.com/OdfFi.png
After going over the button or resizing the window.
Also the angles are black.
I'm on Windows 7 64bits.
What's the problem?

Resources