Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Features: Window Resize, Window Snap, horizontal scroll, treeview, folderdialog, bottom Popup #55

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

NeuralDip
Copy link

@NeuralDip NeuralDip commented Sep 13, 2020

The Features that are added here in detail are:

  1. Window resize:
    -this is an integration from the old work done from ghost (fixed last requests before the merge.. i think) : https://github.com/wjakob/nanogui/pull/146
  1. Window Snap:
    Now window can snap between themselves. This works when a window is moved and when it is resized.
  2. Added Popup bottom. This is helpful in order to create Menu bars.
  • Popup windows now will shift position if they hit the left or top side of the screem
  1. Added possibility for a window not to move.(added m_can_move variable)
  2. Changed vscrollpanel to scrollpanel. now scrolling is possible in both directions.
  3. Added TreeView
  4. Added FolderDialog. Based on Treeview is a simple dialog to select folders. File save and open are not planned for now.
  5. Updated example1 in order to show the features.
  • Please remember to add scrollpanel and teeview files in your project in VS in order for them to be linked correctly.
  • For the lower right resize cursor to appear you will have to edit the files ext/glfw/src/input.c , ext/glfw/INCLUDE/glfw/glfw3.h and ext/glfw/src/win_32_window.c that belong to the glfw submodule. You will have to add
shape != GLFW_VRESIZE_CURSOR &&
shape != GLFW_VHRESIZE_CURSOR)

in the first ,
#define GLFW_VHRESIZE_CURSOR 0x00036007
in the second and
else if (shape == GLFW_VHRESIZE_CURSOR) id = OCR_SIZENWSE;.
in the last.

P.S.I know this commit does not follow all the contributing rules, Unfortunately, me too, i don't have a lot of time to dedicate to this, i just share the code i use for my projects. In case you don't wish to go through it, then i would leave it here just in case someone wishes to take it and complete the task.
best Regards.

@NeuralDip NeuralDip changed the title New Features: Window Resize, Window Snap, Popup bottom New Features: Window Resize, Window Snap, horizontal scroll, treeview, bottom Popup Oct 9, 2020
@NeuralDip NeuralDip changed the title New Features: Window Resize, Window Snap, horizontal scroll, treeview, bottom Popup New Features: Window Resize, Window Snap, horizontal scroll, treeview, folderdialog, bottom Popup Feb 22, 2021
@wjakob wjakob force-pushed the master branch 4 times, most recently from f88c1ac to 69464ef Compare July 1, 2021 08:19
@wjakob wjakob force-pushed the master branch 8 times, most recently from 7652c39 to 819262f Compare October 27, 2022 20:25
@wjakob wjakob force-pushed the master branch 3 times, most recently from e9c6fc9 to 0f47fe0 Compare October 27, 2022 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant