SourceEditor context menu for tabs [was: Two minor issues with the tabs of the source-editor]
Original Reporter info from Mantis: T. Kirsch
-
Reporter name:
Original Reporter info from Mantis: T. Kirsch
- Reporter name:
Description:
This issue was created to split the related "dual report" #19845 (closed)
Additional information:
Second, a somewhat related issue with the source-editor tabs:
In Windows (don't know how it's done elsewhere), a context menu's context - if invoked by a mouse click - is usually given by the mouse position. For tabbed applications this means that you get the context menu of the tab you've clicked on (i.e. of the item that's associated with that tab - a file, a web site, whatever), not of the tab that was active before the click.
The most straightforward way to achieve this is to treat a right click as if it was preceded by a left clíck - first the clicked tab becomes the active tab, then the pop-up menu is fired. That's how it looks in UltraEdit or VisualStudio (and probably in Delphi, too - haven't worked with that in many years). Would be nice (and muchh less confusing) if Lazarus could also work this way.
Just as a reminder: Making the clicked tab the active tab is good for an editor, but may not be desirable in other applications (Firefox for instance shows the tab's context menu without activating/showing its web page beforehand), therefore it shouldn't be the general behaviour of a tab control.
Mantis conversion info:
- Mantis ID: 19846
- Version: 0.9.30