 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
--== Alain ==-- Guest
|
Posted: Sun Sep 24, 2006 3:59 pm Post subject: XP look to my application |
|
|
Hi,
I know by experience that we can make an application have the XP look,
just by adding a "application_name.exe.manifest" file in the same folder
that my application_name.exe file.
However, i when i do, my application gets crazy.
for example in my about window, my TListView component, is refreshing
without limit just by moving on/ moving out the mouse cursor on this
component...
So where is it written, exactly how should like the manifest file to
make no issue to my application ?
or does it exist another way ?
thx,
Alain |
|
| Back to top |
|
 |
JD Guest
|
Posted: Sun Sep 24, 2006 8:43 pm Post subject: Re: XP look to my application |
|
|
--== Alain ==-- <nospam (AT) noemail (DOT) com> wrote:
| Quote: |
[...] my TListView component, is refreshing without limit
just by moving on/ moving out the mouse cursor on this
component...
|
When theming, XP sends extra messages to it's underlying
controls and TListView is just a wrapper for one of them.
However, your description of the problem sounds more like XP
exposed a flaw in your logic. You'll need to post some code.
~ JD |
|
| Back to top |
|
 |
Clayton Arends Guest
|
Posted: Sun Sep 24, 2006 9:02 pm Post subject: Re: XP look to my application |
|
|
If you are using BCB4-BCB6 then download and use Mike Lischke's XP Theme
Manager. The "winxp.res" resource file contained in it has always served me
well even without using the included components:
http://www.delphi-gems.com/ThemeManager.php
Delphi 7 and up (including BDS) use this package natively.
- Clayton |
|
| Back to top |
|
 |
Clayton Arends Guest
|
Posted: Sun Sep 24, 2006 9:08 pm Post subject: Re: XP look to my application |
|
|
I forgot to mention if you only want to use a manifest file to support XP
theming then this package also comes with an example manifest file.
- Clayton |
|
| Back to top |
|
 |
--== Alain ==-- Guest
|
Posted: Mon Sep 25, 2006 4:08 pm Post subject: Re: XP look to my application |
|
|
i do not want to have a third party tool...
moreover, i'm on BDS2006.
Clayton Arends wrote:
| Quote: | If you are using BCB4-BCB6 then download and use Mike Lischke's XP Theme
Manager. The "winxp.res" resource file contained in it has always served me
well even without using the included components:
http://www.delphi-gems.com/ThemeManager.php
Delphi 7 and up (including BDS) use this package natively.
- Clayton
|
|
|
| Back to top |
|
 |
Clayton Arends Guest
|
Posted: Mon Sep 25, 2006 8:11 pm Post subject: Re: XP look to my application |
|
|
You seem to have a thing against third-party tools. It's a recurring
response of yours. Do you wish to recreate the wheel every time?
You do not have to use this freeware component. You can simply extract it
and take the manifest file.
As for BDS2006 ... it natively supports XP themeing. Just drop a
TXPManifest component on a form. Again, if you don't want your product to
have XP support unless a manifest file exists then use the one from the
theme manager download.
- Clayton |
|
| Back to top |
|
 |
--== Alain ==-- Guest
|
Posted: Mon Sep 25, 2006 8:38 pm Post subject: Re: XP look to my application |
|
|
no Clayton... it's just that i like to control the source of code
and in most of third party tool, you can not...
moreover, it force me to learn every time something new ;-)
Clayton Arends wrote:
| Quote: | You seem to have a thing against third-party tools. It's a recurring
response of yours. Do you wish to recreate the wheel every time?
You do not have to use this freeware component. You can simply extract it
and take the manifest file.
As for BDS2006 ... it natively supports XP themeing. Just drop a
TXPManifest component on a form. Again, if you don't want your product to
have XP support unless a manifest file exists then use the one from the
theme manager download.
- Clayton
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Sep 25, 2006 10:58 pm Post subject: Re: XP look to my application |
|
|
"--== Alain ==--" <nospam (AT) noemail (DOT) com> wrote in message
news:4517f808$1 (AT) newsgroups (DOT) borland.com...
| Quote: | it's just that i like to control the source of code and in
most of third party tool, you can not...
|
In my company, we insist on having access to all source code before allowing
any third-party component/library to be used in our products. The only time
we don't is if the component/library fills a need that we can't live
without, which is not very often. Many third-party vendors to provide
source code. It may cost us a little extra, but vendors are usually
accomodating about that.
Gambit |
|
| Back to top |
|
 |
