Page 1 of 1

Set WindowText of TButtonBar1 and 2 to the active buttonbar file name

Posted: 2022-05-11, 21:16 UTC
by diopter
Please, set WindowText of TButtonBar1 and TButtonBar2 to the active buttonbar file name.
It would allow plugins and external tools to extend buttonbar functionality,
and it is only one additional line of code:
SetWindowText(buttonbar_window_handle, buttonbar_file_name);

Thanks,
Uwe

Re: Set WindowText of TButtonBar1 and 2 to the active buttonbar file name

Posted: 2022-05-12, 07:43 UTC
by ghisler(Author)
Thanks for the suggestion, I will add it to the next beta.

Re: Set WindowText of TButtonBar1 and 2 to the active buttonbar file name

Posted: 2022-05-18, 16:35 UTC
by diopter
13.05.22 Added: Button bar: Set window title of the bar to the name of the bar file (without path) (32/64)
Why without path ?

Re: Set WindowText of TButtonBar1 and 2 to the active buttonbar file name

Posted: 2022-05-18, 17:01 UTC
by ghisler(Author)
Shouldn't it be sufficient to distinguish different bars?

Re: Set WindowText of TButtonBar1 and 2 to the active buttonbar file name

Posted: 2022-05-19, 03:37 UTC
by thomasmolover
ghisler(Author) wrote: 2022-05-18, 17:01 UTC Shouldn't it be sufficient to distinguish different bars?
if use the bars with diffrence path and same name...

ex. that more than 2 user setting....

Re: Set WindowText of TButtonBar1 and 2 to the active buttonbar file name

Posted: 2022-05-19, 15:02 UTC
by jinsight
Where do you place this code: SetWindowText(buttonbar_window_handle, buttonbar_file_name)?

If that code is set, where does the Button Bar File Name appear?

Thanks.

Re: Set WindowText of TButtonBar1 and 2 to the active buttonbar file name

Posted: 2022-05-20, 07:16 UTC
by ghisler(Author)
You can use something like ControlGetText in AutoHotkey to get the window text.

Re: Set WindowText of TButtonBar1 and 2 to the active buttonbar file name

Posted: 2022-05-21, 00:07 UTC
by diopter
If I want to change the active button bar by writing into the .bar file, I need the file name with full path.

@ghisler(Author):
Please change it to file name with full path.