mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
Messages: try to fix API message handling
Passed timeout for messeages an popup's fired by yWeb API was not really ok. For popups now we have a setting with default value of 6 seconds timeout Popups fired with ShowHint() use this as default. Value of 0 and -1 are ignored. Messages fired with ShowMsg() should be fixed and interpret value 0 or -1 as no timeout and will remain on the screen.
This commit is contained in:
@@ -35,7 +35,8 @@
|
||||
#define HINTBOX_MIN_WIDTH 420
|
||||
#define HINTBOX_MIN_HEIGHT 125
|
||||
#define HINTBOX_MAX_HEIGHT 520
|
||||
#define HINTBOX_DEFAULT_TIMEOUT 5
|
||||
#define HINTBOX_DEFAULT_TIMEOUT g_settings.timing[SNeutrinoSettings::TIMING_POPUP_MESSAGES]
|
||||
#define NO_TIMEOUT -1
|
||||
//frame around hint container as indent
|
||||
#define W_FRAME std::max(HINTBOX_MIN_WIDTH, HINTBOX_MIN_HEIGHT) * 2/100
|
||||
//frame color around hint/message box
|
||||
@@ -328,7 +329,7 @@ class CHint : public CHintBox
|
||||
* Simplified methodes to show hintboxes without titlebar and footer
|
||||
* Text is UTF-8 encoded
|
||||
* @param[in] timeout
|
||||
* @li optional: exepts type int as seconds, default = HINTBOX_DEFAULT_TIMEOUT (5 sec)
|
||||
* @li optional: exepts type int as seconds, default = HINTBOX_DEFAULT_TIMEOUT (get from settings)
|
||||
* @param[in] show_background
|
||||
* @li optional: exepts type bool, enable/disable backround paint, default = true
|
||||
* @see for possible text parameters take a look to CHintBox()
|
||||
|
Reference in New Issue
Block a user