--== Alain ==-- Guest
|
Posted: Tue Sep 26, 2006 12:03 am Post subject: Re: XP look to my application |
|
|
Yes but...you pay a little extra ;-)
in my company, they bought during several years 3rd party tools without
keeping care about that...now, they have obsolete components without any
support to update their needs...
that's my sad experience..
Remy Lebeau (TeamB) wrote:
| Quote: | "--== Alain ==--" <nospam (AT) noemail (DOT) com> wrote in message
news:4517f808$1 (AT) newsgroups (DOT) borland.com...
it's just that i like to control the source of code and in
most of third party tool, you can not...
In my company, we insist on having access to all source code before allowing
any third-party component/library to be used in our products. The only time
we don't is if the component/library fills a need that we can't live
without, which is not very often. Many third-party vendors to provide
source code. It may cost us a little extra, but vendors are usually
accomodating about that.
Gambit
|
|
|
| Back to top |
|
 |
Gene Norris Guest
|
Posted: Thu Oct 12, 2006 7:59 pm Post subject: Re: XP look to my application |
|
|
In BDS2006...
When I just drop a TXPManifest component on a form, I lose the status
bar. It shows up, but does not display anything - ever.
So then I look up TXPManifest component in help and surprise it's not
there. There is much missing from the C++ help, plus what is there is
just infuriating.
I'm fairly certain, those in charge of C/C++ help are almost completely
unfamiliar with the language. Cutting and Pasting the help from Delphi
is not an appropriate answer. (I can look at the delphi equivalent
myself.) C/C++ requires (unfortunately) more effort.
I cannot tell you how many times I have looked to help for finding out
which header holds the declaration for a function. I just looked up
FileCreate (which used to be in <filectrl.hpp>). Help happily tells me
it is in the SysUtils unit. So I guess the proper syntax is:
uses SysUtils;
Oh wait, is that Dephi/Pascal?
_____Also events, look at the help:
TDrawGrid::OnSelectCell Event
Occurs before a cell in the grid is selected.
Class
TDrawGrid
Syntax
[C++] __property TSelectCellEvent OnSelectCell = {read=FOnSelectCell,
write=FOnSelectCell};
Description
Write an OnSelectCell event handler to specify whether any particular
cell in the grid can be selected.
Borland® Copyright © 2005 Borland Software Corporation. All rights
reserved.
---Where in here am I supposed to figure out what CanSelect means?
SuperGrid1SelectCell(TObject *Sender, int ACol, int ARow, bool &CanSelect)
--I guess in the old help files? from a previous version? Of course that
may complicate things for the previous example.
How about C/C++ help showing _header file_ and _return value_ and maybe
even explaining events with cross references to the property/class types.
Gene
Clayton Arends wrote:
| Quote: | You seem to have a thing against third-party tools. It's a recurring
response of yours. Do you wish to recreate the wheel every time?
You do not have to use this freeware component. You can simply extract it
and take the manifest file.
As for BDS2006 ... it natively supports XP themeing. Just drop a
TXPManifest component on a form. Again, if you don't want your product to
have XP support unless a manifest file exists then use the one from the
theme manager download.
- Clayton
|
|
|
| Back to top |
|
 |
Clayton Arends Guest
|
Posted: Thu Oct 12, 2006 10:32 pm Post subject: Re: XP look to my application |
|
|
Hello Gene,
Before I answer your questions I want to acknowledge that *most* of us that
use BDS2006 are upset with the condition of the help system.
| Quote: | When I just drop a TXPManifest component on a form, I lose the status bar.
It shows up, but does not display anything - ever.
|
What happens if you set the 'SimplePanel' property to true. I can replicate
the problem you mention only if SimplePanel is false.
| Quote: | So then I look up TXPManifest component in help and surprise it's not
there.
|
This particular component has no properties to alter. It was most likely an
oversite (one of many) to not at least mention it in the help but you
wouldn't find out much from the help anyway other than: "This component
allows your application to take advantage of XP Themeing when run in a
Windows XP environment that supports themeing."
| Quote: | I just looked up FileCreate (which used to be in <filectrl.hpp>). Help
happily tells me it is in the SysUtils unit. So I guess the proper syntax
is:
uses SysUtils;
|
The help for FileCreate clearly shows the C++ syntax and namespaces. There
is no mention of "Uses". In fact it doesn't show any code example. I don't
understand your problem with this entry.
| Quote: | _____Also events, look at the help:
TDrawGrid::OnSelectCell Event
Occurs before a cell in the grid is selected.
....
---Where in here am I supposed to figure out what CanSelect means?
|
The full help for this event is in TCustomDrawGrid::OnSelectCell. In this
particular case the problem is that the documentation team added a help
entry that shouldn't have existed. There shouldn't be any help for
TDrawGrid::OnSelectCell.
| Quote: | How about C/C++ help showing _header file_ and _return value_ and maybe
even explaining events with cross references to the property/class types.
|
Many of the cross reference links are broken in the BDS help. This has been
complained about many times in the newsgroups and in QC. However, most of
the help entries I've looked at mention return values and the units that
hold the referenced classes and functions.
- Clayton |
|
| Back to top |
|
 |
