Disabling some of the Context menu item.

Advertisement

pmverma
Joined:
Posts:
7

Disabling some of the Context menu item.

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? :?:
What do I need more to disable the menu and keyboard action? :?:

Thanks in advance. :D

Description: Context menu

winscp.png

Reply with quote

Advertisement

pmverma
Joined:
Posts:
7

Well,
I downloaded XE8 trail.
And also everything according to the
readme.txt
.
I have also modify
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. :D
Thanks.

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 . . .
Description: Complete Log file

Reply with quote

pmverma
Joined:
Posts:
7

martin 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.

Reply with quote

Advertisement

pmverma
Joined:
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

Description: After disabling menu

Untitled.png

Reply with quote

srinivasan
Joined:
Posts:
3
Location:
chennai

How to compile winscp

HI Verma,

Can you help to compile winscp, i was download winscp 5.11.2 version.

I was download RAD studio with XE7. then what i want to do. please tell me that full procedure to compile that source code.


Thank you in advance.
Srinivasan

Reply with quote

Advertisement

Guest

Re: How to compile winscp

srinivasan wrote:

HI Verma,

Can you help to compile winscp, i was download winscp 5.11.2 version.

I was download RAD studio with XE7. then what i want to do. please tell me that full procedure to compile that source code.


Thank you in advance.
Srinivasan

Source file contains a README file.
Follow same steps you can compile and build.

Thanks :lol:

Reply with quote

Advertisement

You can post new topics in this forum