[Lazarus] EditorToolBarOptions nodes demaged

Ondrej Pokorny lazarus at kluug.net
Thu Oct 15 13:16:37 CEST 2015


On 15.10.2015 12:31, FreeMan wrote:
> In r50059 toolbarconfig.pas
> procedure TIDEToolBarOptionsBase.SaveButtonNames(XMLConfig: 
> TXMLConfig; SubPath: String);
> ..
> XMLConfig.SetDeleteValue(SubPath + 'Button' + IntToStr(I+1) + '/Name', 
> ButtonNames[I], '');
>
>   has only this line, but loadbuttonnames has
>
> ButtonName := XMLConfig.GetValue(SubPath + 'Button' + IntToStr(I) + 
> '/Name', '')
> if ButtonName = '' then  // Old format
> ButtonName := XMLConfig.GetValue(SubPath + 'Buttons/Name' + 
> IntToStr(I) + '/Value', '');
>
> this is from my environmentoptions.xml  after add "build project" menu 
> item, but its Caption has added shortcut and when save in 
> environmentoptions.xml like this. You can see extra added "/" char,  
> tag end chars.
> And I wanna ask question, if I'm not misunderstood, in new format, 
> captions are writing, if its yes its a problem.

Not captions but command/button names.
I am still interested what the actual problem is.

Ondrej
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20151015/24122b34/attachment-0003.html>


More information about the Lazarus mailing list