Nana Workshop
Share your ideas to help us improve Nana C++ Library.
19
Topics
150
Posts
3
Followers
Yes No
Hide topic messages
Yes No
Enable infinite scrolling
For example listbox allows an icon per item, but this currently has to be a nana::paint::image which can only be created by reading from a file.

Most of the places that use an icon/image usually just call the paste and/or stretch method.

The downside of only accepting a nana::paint::image is that the app can't provided generated or painted icons, e.g. from a nana::paint::graphics.

Wo
0replies
5views
With Code::Blocks, I have to use personality feature of CB to program in nana. Especially in Linux, you have to type in a lot of required libraries like... X11, rt, Xft, etc.... So I decide to create a C::B template wizard for nana (just like SFML, although SFML template not working)... and I like to share it to everyone... nana users.

You can download from here: nana template.

There's a
0replies
8views
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.23.0) is possible to create quite complex GUIs:

using most of the nana controls
setting their attributes
adding custom controls
and much more
17replies
251views
recent by besh81  ·  Feb 12 at 3:33 pm
ravenspoint posted Sep 23 '19 at 6:55 pm
I prefer to use open source code that is header only ( boost ) or provides an 'amalgamation' of the source code ( SQLite ) that can be added to the applications source, rather than a library that must be pre-built and linked to by the application build.

The advantage is that the developer does not need to ensure that the application and the library have been built with the exact same options,
8replies
51views
recent by ravenspoint  ·  Sep 27 '19 at 8:45 pm
Jbec posted Apr 5 '19 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
233views
recent by qPCR4vir  ·  May 10 '19 at 6:49 pm
qPCR4vir posted Apr 4 '19 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
167views
recent by ravenspoint  ·  Apr 11 '19 at 11:45 pm
coarist posted Mar 20 '19 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
23views
recent by qPCR4vir  ·  Mar 20 '19 at 4:37 pm
Dev++ posted Mar 3 '19 at 8:05 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
101views
recent by Error Flynn  ·  Mar 11 '19 at 12:54 am
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
56views
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
39views
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
30views
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
43views
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
29views
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft