Folks,
When i activate the "File"-Bar the [Open] Dropdownbutton is always enabled. Because i don´t want that the user can open other files than the one i´ve loaded, how do i disable this button ?
regards
Karl-Heinz
Disable "Open" Dropdownbutton
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 3586
- Joined: Thu Jul 08, 2004 10:36 pm
The ability of enabling/disabling/removing commands from menu/command bars now in developming and will be avalilable soon into one of the next build.
PDF-XChange Co Ltd. (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
-
- Site Admin
- Posts: 3586
- Joined: Thu Jul 08, 2004 10:36 pm
No, for now it is imposible to disable this button. What you can do - it is to hide the toolbar where this button located.
The ability of enabling/disabling separate commands will be added into the one of the next builds.
The ability of enabling/disabling separate commands will be added into the one of the next builds.
PDF-XChange Co Ltd. (Project Director)
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
-
- User
- Posts: 37
- Joined: Fri Oct 02, 2009 12:30 am
Re: Disable "Open" Dropdownbutton
With the latest release, it looks like it's still not possible to hide a button when the toolbar, in which the button is, is visible. Am I correct? If not, could you let me know how to do it?
-
- Site Admin
- Posts: 2448
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Disable "Open" Dropdownbutton
Hi, jykim
Yo may disable this command by code(pseudocode):
For remove this button from toolbar and menu you can:
1. Customize UI of our ActiveX control by mouse manually, display 'Customize' dialog before(right-click on any toolbar).
2. Use SaveSettings function from SDK or "Edit->Export All Settings.." from menu.
3. Use LoadSettings at each start of your application for load custom settings, saved in 2.
For details about SaveSettings/LoadSettings see SDK Help and corresponding examples.
Yo may disable this command by code(pseudocode):
Code: Select all
SetProperty("Commands["Open"].State", "Offline", 0);
1. Customize UI of our ActiveX control by mouse manually, display 'Customize' dialog before(right-click on any toolbar).
2. Use SaveSettings function from SDK or "Edit->Export All Settings.." from menu.
3. Use LoadSettings at each start of your application for load custom settings, saved in 2.
For details about SaveSettings/LoadSettings see SDK Help and corresponding examples.
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 37
- Joined: Fri Oct 02, 2009 12:30 am
Re: Disable "Open" Dropdownbutton
Thanks Vasyl for your reply.
In the 'Customize' dialog, I don't see a way to remove a button from a toolbar.
Instead, I could create a 'custom' toolbar, and add buttons/commands that I need.
Is that what you meant to 'remove' a button from a toolbar?
In the 'Customize' dialog, I don't see a way to remove a button from a toolbar.
Instead, I could create a 'custom' toolbar, and add buttons/commands that I need.
Is that what you meant to 'remove' a button from a toolbar?
-
- Site Admin
- Posts: 2448
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Disable "Open" Dropdownbutton
For remove "Open" button (and any other item):
1. Display "Customize" dialog
2. Click on the "Open" item in the toolbar and drag it by mouse out and drop when cursor will be displayed with "X" icon (delete tip).
1. Display "Customize" dialog
2. Click on the "Open" item in the toolbar and drag it by mouse out and drop when cursor will be displayed with "X" icon (delete tip).
PDF-XChange Co. LTD (Project Developer)
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 37
- Joined: Fri Oct 02, 2009 12:30 am
Re: Disable "Open" Dropdownbutton
Got it. Thanks very much for your help! 

-
- Site Admin
- Posts: 5223
- Joined: Tue Jun 29, 2004 10:34 am
Re: Disable "Open" Dropdownbutton
Pleasure 

If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.
Best regards
Tracker Support
http://www.tracker-software.com
Best regards
Tracker Support
http://www.tracker-software.com