Is there an easy way to update an MLE and get the display to always make the last line visible?
I have a number of places where we use DCMULTILINE to display audit logs and I've tried a number of things but never really got a handle on the correct way to do this.
Anybody have any tricks they can show me?
DCMULTILINE text display
DCMULTILINE text display
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com
Real Business Applications Ltd
http://www.rbauk.com
Re: DCMULTILINE text display
Code: Select all
@ x,y DCMULTILINE cStatus ... OBJECT oStatus
(.. somewhere in your code, where oStatus gets updated ...)
FUNCTION UpdateStatus(cStatus,oStatus,nStatusLineWidth)
cStatus += "Something happend!"+CRLF
oStatus:SetData()
oStatus:SetFirstChar(Len(cStatus)-nStatusLineWidth)
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: DCMULTILINE text display
Should have known it would be so simple...!Tom wrote:Code: Select all
@ x,y DCMULTILINE cStatus ... OBJECT oStatus (.. somewhere in your code, where oStatus gets updated ...) FUNCTION UpdateStatus(cStatus,oStatus,nStatusLineWidth) cStatus += "Something happend!"+CRLF oStatus:SetData() oStatus:SetFirstChar(Len(cStatus)-nStatusLineWidth)
And even if I am not updating the text and displaying at the same time, I can always use code to work out the last line anyway.
Thanks, Tom
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com
Real Business Applications Ltd
http://www.rbauk.com
Re: DCMULTILINE text display
A pleasure. 

Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: DCMULTILINE text display
Tom -
I just used your solution too after exhausting every way to use xbeK_CTRL_END.
Thanks
I just used your solution too after exhausting every way to use xbeK_CTRL_END.
Thanks
The eXpress train is coming - and it has more cars.