Skip to content

Custom controls #140

Answered by frang75
gbernaldo82 asked this question in Q&A
Jul 3, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @gbernaldo82! Thank you for use NAppGUI-SDK.

For create custom controls you have to use View component, that allows you to draw anything and get the mouse/keyboard events. You have several examples:
https://nappgui.com/en/howto/col2dhello.html
https://nappgui.com/en/demo/die.html
https://nappgui.com/en/demo/bode.html

You can also use the undocumented API drawctrl.h that allows you draw some items with the native look. e.g Headers and Checkboxes. Take a look to ListBox and TableView. In NAppGUI these components are "custom controls" instead a wrapper over native components.

On the other hand, if what you are looking for are controls that change the morphology of the interface, take a lo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gbernaldo82
Comment options

Answer selected by gbernaldo82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants