Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
roger is currently offline  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

 
Read Message
Read Message
Previous Topic: GridCtrl scroll callback?
Next Topic: Variable number of TopWindows
Goto Forum:
  


Current Time: Sun May 12 23:49:12 CEST 2024

Total time taken to generate the page: 0.01988 seconds