BarEditor - *.bar files editor

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

User avatar
neophite
Junior Member
Junior Member
Posts: 17
Joined: 2006-11-03, 12:59 UTC

Post by *neophite »

hey B4rr4cuda, really nice tool
but i've got a problem with one button bar:
everytime i press ok an error message comes up with this message
"List index out of bounds (160)"
what's up with this?
i use the cache with links to icl option
works fine with all other bars.

greetings neophite
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

B4rr4cuda wrote:Nested Button Bar Creator 2.00 manage "Region A" use :). This tool can create toolbars count you need with links between created bars. Sorry, but I have no link to this tool. I took it from my soft archive.
I have tried this tool, but it doesn't work quite the way I would have it do so. The concept of a group of buttons, each of which links to a separate toolbar, is easily implemented with the TC or BarEdit dialog.
Reading your suggestions I thought about space-shuttle. :D
Really, how can you imagine this automatical add button mechanism for BarEditor?
What "Prevouse button" or "Home button" link must it add in case I open the separate *.bar with F4 key? Or bar was opened with shift+click in TCMenu?
It is not possible with the current version of TC to capture the "previous" toolbar and update a button on a subsequent toolbar with that value. But that is not what I am suggesting.

Perhaps I should have used the term "Parent" bar instead of "Previous".

If the user is willing to surrender to an hierarchical structure for a group of related toolbars, then the parent bar's filename can be bound into a button of a subordinate bar at toolbar design time! What I was asking BarEdit to do is to internally manage that "early binding" of buttons to bars.

My idea is to add a "folder tree" of toolbars on the left margin of BarEdit. The tree control would enable drag and drop of user bar files into a hierarchy of such files. BarEdit would maintain internally a "Home" button definition and a "Parent" button definition for each tool bar by design-time inspection of the hierarchy. The user could then set BarEdit dialog options to "Add Home button here" and "Add Parent button here" to whatever bar was being edited. For the user designated "Home" toolbar (placed by the user at the top of its hierarchy in the tree), those options would be grayed out.

The tree control would also make it easy to navigate the toolbar hierarchy and select which bar to edit inside BarEdit without resorting to the File Open dialog.

This is straight forward to program, especially if you use one of the many third party tree controls that allow you to assign text (such as a toolbar file name) to a tree-node data field.

Maybe I'll get around to creating this sort of thing sometime.
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
User avatar
B4rr4cuda
Junior Member
Junior Member
Posts: 52
Joined: 2007-08-13, 21:13 UTC

Post by *B4rr4cuda »

neophite Do you have in this bar buttons with
%COMMANDER_PATH% variable?
If yes, this bug was reported at russian TC forum but I can't find it...


Who support JohnFredC's suggestion?
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Post by *Vansumsen »

:arrow: B4rr4cuda

Thanks for localisation.

But I encounter a little problem because French language takes generally more place than English language.

Is it possible to encrase the space for these strings :
5076="Run minimized" —> (Lancer en icône)
5077="Run maximized" —> (Lancer en taille maximale)
Links To Icl="Links to icl" —> (Liens vers icl)
With TCMenu="With TCMenu" —> (Avec TCMenu)
On t op="On t op" —> (À l'avant plan)

You seems also to use an incomplete set of font (MS Sans Serif) is it possible to change for a complete one for example "Microsoft Sans Serif" like in TC by default !

Last but not least : 3 buttons (OK, Cancel and About) are missing for translation

Friendly

Paul
Ouistiti, #11943

L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
User avatar
B4rr4cuda
Junior Member
Junior Member
Posts: 52
Joined: 2007-08-13, 21:13 UTC

Post by *B4rr4cuda »

Vansumsen
I plan to rewrite this tool from scratch. I'll note your suggestions next version.
User avatar
neophite
Junior Member
Junior Member
Posts: 17
Joined: 2006-11-03, 12:59 UTC

Post by *neophite »

@b4rr4cuda:
no but i've used the %systemroot% variable
after i've changed it the error was gone
thanx
User avatar
B4rr4cuda
Junior Member
Junior Member
Posts: 52
Joined: 2007-08-13, 21:13 UTC

Post by *B4rr4cuda »

neophite
It is the same bug as with %COMMANDER_PATH% variable.
I'll fix it soon.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7011
Joined: 2003-02-06, 17:36 UTC
Location: Germany

" in Parameters field are stripped

Post by *Horst.Epp »

If i need to protect a path containing spaces in the Parameters field of a button the Editor just removes them on save.
Only if I double them ""path with blanks"" one set is preserved.
But this clearly is removed again on the next edit.

Unfortunately I use TCMenu with bar files containg spaces in their pathname.
User avatar
B4rr4cuda
Junior Member
Junior Member
Posts: 52
Joined: 2007-08-13, 21:13 UTC

Post by *B4rr4cuda »

Ok, I'll note this.
batchman61
Junior Member
Junior Member
Posts: 44
Joined: 2003-02-07, 19:24 UTC
Location: Germany

Post by *batchman61 »

Hi,

support for JohnFredCs suggestion !

I do this by hand for years, using a bar-template with a "Home" Button, a "Parent" Button and a separator.
User avatar
B4rr4cuda
Junior Member
Junior Member
Posts: 52
Joined: 2007-08-13, 21:13 UTC

Post by *B4rr4cuda »

2JohnFredCs and batchman61
Ok. I'll do it.
User avatar
B4rr4cuda
Junior Member
Junior Member
Posts: 52
Joined: 2007-08-13, 21:13 UTC

Post by *B4rr4cuda »

v 1.5
[*] Do not include bar files to ""
[*] Self load Tc's localization
[*] Ignore msconfig as unexisted file

v 1.5 beta
[/] Program have been rewriten from scratch.
[+] Show specified icons for unexisted programs and icons. (UseBarIclIcons=1 Default: ON)
[+] Show em_ commands in Command Browser.
[/] Localization and parameters moved into separate file.
[+] "AskToSaveOnExit" option to show dialog on exit if bar changed. (Default: OFF)
[+] Button to load default iconlib. Specify path in DefIconLib param in BarEditor.ini. (Default: DefIconLib=WCMICONS.DLL)
[+] "Language" option to specify language. <name>.lng must be situated in program's path. (Default: Language=English)
[+] "wincmd" option specify ТС option file. Use to except troubles or to be sure.
[+] Cache generation starts if cache file is not exist or if icons in bar file were changed.
Here
User avatar
B4rr4cuda
Junior Member
Junior Member
Posts: 52
Joined: 2007-08-13, 21:13 UTC

Post by *B4rr4cuda »

Light update:
[*] Bugs with empty lines in usercmd.ini
[*] Some unlocalized items
[*] Show icons for files without extentions
Here
User avatar
B4rr4cuda
Junior Member
Junior Member
Posts: 52
Joined: 2007-08-13, 21:13 UTC

Post by *B4rr4cuda »

French localization Link
Thanks to Paul aka Ouistiti
User avatar
petermad
Power Member
Power Member
Posts: 16106
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Danish language file can be downloaded at: http://madsenworld.dk/tcmd/bareditor_150_danish.zip

There is a problem with reading localized .INC files when they have more than one blank line (CR/LF) in the end - then you get an error like this:
List index out of bounds (414)
This applies to WCMD_DAN.INC and WCMD_ITA.INC
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply