[8.0ß-x64] LB_GETTEXT* stopped working for file panels

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Flint
Power Member
Power Member
Posts: 3505
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

[8.0ß-x64] LB_GETTEXT* stopped working for file panels

Post by *Flint »

When I try to send LB_GETTEXTLEN or LB_GETTEXT messages to TC's file panels in x64 version I receive the length equal to zero for each element (and empty string as its contents).

In TC x32 these messages work correctly.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately Lazarus blocks all Windows messages below WM_USER from getting through to the program, for cross platform compatibility. the only way to access them is to subclass the windows and try to handle the messages from there. This is a lot of work, and I have already added it for various functions...
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3505
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

ghisler(Author)
Could you please do it for file panels too, or provide some other method of getting the file names? The problem is that all multi-file editor redirectors (like ChoiceEditor, OSFTC, F4Menu, etc.) need it to allow opening several selected files by pressing F4.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, I will of course try to add it again, I just didn't have the time yet.
Author of Total Commander
https://www.ghisler.com
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

IMO it would be better to provide something like an official scripting api.
Currently there are several workarounds needed to get some of the informations.

Methods like this would be great:
getFolder(left, right, source, target), getFiles, getSelectedFiles, sendCommand, sendCustomCommand, setFolder, setFileSelection, etc.
User avatar
Flint
Power Member
Power Member
Posts: 3505
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

ghisler(Author) wrote:Yes, I will of course try to add it again, I just didn't have the time yet.
OK, thank you. I'll be waiting patiently. :)
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
Flint
Power Member
Power Member
Posts: 3505
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

Fixed in 8.0β4. Thanks!
Now I can adapt my TCER to the x64 version. :)
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for reporting it!
Author of Total Commander
https://www.ghisler.com
Post Reply