george Guest
|
Posted: Thu Oct 12, 2006 11:52 pm Post subject: Help Files |
|
|
I hope it is all right to change the subject in mid-thread
so to speak.
How can I get an updated and correct help text file to go with
my version. I have Version 6.0 Personal and several errors in it.
Gene Norris <genenorris (AT) spotengineering (DOT) com> wrote:
There is much missing from the C++ help, plus what is there is
|
|
| Back to top |
|
 |
Gene Norris Guest
|
Posted: Fri Oct 13, 2006 2:48 am Post subject: Re: XP look to my application |
|
|
Clayton,
Clayton Arends wrote:
| Quote: | Hello Gene,
Before I answer your questions I want to acknowledge that *most* of us that
use BDS2006 are upset with the condition of the help system.
When I just drop a TXPManifest component on a form, I lose the status bar.
It shows up, but does not display anything - ever.
What happens if you set the 'SimplePanel' property to true. I can replicate
the problem you mention only if SimplePanel is false.
SimplePanel set to true FIXES the problem! Thanks! |
....>
| Quote: | I just looked up FileCreate (which used to be in <filectrl.hpp>). Help
happily tells me it is in the SysUtils unit. So I guess the proper syntax
is:
uses SysUtils;
The help for FileCreate clearly shows the C++ syntax and namespaces. There
is no mention of "Uses". In fact it doesn't show any code example. I don't
understand your problem with this entry.
In short:), I want to see something like I used to see from borland, |
this is a quote from C++3.0 Library Reference:
_creatnew_
_Function_ Crate a new file.
_Syntax_ #include <dos.h>
int createnew(const char *path, int mode);
...
_Remarks_
...
The mode argument to createnew can be one of the following constants
(defined in dos.h):
FA_RDONLY Read-only attribute
...
_Return Value_ Upon success... file handle, a non-negative integer;
otherwise, it returns -1;
...
_See also_ close, _creat, creat, creattemp, dup, open
_Example_
...
Now I can cut and paste the include to the top of my source and use the
function.
(If I programmed in Pascal/Delphi, I believe could have pasted SysUtils
(from current help) into the uses line in my Delphi code.)
| Quote: | _____Also events, look at the help:
TDrawGrid::OnSelectCell Event
Occurs before a cell in the grid is selected.
....
---Where in here am I supposed to figure out what CanSelect means?
The full help for this event is in TCustomDrawGrid::OnSelectCell.
THE SAME help is there, perhaps appropriately so. |
In this
| Quote: | particular case the problem is that the documentation team added a help
entry that shouldn't have existed. There shouldn't be any help for
TDrawGrid::OnSelectCell.
Why not?! How can I effectively use something like CanSelect without any |
information.
| Quote: | How about C/C++ help showing _header file_ and _return value_ and maybe
even explaining events with cross references to the property/class types.
Many of the cross reference links are broken in the BDS help. This has been
complained about many times in the newsgroups and in QC. However, most of
the help entries I've looked at mention return values and the units that
hold the referenced classes and functions.
- Clayton
You're too nice. I've used Borland since turbo c v1.0. I'm tired of the |
ever increasing trend of kicking C/C++ to the dirt. Units are enough for
delphi, but I want enough for C/C++. You cannot use FileCreate without
including the appropriate header and that should be obvious in the
header for everyone including newbies, not just people like us who have
used the product and know the answers or at least how to painstakingly
find them.
Happy Programming. Don't take this personally, I am criticizing Borland
not you. And I hope a better product will bring more new users and make
them lots of money!
Gene |
|
| Back to top |
|
 |
Gene Norris Guest
|
|
| Back to top |
|
 |
Clayton Arends Guest
|
Posted: Fri Oct 13, 2006 8:10 am Post subject: Re: XP look to my application |
|
|
Hi Gene,
| Quote: | There shouldn't be any help for TDrawGrid::OnSelectCell.
Why not?! How can I effectively use something like CanSelect without any
information.
|
I meant the help for TCustomDrawGrid::OnSelectCell contains all of the
necessary information about the event and should have been sufficient. An
additional entry in the help for a descendent that adds no additional
behavior is superfluous. And as you have noted the help for
TDrawGrid::OnSelectCell is actually confusing since it doesn't contain the
necessary info.
The rest of your comments I agree with. ;-)
- Clayton |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|