Topic "Disabling some of the Context menu item."

Author Message
pmverma
[View user's profile]

Joined: 2015-05-08
Posts: 7
I would like to disable some of the menu from the both local and remote panel.

1. Download and Delete
2. Duplicate
3. Move To...
4. Delete
5. Rename

6. Also want to disable drag&drop within for same panel, (as file/folder can be moved)
7. And also do not want to allow the delete key from the keyboard.

Here is all I have:
1. Winscp source code downloaded
2. C++ programming knowledge(beginner to intermediate)
3. MS VS2013 Community edition
4. Using Windows 7 64 bit

I want to disable above menu and build own from source.
Can anybody please tell me where to start from? Question
What do I need more to disable the menu and keyboard action? Question

Thanks in advance. Very Happy
winscp.png (44.77 KB)

Description: Context menu

winscp.png

Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
You cannot compile WinSCP in VS. See readme.txt is WinSCP source code package.
pmverma
[View user's profile]

Joined: 2015-05-08
Posts: 7
Well,
I downloaded XE8 trail.
And also everything according to the
Code:
readme.txt
.
I have also modify
Code:
build.bat
.

I got following error message during building.
winscp source version: 5.7.2
Windows 7 64 bit
XE8 trail version

How to continue please. Very Happy
Thanks.

Code:

OpenSSL already built
Expat already built
neon already built
All done
.
.
.
.
.
"D:\Winscp\source\WinSCP.groupproj" (Build target) (1) ->
"D:\Winscp\source\ScpForms.cbproj" (Build target) (13) ->
(_BCC32CoreCompile target) ->
  forms\MessageDlg.cpp(542): error E2451: Undefined symbol '_SMsgDlgWarning'
  forms\MessageDlg.cpp(542): error E2304: Reference variable '_SMsgDlgError' must be initialized
  forms\MessageDlg.cpp(543): error E2304: Reference variable '_SMsgDlgConfirm' must be initialized
  forms\MessageDlg.cpp(543): error E2040: Declaration terminated incorrectly
  forms\MessageDlg.cpp(543): error E2190: Unexpected }
  forms\MessageDlg.cpp(713): error E2451: Undefined symbol '_SMsgDlgYes' in function _fastcall AnswerNameAndCaption(unsigned int,UnicodeString &,UnicodeString &)
  forms\MessageDlg.cpp(718): error E2451: Undefined symbol '_SMsgDlgNo' in function _fastcall AnswerNameAndCaption(unsigned int,UnicodeString &,UnicodeString &)
  forms\MessageDlg.cpp(723): error E2451: Undefined symbol '_SMsgDlgOK' in function _fastcall AnswerNameAndCaption(unsigned int,UnicodeString &,UnicodeString &)
  forms\MessageDlg.cpp(728): error E2451: Undefined symbol '_SMsgDlgCancel' in function _fastcall AnswerNameAndCaption(unsigned int,UnicodeString &,UnicodeString &)
  forms\MessageDlg.cpp(733): error E2451: Undefined symbol '_SMsgDlgAbort' in function _fastcall AnswerNameAndCaption(unsigned int,UnicodeString &,UnicodeString &)
  forms\MessageDlg.cpp(738): error E2451: Undefined symbol '_SMsgDlgRetry' in function _fastcall AnswerNameAndCaption(unsigned int,UnicodeString &,UnicodeString &)
  forms\MessageDlg.cpp(743): error E2451: Undefined symbol '_SMsgDlgIgnore' in function _fastcall AnswerNameAndCaption(unsigned int,UnicodeString &,UnicodeString &)
  forms\MessageDlg.cpp(756): error E2451: Undefined symbol '_SMsgDlgNoToAll' in function _fastcall AnswerNameAndCaption(unsigned int,UnicodeString &,UnicodeString &)
  forms\MessageDlg.cpp(767): error E2451: Undefined symbol '_SMsgDlgHelp' in function _fastcall AnswerNameAndCaption(unsigned int,UnicodeString &,UnicodeString &)
  forms\MessageDlg.cpp(1178): error E2285: Could not find a match for 'Format(const wchar_t *,int,unsigned int)' in function _fastcall TMessageForm::Create(const UnicodeString &,TStrings *,TMsgDlgType,unsigned int,const TQueryButtonAlias *,unsigned int,unsigned int,TButton * *,const UnicodeString &,const UnicodeString &,const UnicodeString &,TSize)
  forms\MessageDlg.cpp(1178): error E2285: Could not find a match for 'Format(const wchar_t *,int,unsigned int)' in function _fastcall TMessageForm::Create(const UnicodeString &,TStrings *,TMsgDlgType,unsigned int,const TQueryButtonAlias *,unsigned int,unsigned int,TButton * *,const UnicodeString &,const UnicodeString &,const UnicodeString &,TSize)


"D:\Winscp\source\WinSCP.groupproj" (Build target) (1) ->
"D:\Winscp\source\WinSCP.cbproj" (Build target) (14) ->
  windows\Tools.cpp(833): error E2451: Undefined symbol 'Vcl_Consts_SCannotOpenClipboard' in function _fastcall CopyToClipboard(UnicodeString)
  windows\Tools.cpp(833): error E2459: Delphi style classes must be constructed using operator new in function _fastcall CopyToClipboard(UnicodeString)

    7 Warning(s)
    18 Error(s)

Time Elapsed 00:02:22.73
Press any key to continue . . .
temp.log (65.01 KB) [Download]

Description: Complete Log file

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
I do not have XE8, so I'm not sure if you can compile WinSCP with that.
pmverma
[View user's profile]

Joined: 2015-05-08
Posts: 7
prikryl wrote:
I do not have XE8, so I'm not sure if you can compile WinSCP with that.


Thank you for your reply.
I am downloading XE6 version.
I will try with that and post here.
pmverma
[View user's profile]

Joined: 2015-05-08
Posts: 7
Hi, prikryl.

I can disable the all the Menu as I needed.
[img]Untitled.png[/img]
And last thing I want to disable the Drag&Drop as following.

1. Drag&Drop from side to side panel or from external windows explorer is allowed. This is Ok no problem.
2. But I want to disable Drag&Drop from within same panel.

For simplicity,
Is there any GLOBAL SETTING/CODE by which I can totally disable the Drag&Drop feature.
Or could you please tell me where to start to do like above listed?

Thank you in advance.
P. M. Verma
Untitled.png (8.41 KB)

Description: After disabling menu

Untitled.png

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
See TCustomDirView.DDDragOver and TCustomDriveView.DDDragOver.
pmverma
[View user's profile]

Joined: 2015-05-08
Posts: 7
Thanks prikryl,

I made a simple changes for not accept the DD as following.

`CustomScpExplorer.cpp:FileControlDDDragEnter`

I added a `Accept = false;`.
That help me.

And really thanks for your reply.

BTW, I have uploaded to github with the original copyright and license.
https://github.com/pmverma/winscp/tree/5.7.2.1
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License