newtTextbox doesn't show Scrollbar!?

Asked by Constantine Savkov

#include <newt.h>
#include <stdio.h>

int main(void) {
 newtComponent form, text, button;
 text = newtTextbox(0, 0, 30, 5, NEWT_FLAG_SCROLL | NEWT_FLAG_WRAP);
 newtTextboxSetText(text,"Some really long text there that should fit multiple lines in order for scroll to have purpose, it's not shown there but it works, so you can scroll text without seeing actual scrollbar");
 button = newtButton(20, 5 + 2, "Ok");

 newtOpenWindow(5, 5, 34,
   12, "Test Texbox");

 form = newtForm(NULL, NULL, 0);
 newtFormAddComponents(form, text, button, NULL);

 return 0;

Question information

English Edit question
Ubuntu newt Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
enubuntu (mr.tennents) said :

I suggest to you to ask for question here:

You can recive better support.

Can you help with this problem?

Provide an answer of your own, or ask Constantine Savkov for more information if necessary.

To post a message you must log in.