Author Topic: Multiple Instances... (feature request).  (Read 313 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2619
  • Hero Points: 210
  • Text
Multiple Instances... (feature request).
« on: August 08, 2022, 10:22:59 pm »
Would it be possible to make the title bar different in each instance?

Specifically, I was thinking that beta releases should have Beta in the title bar.
OTOH, if there was a per-instance setting it might be even better.

Speaking of the title bar - seems like there was a setting someplace to control what shows up in the main app title bar, as well as a tab setting (which can be set to 1 of 4 things).

It would be great to make the main app title bar be configured with a string.
Create a global alias "vslicktitlebar".
The default would be
Code: [Select]
%\M_maybe_prefix_quote_func _workspace_path% - %\f - %\M_maybe_prefix_quote_func xw_p_buf_name%
(I couldn't find an easy way to get the current buffer full file name, or even just its path - odd).

This lets us users set the title bar to whatever we like, and doesn't even require any new UI to implement!

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6493
  • Hero Points: 507
Re: Multiple Instances... (feature request).
« Reply #1 on: August 09, 2022, 12:32:24 am »
If you OR in 0x4 into VSOPTION_APPLICATION_CAPTION_FLAGS, the instance id will be appended ("(1)"). Mine is set to 0x4.

Code: [Select]
<misc.options n="misc.options" version="1">
               ...
<application_caption_flags v="0x4"/>
</misc.options>

I'm not totally happy with the configuration of the title bar. It should support some sort of parse in parts text. It's a bit complicated due to backward compatibility and special cases. It may require multiple settings to handle certain situations (None open, project open, file open, project and file open). Even with this design it's complicated. In addition, adding yet another configurable special case will be a nightmare.
« Last Edit: August 09, 2022, 01:13:42 am by Clark »