Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Delphi 10 Seattle and the default style Windows



Permlink Replies: 5 - Last Post: Sep 27, 2015 2:02 PM Last Post By: Lajos Juhasz Threads: [ Previous | Next ]
costa basil

Posts: 44
Registered: 4/8/08
Delphi 10 Seattle and the default style Windows
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 24, 2015 5:29 PM
Hello:

I compiled our app in Delphi 10 Seattle Enterprise win32 and the UI looks like the old windows 95/2000 with blocky buttons. The default style is Windows.

In XE8 the app was fine (I upgraded from XE5 to XE8).

What changed in Delphi 10 in the default windows style? The only difference between the old dproj file and the new one is the ProjectVersion, it changed from 17.0 to 18.0 and, under the 64 bit PropertyGroup I have now:
<AppEnableRuntimeThemes>true</AppEnableRuntimeThemes>

If I create a new vcl app the buttons are fine.

I am using windows 7 64 bit for development. The target platform is win32 debug mode.

Any suggestions on how to get back the normal windows 7 look and feel?

Thanks
costa basil

Posts: 44
Registered: 4/8/08
Re: Delphi 10 Seattle and the default style Windows
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 24, 2015 5:41 PM   in response to: costa basil in response to: costa basil
ok. I fixed it by enabling runtime themes for the 32 bit windows platform. Somehow it was not enabled for 32 bit but it was enabled for 64 bit. In XE8 I didn't have this problem when I upgraded from XE5.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Delphi 10 Seattle and the default style Windows [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 24, 2015 7:15 PM   in response to: costa basil in response to: costa basil
costa wrote:

ok. I fixed it by enabling runtime themes for the 32 bit windows
platform. Somehow it was not enabled for 32 bit but it was enabled
for 64 bit. In XE8 I didn't have this problem when I upgraded from
XE5.

This is just anotehr example of why you should never upgrade a project from
an older IDE version to a newer IDE version. It rarely ever works right.
Always create a new project fresh and add your existing source files to
it as needed.

--
Remy Lebeau (TeamB)
costa basil

Posts: 44
Registered: 4/8/08
Re: Delphi 10 Seattle and the default style Windows [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 25, 2015 10:40 AM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:

This is just anotehr example of why you should never upgrade a project from
an older IDE version to a newer IDE version. It rarely ever works right.
Always create a new project fresh and add your existing source files to
it as needed.

Hmmm... You'd think that the new version should be pretty careful at reading the old project. Our main delphi project has hundreds of files, and we also have hundreds of other mini-projects used for testing and development. I would think opening the existing projects is the safe thing to do, because I don't have to deal with project settings every time I upgrade to a newer version of Delphi (which are cranked up very frequently these days).
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Delphi 10 Seattle and the default style Windows [Edit] [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 25, 2015 11:30 AM   in response to: costa basil in response to: costa basil
costa wrote:

Hmmm... You'd think that the new version should be pretty careful
at reading the old project.

One would think so, but the IDE has never been able to get it right after
all these years.

I would think opening the existing project is the safe thing to do

Nope. Some things do migrate, but some things don't and have to be fixed
manually, and even then they don't always work the same as before. So it
is usually best to just start over.

--
Remy Lebeau (TeamB)
Lajos Juhasz

Posts: 801
Registered: 3/14/14
Re: Delphi 10 Seattle and the default style Windows [Edit] [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 27, 2015 2:02 PM   in response to: costa basil in response to: costa basil
costa basil wrote:

I would think opening the existing projects
is the safe thing to do, because I don't have to deal with project
settings every time I upgrade to a newer version of Delphi (which are
cranked up very frequently these days).

Unfortunately Embarcadero also ignores reports on problems with auto
migrating project files. What is strange sometimes an old project file
can be compiled with newer version of Delphi but cannot be opened as
the auto upgrade process is unable to handle the amount of files that
are in the project.

If you can afford the best practice is really to recreate the project
files in newer vesion of Delphi.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02