General Discussions
Discuss anything about this project.
146
Topics
732
Posts
3
Followers
Yes No
Hide topic messages
Yes No
Enable infinite scrolling
Nana v1.7.3 fails to build with g++ v5.1, which is the standard compiler with code::blocks release. Upgrading the compiler to v8.3 allows nana to build. Note that upgrading the code::blocks compiler is an advanced task.

The nana downloads page says it will build with "Any Standard C++ compiler(Visual C++ 2013, GCC/MinGW and Clang)". This is false.

Here is v5.1 error:

--------------
4replies
33views
recent by ravenspoint  ·  Feb 12 at 4:22 pm
ABD posted Jan 28 at 1:10 am
A few months ego I guessed that NANA is dead. Today, that comment is not a guess and is a reality. The main developer of the NANA has disappeared!!! and no longer continue developing the library.

Some of the more experienced users of NANA, like Error Flynn is trying to help and keep the hope alive by finding the bugs and write a fix for them. But, I think his efforts and other good people
14replies
141views
recent by ABD  ·  Feb 7 at 6:25 pm
It has been almost two years that I started to learn NANA for developing the GUI for my applications. It was a challenging and interesting experience for me. I was very excited that I am learning a library that soon would be a rival to Qt and wxWidgets, but unfortunately the pace of development of NANA and its awful documentation made me very disappointed.

Recently I noticed that the main d
23replies
203views
recent by qPCR4vir  ·  Dec 7 '19 at 3:15 am
Zeleska posted Nov 28 '19 at 5:16 am
Nana should have its centralized place to contribute to documentation? Yes :d
I have created a html documentation "template" for Nana in GitHub for everyone to contribute to it. You can clone the repository and start adding new pages and changes.
github.com/Zeleska/Nana-doc

Examine nana-button.html to understand how the class "accordion" and the class "panel" work.

The structure is
9replies
58views
recent by ravenspoint  ·  Dec 1 '19 at 2:38 pm
ravenspoint posted Nov 6 '19 at 8:44 pm
From the blog:


The really important part is the API (the design of the global structure, main classes and functions)


So, maybe, there should be some discussion about this?

The first thing that hits me when I look at nana's API design is the large numbers of things that serve almost the same purpose but are not quite identical. This really clutters up the design and makes nana hard
5dc32d3ba276e.png
21replies
157views
recent by ravenspoint  ·  Nov 26 '19 at 8:13 pm
The Goal and the goals of nana. : I just added this nana blog. Jinhao added this text some months ago on the wiki, with the intention of getting people helping to improve it. But I afraid it have not a good visibility there.
I hope it will help people understand a few things, and that it will be improved.
(you can just improve the wiki, and I will port it back)

20replies
172views
recent by qPCR4vir  ·  Nov 18 '19 at 3:49 pm
Yeah, the Winter is coming) (or Q- What does it mean), and we need to be prepared.
This will be a post blog I'm thinking about. The reason is that a new major version of the c++ standard is a great opportunity for all of us to improve our programming experience, but it is also a lot of work as library maintainer and tester.
Nana already has experience with this: the c++03 version was maint
5replies
60views
recent by qPCR4vir  ·  Nov 14 '19 at 10:01 am
Hi, I am using gcc-7.3.0 (provided with qt-5.13.1). When i try use nana-1.7.2 then there is a lot of linking problems with filesystem, either when i use nana or std filesystem. All of them are related with filebox and filesystem units.

1 - first approach - default build

cmake -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=/d/work/libextern/windows_mingw_x86_gcc_7.3.0/nana-1-7-2 ../nana
then m
19replies
115views
recent by bartek  ·  Nov 7 '19 at 8:18 pm
I remember a few months back, after a few exchange of messages, Jinhao agreed to cleanup the NANA classes and method's name and their arguments in version 1.8.

I am wondering if this is still on?

For example:

if a class is called "Sort", it would be nice to have the methods like this:

Sort::sort_list();
Sort::sort_first();
Sort::sort_last();
Sort::sort_enable();
Sort::sort_disabl
5replies
93views
recent by ABD  ·  Nov 7 '19 at 2:21 am
besh81 posted May 16 '19 at 12:02 pm
Hi All,

I'm working on a new project and I would like to create a customizable layout where the user can show/hide, arrange, move, resize, etc ... several panels.
As reference example think to the MS Visual Studio editor.

I've worked a little with the DOCK field and it seems to be a good start but not yet complete.

Is there someone who use the DOCK field? If yes, what are your impr
6replies
53views
recent by ABD  ·  Oct 4 '19 at 1:51 pm
Jbec posted Mar 27 '19 at 11:11 pm
Hello

I'm trying to compile nana-creator for linux. I downloaded the project and it includes a build/codeblocks_linux folder.

I opened that project and when I gave it to compile I get the following errors:

nana-creator/src/creator.cpp:179:9: error: could not convert ‘nana::filebox::operator()() const()’ from ‘std::vector<std::experimental::filesystem::v1::__cxx11:
4replies
51views
recent by kassane  ·  Sep 27 '19 at 6:40 pm
Running the following simple demo and dragging the splitter bar to left (or right) close to the edge cause a crash due to the dock caption text renderer function

#include <nana/gui.hpp>
#include <nana/gui/place.hpp>
#include <nana/gui/widgets/button.hpp>

using namespace nana;

int main()
{
form fm{ API::make_center(600, 400) };

place p(fm);
p.div("margin=10 doc
1replies
19views
recent by besh81  ·  Sep 5 '19 at 4:40 pm
ravenspoint posted Aug 14 '19 at 4:21 pm
Nana does not provide an arc drawing primitive, so we have to use the windows API directly. Something like this:

#include <cmath>
#include <nana/gui.hpp>

#include <windows.h>

/** Draw Arc of circle
@param[in] graph context
@param[in] x for conter, pixels 0 at left of window
@param[in] y for center, pixels 0 at top of window
@param[in] r radius, pixels

5d54260006bce.png
2replies
29views
recent by ravenspoint  ·  Aug 20 '19 at 6:10 pm
mariusm posted Jun 25 '19 at 2:28 pm
I need to make a function which open new form. In this form need to use mouse event and change label caption. Need this form to open many times.

bool openHold() {
using namespace nana::gui;

form fm(nana::rectangle(20, 20, 300, 300));
fm.caption(L"Hello World");

static label lm(fm);
lm.caption(L"Hello, world!");
button change(fm), quit(fm);
change.caption(L"Change
5replies
32views
recent by Error Flynn  ·  Jun 26 '19 at 9:14 pm
mariusm posted Jun 22 '19 at 2:21 pm
I want to build a program with system tray. For this I used WINAPI WinMain

When I close the program using LRESULT CALLBACK WindowProcedure I get this error: Nana.Gui detects a memory leaks in window_manager, 2 windows are not uninstalled

I try nana::API::exitall() but get error: 'exitall' : is not a member of 'nana::gui::API

I use Visual Studio 2008

2replies
13views
recent by mariusm  ·  Jun 25 '19 at 2:22 pm
Load more
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft