Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Question to writers (work with WinXP)

 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2286
Location: Russian Federation

PostPosted: Wed Oct 20, 2004 5:18 pm    Post subject: Question to writers (work with WinXP) Reply with quote

Hello All,

Maybe it's not right place (TC forum), but question about plugin. I didn't visit Delphi pages some time; how to make Delphi program work under WinXP, with themes?
I.e.: I added .manifest resource to program, program uses it, but: I have run-time errors in it. Some errors in TListView, when it draws its columns... Sad

I'm using Delphi5 now, don't want to use D7.
What I need to make with D5 to run without run-time errors?
(Maybe correct VCL for D5?)


Regards,
_________________
Universal Viewer - Log Viewer - SynWrite
Back to top
View user's profile Send private message Visit poster's website
SanskritFritz
Power Member
Power Member


Joined: 24 Jul 2003
Posts: 3701
Location: Budapest, Hungary

PostPosted: Thu Oct 21, 2004 1:57 am    Post subject: Reply with quote

Google search "old programs xp look" gave those promising links:
http://www.3sware.com/addxp/pictures.html
http://www.cronosoft.com/download/xp_skins/
You may check them out, maybe threre are some hints, how to accomplish your wish.
_________________
I switched to Linux, bye and thanks for all the fish!
Back to top
View user's profile Send private message Send e-mail
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2286
Location: Russian Federation

PostPosted: Thu Oct 21, 2004 5:59 am    Post subject: XP look Reply with quote

SanskritFritz wrote:
Google search "old programs xp look" gave those promising links

Thanks, it's a good programs..
But - they are for changing .exe look, not to change source code Smile
I need change in my source code...

Regards,
_________________
Universal Viewer - Log Viewer - SynWrite
Back to top
View user's profile Send private message Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 27731
Location: Switzerland

PostPosted: Thu Oct 21, 2004 12:58 pm    Post subject: Reply with quote

I'm using Delphi 2 for the speed and small code it creates, and I had almost no problems using the manifest file. However, I'm using a listbox, not a listview in TC. There are some bugs in the themed listbox implementation, so there may be bugs in the listview implementation too. You should try to compile the VCL yourself and then check in the debugger where the errors occur.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2286
Location: Russian Federation

PostPosted: Thu Oct 21, 2004 3:19 pm    Post subject: Reply with quote

Hello Christian,
No, don't want to debug VCL.. I think there is patch to D4/D5 VCL,
on some Delphi pages...


Regards,
PS
2Fritz:
"XP skins" program(link above) just adds .manifest file to folder of my .exe Smile
And "Add XP" program don't work on my .exe.
_________________
Universal Viewer - Log Viewer - SynWrite
Back to top
View user's profile Send private message Visit poster's website
Alextp
Power Member
Power Member


Joined: 16 Aug 2004
Posts: 2286
Location: Russian Federation

PostPosted: Mon Oct 25, 2004 5:45 pm    Post subject: Reply with quote

Hello All,

On Delphi pages (see here) I found this:
Quote:
Borland COMCTRLS wrapper for the TListView control has a problem with Windows XP visual styles on Windows XP.

The only solution so far is to patch COMCTRLS if you want to use the Windows XP visual styles with listview controls. We can provide this patch upon email request when needed.


Regards,
_________________
Universal Viewer - Log Viewer - SynWrite
Back to top
View user's profile Send private message Visit poster's website
Dark One
Junior Member
Junior Member


Joined: 19 May 2003
Posts: 40
Location: Serbia

PostPosted: Tue Dec 07, 2004 9:32 pm    Post subject: Reply with quote

the following is an extract from torry's delphi pages. i cant give you a direct link because it's down right now...

-------------------------------


{
The TListView with a vsReport style causes an access violation
when you run your project with a XP manifest resource.

The VCL wrapper has a bug and you must patch sources.
Just copy the comctrls.pas unit in the folder with your own
project and modify the UpdateColumn method.
After compiling the project, a comctrls.dcu is created
and you can replace the original comctrls.dcu with the
patched one.

}



// ComCtrls.pas:

procedure TCustomListView.UpdateColumn(AnIndex: Integer);
{...}
with Column, Columns.Items[AnIndex] do
begin
{ PATCH start:}
// mask := LVCF_TEXT or LVCF_FMT or LVCF_IMAGE;
mask := LVCF_TEXT or LVCF_FMT;
if FImageIndex >= 0 then
mask := mask or LVCF_IMAGE;
{ PATCH :end }
{...}
end;


-------------------------

i hope this helps...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group