|
|
Home » Developing U++ » UppHub » MessageCtrl: A passive notifications ctrl and manager. (A a usefule CtrlLib add-on.)
Re: MessageCtrl: A passive notifications ctrl and manager. [message #49603 is a reply to message #49602] |
Sun, 11 March 2018 12:32 |
Oblivion
Messages: 1092 Registered: August 2007
|
Senior Contributor |
|
|
Hello Luigi,
The thing is, MessageCtrl is simply a manager, there is no real reason to add it to a "layout".
IT is not a Ctrl derived class.
Messages will resize automatically depending on the size of it's parent.
You instantiate it in your, say, TopWindow, and then set a target (a Ctrl) for it to attach:
class MyWindow : public TopWindow {
MessageCtrl messages;
DocEdit editor;
RichEdit richeditor;
void DisplayEditorErrorMessage() {
messages.Error(editor, "This is an error message.");
}
void DisplayRichEditorSuccessMessage() {
messages.Success(richeditor, "This is a success message.");
}
// Other members, constructors, etc...
};
Think of it like a Prompt. You do not use them with layout. Nor MessageCtrl. (Of course you can also attach messages to layouted ctrls)
Example code provided with the MessageCtrl demonstrates that. (It adds top message boxes to the window itself, and the bottom meassage box to the editor widget.)
I've written a new example to clarify the behaviour. Please find the attached example.
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Sun, 11 March 2018 18:04] Report message to a moderator
|
|
|
|
|
MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Sun, 18 February 2018 19:21
|
|
|
Re: Notification: A passive notifications ctrl and manager.
By: Klugier on Sun, 18 February 2018 20:58
|
|
|
Re: Notification: A passive notifications ctrl and manager.
By: Klugier on Sun, 18 February 2018 21:28
|
|
|
Re: Message: A passive notifications ctrl and manager.
By: Oblivion on Mon, 19 February 2018 01:10
|
|
|
Re: Message: A passive notifications ctrl and manager.
By: Oblivion on Mon, 19 February 2018 15:01
|
|
|
Re: Message: A passive notifications ctrl and manager.
By: Klugier on Mon, 19 February 2018 22:12
|
|
|
Re: Message: A passive notifications ctrl and manager.
By: Oblivion on Mon, 19 February 2018 22:35
|
|
|
Re: Message: A passive notifications ctrl and manager.
By: Oblivion on Tue, 20 February 2018 17:46
|
|
|
Re: Message: A passive notifications ctrl and manager.
By: Klugier on Wed, 21 February 2018 00:02
|
|
|
Re: Message: A passive notifications ctrl and manager.
By: Oblivion on Wed, 21 February 2018 00:25
|
|
|
Re: Message: A passive notifications ctrl and manager.
By: Oblivion on Wed, 21 February 2018 20:18
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Fri, 02 March 2018 01:45
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Sun, 04 March 2018 08:33
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Sun, 04 March 2018 10:40
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Sun, 04 March 2018 12:35
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Sun, 04 March 2018 13:10
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Sun, 04 March 2018 16:56
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Sun, 04 March 2018 21:05
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Sun, 04 March 2018 23:38
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Sun, 11 March 2018 12:03
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Sun, 11 March 2018 12:32
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Mon, 12 March 2018 08:24
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Mon, 12 March 2018 09:58
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Mon, 12 March 2018 11:34
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Fri, 06 April 2018 23:10
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Fri, 05 April 2019 14:50
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Sun, 25 August 2019 23:03
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Mon, 26 August 2019 01:30
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: forlano on Mon, 26 August 2019 08:56
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Tue, 02 February 2021 22:07
|
|
|
Re: MessageCtrl: A passive notifications ctrl and manager.
By: Oblivion on Sat, 21 January 2023 09:19
|
Goto Forum:
Current Time: Fri Apr 26 01:39:57 CEST 2024
Total time taken to generate the page: 0.06259 seconds
|
|
|