Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » scrollbar missing for LineEdit [FIXED]
scrollbar missing for LineEdit [FIXED] [message #664] Tue, 24 January 2006 10:09 Go to next message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
When the text of the lineedit is modified programatically, the scrollbar is not displayed even if the text is longer than the horizontal size. In this example, try to enter a long text in the upper LineEdit. The lower lineedit should get a scollbar the same time as the upper one, as their contents are kept the same.
#include <CtrlLib/CtrlLib.h>
class Test : public TopWindow
{
public:
  LineEdit a, b;
  Splitter s;
  void aChanged() { b <<= ~a; }
  Test()
  {
    a <<= THISBACK(aChanged);
    Add(s.Vert(a, b).SizePos());
    Zoomable().Sizeable();
  }
  typedef Test CLASSNAME;  
};

GUI_APP_MAIN
{
   Test().Run();
}

[Updated on: Sun, 30 April 2006 16:41] by Moderator

Report message to a moderator

Re: scrollbar missing for LineEdit [message #666 is a reply to message #664] Tue, 24 January 2006 11:00 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Fixed.

Note however that LineEdit shows horizontal scrollbar when cursor is in long line only and that setting text into LineEdit moves cursor to position 0.
Previous Topic: TopWindow title charset problem on win9x - [FIXED]
Next Topic: FileSelector charset problem - patch
Goto Forum:
  


Current Time: Mon Apr 29 02:39:08 CEST 2024

Total time taken to generate the page: 0.04953 seconds