Disable "Open" Dropdownbutton

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Charly
User
Posts: 41
Joined: Fri Jul 06, 2007 7:18 pm

Disable "Open" Dropdownbutton

Post by Charly »

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
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3586
Joined: Thu Jul 08, 2004 10:36 pm

Post by Ivan - Tracker Software »

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.
didierurban
User
Posts: 36
Joined: Tue Jun 12, 2007 8:22 am

enabled

Post by didierurban »

Is it possible now with the last release ? and How ?

Thanks
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3586
Joined: Thu Jul 08, 2004 10:36 pm

Post by Ivan - Tracker Software »

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.
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.
jykim
User
Posts: 37
Joined: Fri Oct 02, 2009 12:30 am

Re: Disable "Open" Dropdownbutton

Post by jykim »

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?
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Disable "Open" Dropdownbutton

Post by Vasyl - PDF-XChange »

Hi, jykim
Yo may disable this command by code(pseudocode):

Code: Select all

SetProperty("Commands["Open"].State", "Offline", 0);
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.
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.
jykim
User
Posts: 37
Joined: Fri Oct 02, 2009 12:30 am

Re: Disable "Open" Dropdownbutton

Post by jykim »

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?
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Disable "Open" Dropdownbutton

Post by Vasyl - PDF-XChange »

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).
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.
jykim
User
Posts: 37
Joined: Fri Oct 02, 2009 12:30 am

Re: Disable "Open" Dropdownbutton

Post by jykim »

Got it. Thanks very much for your help! :wink:
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Disable "Open" Dropdownbutton

Post by John - Tracker Supp »

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