@ -101,23 +101,23 @@ static void ShowHelpMarker(const char* desc)
void ImGui : : ShowUserGuide ( )
void ImGui : : ShowUserGuide ( )
{
{
ImGui : : BulletText ( " Double-click on title bar to collapse window. " ) ;
ImGui : : BulletText ( " Double-click on title bar to collapse window. " ) ;
ImGui : : BulletText ( " Click and drag on lower right corner to resize window ." ) ;
ImGui : : BulletText ( " Click and drag on lower right corner to resize window \n (double-click to auto fit window to its contents) ." ) ;
ImGui : : BulletText ( " Click and drag on any empty space to move window. " ) ;
ImGui : : BulletText ( " Click and drag on any empty space to move window. " ) ;
ImGui : : BulletText ( " Mouse Wheel to scroll. " ) ;
ImGui : : BulletText ( " TAB/SHIFT+TAB to cycle through keyboard editable fields. " ) ;
ImGui : : BulletText ( " CTRL+Click on a slider or drag box to input value as text. " ) ;
if ( ImGui : : GetIO ( ) . FontAllowUserScaling )
if ( ImGui : : GetIO ( ) . FontAllowUserScaling )
ImGui : : BulletText ( " CTRL+Mouse Wheel to zoom window contents. " ) ;
ImGui : : BulletText ( " CTRL+Mouse Wheel to zoom window contents. " ) ;
ImGui : : BulletText ( " TAB/SHIFT+TAB to cycle through keyboard editable fields. " ) ;
ImGui : : BulletText ( " Mouse Wheel to scroll. " ) ;
ImGui : : BulletText ( " CTRL+Click on a slider or drag box to input text. " ) ;
ImGui : : BulletText ( " While editing text: \n " ) ;
ImGui : : BulletText (
ImGui : : Indent ( ) ;
" While editing text: \n "
ImGui : : BulletText ( " Hold SHIFT or use mouse to select text. " ) ;
" - Hold SHIFT or use mouse to select text \n "
ImGui : : BulletText ( " CTRL+Left/Right to word jump. " ) ;
" - CTRL+Left/Right to word jump \n "
ImGui : : BulletText ( " CTRL+A or double-click to select all. " ) ;
" - CTRL+A or double-click to select all \n "
ImGui : : BulletText ( " CTRL+X,CTRL+C,CTRL+V to use clipboard. " ) ;
" - CTRL+X,CTRL+C,CTRL+V clipboard \n "
ImGui : : BulletText ( " CTRL+Z,CTRL+Y to undo/redo. " ) ;
" - CTRL+Z,CTRL+Y undo/redo \n "
ImGui : : BulletText ( " ESCAPE to revert. " ) ;
" - ESCAPE to revert \n "
ImGui : : BulletText ( " You can apply arithmetic operators +,*,/ on numerical values. \n Use +- to subtract. " ) ;
" - You can apply arithmetic operators +,*,/ on numerical values. \n "
ImGui : : Unindent ( ) ;
" Use +- to subtract. \n " ) ;
}
}
// Demonstrate most ImGui features (big function!)
// Demonstrate most ImGui features (big function!)
@ -230,7 +230,8 @@ void ImGui::ShowTestWindow(bool* p_open)
ImGui : : Spacing ( ) ;
ImGui : : Spacing ( ) ;
if ( ImGui : : CollapsingHeader ( " Help " ) )
if ( ImGui : : CollapsingHeader ( " Help " ) )
{
{
ImGui : : TextWrapped ( " This window is being created by the ShowTestWindow() function. Please refer to the code for programming reference. \n \n User Guide: " ) ;
ImGui : : TextWrapped ( " This window is being created by the ShowTestWindow() function. Please refer to the code in imgui_demo.cpp for reference. \n \n " ) ;
ImGui : : Text ( " USER GUIDE: " ) ;
ImGui : : ShowUserGuide ( ) ;
ImGui : : ShowUserGuide ( ) ;
}
}