This FAQ is to give simple examples to demonstrate what Nana has to offer.
Still questions? Ask me: cnjinhao at hotmail com
There are examples in documentation use main() function as the entry function. In Windows system, the main() function is the entry for console application, therefore, you can see a console window when run these examples. To disable the console, choose Win32 Application project and WinMain() function for the entry.
Nana library does not provide functions to accss the system message loop, because this feature is platform-depended. Nevertheless, by using some library features, it is possible to use Windows subclassing to access native window handles and messages. The window subclassing is to use SetWindowLong() function with GWL_WNDPROC to specify a new window procedure for the specified window. There is a sample class toolkit for implementing the window subclassing written in C++11, click here for the sample.
Yes, Nana does. Nana provides a powerful class place for layout management, it can makes code much clearer and shorter. Class place supports the splitter bar, you can split windows without writting code. By using class place, the program can change its layout dynamicaly without rebuilding it. Please refer to the doc for the details of class place.
nana::string is a typedef name of std::string or std::wstring. If NANA_UNICODE is defined, nana::string is a typedef name of std::wstring, otherwise std::string.
Nana provides a class charset.
Refer the doc for more details.
Yes, Nana has support for BiDi languages.
When you want to draw something, you need a graphics object. For example, draw a rectangle on a form by using GDI+.
Refer the doc for the class drawing.