Преглед изворни кода

Update controls_test_suite.c

Ray пре 2 година
родитељ
комит
80b4d6ec06
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      examples/controls_test_suite/controls_test_suite.c

+ 3 - 3
examples/controls_test_suite/controls_test_suite.c

@@ -263,11 +263,11 @@ int main()
 
 
             GuiColorBarAlpha((Rectangle){ 320, 490, 200, 30 }, NULL, &alphaValue);
             GuiColorBarAlpha((Rectangle){ 320, 490, 200, 30 }, NULL, &alphaValue);
 
 
-            GuiSetStyle(TEXTBOX, TEXT_ALIGNMENT_VERTICAL, 1);   // 0-CENTERED, 1-TOP, 2-BOTTOM (does not work as expected in case of vertical alignment)
-            GuiSetStyle(TEXTBOX, TEXT_WRAP_MODE, TEXT_WRAP_WORD);            // 0-NO_WRAP, 1-CHAR_WRAP, 2-WORD_WRAP (if wrap mode enabled, text editing is not supported)
+            GuiSetStyle(TEXTBOX, TEXT_ALIGNMENT_VERTICAL, TEXT_ALIGN_TOP);   // WARNING: Word-wrap does not work as expected in case of no-top alignment
+            GuiSetStyle(TEXTBOX, TEXT_WRAP_MODE, TEXT_WRAP_WORD);            // WARNING: If wrap mode enabled, text editing is not supported
             if (GuiTextBox((Rectangle){ 678, 25, 258, 492 }, textBoxMultiText, 1024, textBoxMultiEditMode)) textBoxMultiEditMode = !textBoxMultiEditMode;
             if (GuiTextBox((Rectangle){ 678, 25, 258, 492 }, textBoxMultiText, 1024, textBoxMultiEditMode)) textBoxMultiEditMode = !textBoxMultiEditMode;
             GuiSetStyle(TEXTBOX, TEXT_WRAP_MODE, TEXT_WRAP_NONE);
             GuiSetStyle(TEXTBOX, TEXT_WRAP_MODE, TEXT_WRAP_NONE);
-            GuiSetStyle(TEXTBOX, TEXT_ALIGNMENT_VERTICAL, 0);
+            GuiSetStyle(TEXTBOX, TEXT_ALIGNMENT_VERTICAL, TEXT_ALIGN_MIDDLE);
 
 
             if (showMessageBox)
             if (showMessageBox)
             {
             {