EditorGadget scroll bar bug

Just starting out? Need help? Post your questions and find answers here.
Heis Spiter
User
User
Posts: 41
Joined: Fri Aug 22, 2003 7:10 pm
Location: 76 (FRANCE)
Contact:

EditorGadget scroll bar bug

Post by Heis Spiter »

Hi there,

Here is a small, present in each PureBasic release. When you use a text that is too long, in an EditorGadget, an horizontal scroll bar is displayed. And we can "browse" the text using it in two ways. Move bar, or click arrow. And the bug happens when using right arrow. Scroll bar is infinite when using arrow. It doesn't stop when text is finished.
An example :

Code: Select all

If OpenWindow(0, 0, 0, 322, 150, "EditorGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) And CreateGadgetList(WindowID(0)) 
  EditorGadget(0, 8, 8, 306, 133) 
  AddGadgetItem(0, 0, "This is a too long text : it can't be displayed completly. You'll have to use scrollbar !")  
  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow 
EndIf
Moreover, I've a suggestion, it could be great to have a flag for EditorGadget in order to have automatic wrap with too long lines.
Fred
Administrator
Administrator
Posts: 18161
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

It looks like a 'feature' of the RichEdit control. Can anyone else confirm ?
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

That happens in WordPad under XP so it doesn't look like a PureBasic only issue. You need to change the options to not wrap to see it.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
Heis Spiter
User
User
Posts: 41
Joined: Fri Aug 22, 2003 7:10 pm
Location: 76 (FRANCE)
Contact:

Post by Heis Spiter »

tinman wrote:That happens in WordPad under XP so it doesn't look like a PureBasic only issue. You need to change the options to not wrap to see it.
That's strange :?. Before doing my bug report, I've tried with Notepad, and it didn't do that. Scrolling was blocked when there wasn't text anymore to display...
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

I may be wrong but I think Notepad doesn't use the Richedit control.
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

byo wrote:I may be wrong but I think Notepad doesn't use the Richedit control.
You are correct, Notepad uses the "Edit" class and Wordpad uses "RICHED50W" (at least here on my XPsp2).
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
Post Reply