Bug 83203
| Summary: | Focus problems in program with scrollable textbox and scrollable listbox | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Martin Sjvgren <md9ms> |
| Component: | newt | Assignee: | Miroslav Lichvar <mlichvar> |
| Status: | CLOSED RAWHIDE | QA Contact: | Jay Turner <jturner> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | srevivo |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2006-06-08 15:59:31 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Confirmed, this is indeed a problem. Apparently, this combination of widgets is probably unusual enough to be not a problem for most programs. I will see if i can fix this... Fixed in newt-0.52.2-7. |
From Bugzilla Helper: User-Agent: Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U;) Gecko/20021226 Debian/1.2.7-6 Description of problem: The following program demonstrates the behaviour. I can't find a way to scroll the listbox, only the textbox. I've tried this in mlterm, xterm and a framebuffer console, same result. #include <stdio.h> #include <string.h> #include <newt.h> int main() { int i, width = 75, height = 22; newtComponent form, listbox, textbox, bOk; newtInit(); newtCls(); newtCenteredWindow(width, height, "Test"); form = newtForm(NULL, NULL, 0); textbox = newtTextbox(1, 2, width-4, 10, NEWT_FLAG_WRAP | NEWT_FLAG_SCROLL); newtTextboxSetText(textbox, "abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd"); listbox = newtListbox(1, 13, 6, NEWT_FLAG_RETURNEXIT); for (i = 0; i < 10; i++) { char text[256]; sprintf(text, "Choice %d", i); newtListboxAppendEntry(listbox, text, (void *)i); } bOk = newtCompactButton((width-6)/2, height-2, "OK"); newtFormAddComponents(form, listbox, textbox, bOk, NULL); newtRunForm(form); newtPopWindow(); newtFinished(); return 0; } Version-Release number of selected component (if applicable): 0.51.0 How reproducible: Always