|
|
Rank: Member Groups: Member
Joined: 7/20/2007 Posts: 3 Points: 0
|
Is it possible to hide the Borders tab? I'm using version 2.
Thank you.
|
|
Rank: Member Groups: Member
Joined: 7/20/2007 Posts: 3 Points: 0
|
fyi
This is a total hack:
Version 2, file PhotoEditor/Scripts/TabControl.js
PhotoEditor.TabControl.prototype -> init: function()
I pasted these lines at the very beginning to hide the borders tab:
var borderTab = document.getElementById('PhotoEditorSample1_ctl00_tab2'); this._tabHeader().removeChild(borderTab);
If there is another way that is not a hack, please share.
|
|
Rank: Member Groups: Member
Joined: 3/28/2007 Posts: 56 Points: 0
|
instead of hacking like that, just remove it from the App_Data/PhotoEditor/EffectList.xml file
I've removed this tab as well, and all I did was remove all the appropiate effects that were borders.
hope this helps, Nate
|
|
Rank: Member Groups: Member
Joined: 7/20/2007 Posts: 3 Points: 0
|
thanks for your help.
The hack wasn't perfect anyway, I forgot to remove the body.... just incase anyone needs it:
var borderTab = document.getElementById('PhotoEditorSample1_ctl00_tab2'); this._tabHeader().removeChild(borderTab);
var tabBody = this._tabBody().childNodes.item(2); this._tabBody().removeChild(tabBody);
I'm going to try natebell's help, it's the correct way to do this.
|
|
Rank: Advanced Member Groups: Member
Joined: 6/6/2007 Posts: 54 Points: 36
|
natebell, thanks for your input.
rrobinson, to remove borders tab you should just remove or comment out effects with tabCaption equal to Borders in EffectList.xml.
Sincerely yours, Sergey Peshekhonov.
Aurigma Technical Support Team.
|
|
|
Guest |