Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Updating GuiTextListCtrl (https://forums.graalonline.com/forums/showthread.php?t=82611)

DustyPorViva 11-02-2008 01:38 AM

Updating GuiTextListCtrl
 
I have a problem with updating a GuiTextListCtrl. I update it in a low timeout, but the problem is everytime it's updated, it resets the selection and scrolls back to the top. I solved the selection problem easily enough, but I can't figure out how to fix the scrollbar issue... any help?

cbk1994 11-02-2008 01:52 AM

Would something like this work?

PHP Code:

temp.oldpos scroll.scrollpos;

// stuff

scroll.scrolltooldpos[0], oldpos[1] ); 


DustyPorViva 11-02-2008 01:53 AM

That's what I'm doing right now with the selection.

edit: I'm hoping I don't have to go through all this for each text list though...

edit 2: It works, but there is a jump in the scrollbar as it's refreshed and moved back... not what I'm looking for.

LoneAngelIbesu 11-02-2008 02:06 AM

It would help to know what this is for. Chat system? Automated text?

DustyPorViva 11-02-2008 02:13 AM

Why? What it's for doesn't change the fact that when a text list updates, it scrolls back to the selected row.

LoneAngelIbesu 11-02-2008 02:22 AM

Quote:

Originally Posted by DustyPorViva (Post 1438300)
Why? What it's for doesn't change the fact that when a text list updates, it scrolls back to the selected row.

Oh, my bad. I misread and thought you were speaking about a GuiMLTextCtrl.

DustyPorViva 11-02-2008 06:46 PM

No help yet? :(


All times are GMT +2. The time now is 08:41 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.