How to not have Quit at bottom of system tray? #5740
-
|
I'm trying to make a clipboard manager app with a system tray, and I don't really want the Quit menu item at the very bottom. One reason for this is if the user sets it to show like 100 items from the clipboard history or something. I don't really want to calculate if that goes off the screen, so I'd rather just put Quit at the top. Else, the user can't Quit the application. I'd rather just have "Settings" & "Quit" at the top. Is there a way to prevent this? Looking at the code, I guess I just always set the last menu item to have IsQuit = true and make sure I don't set the action to nil, but not sure if this will break in a future version. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Putting Quit at the top seems strange - remember that the system tray menu can pop up from many different places depending on system - and so that could lead to top-down with Quit right under the mouse which would be very unexpected. I don't see how calculating screen coordinates is related? |
Beta Was this translation helpful? Give feedback.
In the settings, the user can choose the number of items. If they put in something like 50 items, like playing around with it, it could be possible that Quit is off-screen and have to manually kill the app.
Most of the time I expect the user to use like Ctrl+Shift+V or something which will have a popup menu at cursor position, which won't include Quit, etc.
While I agree with you that it might be strange to have Quit at top, I think it'd be good for the developer to decide where they want Quit and if they even want it in the menu or not (for example, could click "open" and then have a button for "quit app" there if don't want "quit" in the menu).
Anyway, I guess it's resolved, as I can ju…