newtTextbox doesn't show Scrollbar!?

Asked by Constantine Savkov

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

int main(void) {
 newtComponent form, text, button;
 newtInit();
 newtCls();
 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);

 newtRunForm(form);
 newtFormDestroy(form);
 newtFinished();
 return 0;
}

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu newt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
enubuntu (mr.tennents) said :
#1

I suggest to you to ask for question here:
http://ubuntuforums.org/forumdisplay.php?f=310

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.