Discussion:
TSaveDialog and TLoadDialog weirdness
(too old to reply)
Jambo
2009-01-18 22:55:38 UTC
Permalink
Hello

For some bizarre reason, the TSaveDialog and TLoadDialog dialogs in my
project have reverted to their pre-XP appearance when the app is
running.

Strangely enough, double-clicking the instances of TSaveDialog and
TLoadDialog on the form at design-time brings up the correct XP
dialogs with the places bar.

I thought that there must be something wrong with the project itself,
so I created a new project and added the source files to it.
Recompile, and - no - the pre-XP dialogs are back.

I've been at this all day and it's driving me MAD! Has anyone got any
suggestions?

Thanks,

- James
Jambo
2009-01-24 16:57:23 UTC
Permalink
Post by Jambo
For some bizarre reason, the TSaveDialog and TLoadDialog dialogs in my
project have reverted to their pre-XP appearance when the app is
running.
This is a quiet newsgroup, isn't it?

Anyway, I've finally fixed the problem, so I'm posting it here in case
anyone else runs into it.

After lots of tests, it seems it was the NAME of my application that
had somehow got set to use the old-style dialogs. I couldn't believe
it. After starting again with the same project name - a totally blank
project in a totally empty folder - I noticed that the dialogs were
still messed up. So I loaded my old project in, saved it as something
else, recompiled and it works! New XP-style dialogs.

What a stupid thing to happen. I'm really mad about it. Windows
absolutely sucks and so does Borland. It seems that every couple of
weeks I run into a pointless, frustrating problem like this where
there's nothing wrong with my code or project - it just seems that
today, Windows or C++ Builder has decided it's not going to play and
shoves the spanner of randomness in the works. Just to take up a few
more hours of my precious time. Rrrr! Angry!

Bring back the Amiga!

Cheers,

- Ranting James

Loading...