Nana Workshop
Share your ideas to help us improve Nana C++ Library.
16
Topics
138
Posts
3
Followers
Yes No
Hide topic messages
Yes No
Enable infinite scrolling
Jbec posted Apr 5 at 10:06 pm
Hello

Nana has an interesting way to align the different widgets. I found this article:

http://nanapro.org/en-us/blog/2016/05/an-introduction-to-nana-c-library/

Using colors offers a very clear vision of how widgets are distributed on the screen.

For simple designs it is fine, but for more complex ones it can be a real chaos.

Using nana-creator I recreate a complex window (abo
35replies
214views
recent by qPCR4vir  ·  May 10 at 6:49 pm
qPCR4vir posted Apr 4 at 9:27 pm
The following is based on what I wrote back in February-2014 but it is surprisingly actual and I would want to know yours opinions.

I can see different kind of documentation and this is what I think about it:

The “official”: (author driven)
A general document. Generated independently of the nana source code. It is somewhat stable and therefor approximately actualized to some n
24replies
162views
recent by ravenspoint  ·  Apr 11 at 11:45 pm
coarist posted Mar 20 at 12:16 pm
Windows 10 x64
Visual Studio 2017
Nana 1.7

The notepad example did not build (I am unable to build). The code lines that I encounter problem include:

textbox_.load(arg.files.at(0).data());
class std::experimental::filesystem::v1::path has no member 'data'
return (fbox.show() ? fbox.file() : "");
filebox.show() is not bool. It is
std::vector<std::experimental::filesystem::v1::pat
2replies
20views
recent by qPCR4vir  ·  Mar 20 at 4:37 pm
Is there any benefit of closing the image

picture headerIco{ header,true };
headerIco.load(paint::image("assets/topico.bmp"));
headerIco.move(rectangle{ 50,1,20,20 });
vs

paint::image headerIcoImg;
headerIcoImage.open("assets/topico.bmp");
picture headerIco{ header,true };
headerIco.load(paint::image("assets/topico.bmp"));
headerIco.move(rectangle{ 50,1,20,20 });
headerIcoImg.close();
Wha
5c7c32cfc3d5a.png
16replies
86views
recent by Error Flynn  ·  Mar 11 at 12:54 am
besh81 posted Nov 9 '18 at 2:37 pm
Hi all,

Nana Creator is a a RAD tool for Nana C++ Library

I'm slowly developing this project and of course there are still a lot of code lines to write and ideas to implement but some of you could find it useful as it is.

At this stage (0.22.0) is possible to create quite complex GUIs:

using most of the nana controls
setting their attributes
adding custom controls
and much more
16replies
234views
recent by besh81  ·  Mar 4 at 1:34 pm
jinhao posted Oct 8 '18 at 10:09 pm
Hi,
The support of drag&drop feature is under construction, it was inspired by Yanmiao's post. There will be 2 new classes for drag&drop.

simple_dragdrop. It is used for easily implementing data exchange by using drag&drop in the current process.
dragdrop. It is used for implementing data exchange between different processes by using drag&drop.
I checked an initial commit i
3replies
54views
recent by jinhao  ·  Oct 27 '18 at 10:49 am
emarti posted Nov 15 '17 at 2:00 am
https://github.com/emartisoft/nanaCppGUI_Demo

A small graphical user interface (GUI) application with Nana C++ Library using Visual Studio IDE. It includes source code and executable files (x86, x64).

Nana C++ GUI Library System Path variable name is $(nana) on Windows. You do not forget to input it.

Enjoy it!



5a0b9f09091e3.png
1replies
38views
recent by jinhao  ·  Nov 15 '17 at 8:22 am
jinhao posted Feb 23 '17 at 3:42 am
The fit-content feature was mentioned by @vyger09 in the post http://nanapro.org/en-us/forum/index.php?u=/topic/31/gghow-to-dynamically-change-the-size-of-a-combox
Now, I finished the basic works for the feature.


int main()
{
using namespace nana;

form fm;
button btna{ fm }, btnb{ fm }, btnc{ fm };

btna.caption("This is very long long long title");
btnb.caption("S
58ae5104c60f8.png
3replies
29views
recent by Andrew  ·  Feb 28 '17 at 12:50 am
tomas posted Aug 21 '16 at 12:15 pm
The current layout API looks little awkward to me. What about to replace current layout definition with c++ function calls? This comes my mind:

Example1:

fm.layout(vert()
| space()
| group(horiz() | stretch(0.2) | widget(lab, 0.8) | stretch(0.2))
| space()
| group(stretch() | widget(btn) | stretch())
);
This way

filling the name-control map is not needed because all contro
1replies
42views
recent by jinhao  ·  Aug 21 '16 at 7:18 pm
jinhao posted Jun 14 '16 at 5:55 am
First of all, I am sorry to make such breaking changes what make you must pay attention to maintain your code. But these changes are necessary.

Breaking Changes of Listbox
Member types

listbox::selection //deprecated
listbox::index_pairs //now

listbox::column_indexs //deprecated
listbox::size_type //now, use size_type instead

Access Header Columns

listbox.header_width(po
0replies
28views
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft