Hi,

 

  This is a difference in the behaviour of the Windows controls. I mean when
formatting is NO we use a simple EDIT control, when formatting is YES we use
the RichEdit control and for the same message it behaves differently.

 

  Actually to not scroll when using APPEND is a good thing. GTK works the
same way.

 

  But the SCROLLTO should not behave like that (GTK works normal). So I did
a workaround when formatting is YES in Windows and it is working now. Just
committed to CVS.

 

Version 3.10 should be release this month.

 

Best,

Scuri

 

From: Craig Ivey [mailto:[email protected]] 
Sent: segunda-feira, 6 de janeiro de 2014 17:10
To: [email protected]
Subject: [Iup-users] Scrolling to the last line with formatting

 

I am having an issue with scrolling to the last line of multiline text when
FORMATTING=YES.  I am using version 3.9, Windows, MinGW.

The scrolling behavior is different when appending text to a multiline text
box with formatting on/off.  When FORMATTING=NO, it will automatically
scroll to the last line as text is appended.

But when FORMATTING=YES, automatic scrolling does not occur.  I can overcome
this by adding code to scroll to the last line, but the text box exhibits an
odd behavior of showing the last line at the top of the text box and empty
space below.  Adjusting the scroll bar immediately fixes the empty space.

Is it possible to scroll to the last line with FORMATTING=YES and not
encounter this empty-space behavior?

I have pasted some C code to demonstrate this behavior.  Uncomment the one
line to enable the formatting attribute.

http://tny.cz/f7fb59ba

Craig

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to