Home » Community » Newbie corner » Separate Info Window (like Exclamation but not modal)
Re: Separate Info Window [message #47829 is a reply to message #47826] |
Fri, 07 April 2017 17:36  |
roger
Messages: 9 Registered: August 2016
|
Promising Member |
|
|
I finally got this working using something like:
in layout file:
LAYOUT (SeparateInfoWindowLayout, 300, 100)
ITEM(DocEdit, content, HSizePosZ(10,20).VSizePosZ(30,40))
END_LAYOUT
and in C++ code:
#include "Layout.h"
class SeparateInfoWindow : public WithSeparateInfoWindowLayout<PlacementAware>
{
typedef SeparateInfoWindow CLASNAME;
public:
SeparateInfoWindow();
void Initialize();
private:
void OnCancelAction();
} ;
SeparateInfoWindow::SeparateInfoWindow()
{
CtrlLayout(*this);
Sizeable(true);
MinimizeBox(true);
MaximizeBox(true);
}
void SeparateInfoWindow::Initialize(){}
SeparateInfoWindow::OnCancelAction() { Close(); }
Still later in C++ code:
SeparateInfoWindow siw;
if(siw.IsOpen()); else siw.Sizeable().OpenMain();
siw.content.Set("strings with embedded \\n's\n\nand they wrapped horizontally ........\n\nand the DocEdit sprouted a vertical scrollbar when needed! :))");
siw.SetReadOnly();
// (sorry about any typos, I copied this manually from the development system - which is not connected.)
[Updated on: Fri, 07 April 2017 20:54] by Moderator Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue May 06 16:48:52 CEST 2025
Total time taken to generate the page: 0.00985 seconds
|