c++wxwidgetswxgrid

How do you use SetTabBehaviour in wxWidgets for C++?


I'm new to C++ Widgets and am trying to use the wxWidgets to create a grid. I have come across the function: "SetTabBehaviour" in the following documentations: (https://fossies.org/linux/wxWidgets/include/wx/generic/grid.h) and (https://docs.wxwidgets.org/trunk/classwx_grid.html#acd42a9c04692a5ef6b0a4997c4e9a77e). How does one go about calling this class? Any help would be greatly appreciated, including help on calling enums or classes in C++.


Solution

  • Tab_XXX constants are declared inside wxGrid class, so you need to qualify them with wxGrid:: prefix when using them, e.g. grid->SetTabBehaviour(wxGrid::Tab_Stop).