Jump to content

dxScroll


Recommended Posts

Posted

Hey all, i have a dude, and its how to make something drawed scrollable like memo's that you cna scroll text and that??

"El conocimiento jamás debe detenerse, por que es lo único que nos salvará cuando no nos quede más".

Att: -|TG|-Mister[Q]<.

  • MTA Team
Posted

Your memo has to show some lines with text. That means you have to store, which memo is visible including the text for each memo.

gMemo = { { messages = {}, visible = true }, { messages = {}, visible = true } } -- each index is one line 

Each memo has it's own size. That means you have to store the size of the memo.

gMemo = { { messages = {}, visible = true, width = 300, height = 300 }, { messages = {}, visible = true, width = 400, height = 400 } } 

Your memo can only show a part of the text. That means you have to store the position, where the text starts and how many lines it can show.

gMemo = { { messages = {}, visible = true, width = 300, height = 300, position = 0, linecount = 8 }, { messages = {}, visible = true, width = 400, height = 400, position = 15, linecount = 10 } } 

You can add more of course, but that should give you a small help for the beginning.

Possible functions:

  • dxCreateMemo
  • dxMemoSetSize
  • dxMemoGetSize
  • dxMemoClear
  • dxMemoSetText
  • dxMemoGetText
  • dxMemoRender
  • dxMemoSetLine
  • dxMemoGetLine
  • dxMemoSetVisible
  • dxMemoGetVisible
  • dxMemoDestroy

Posted

Any other example? Im triying to make this little list...but with the time user will need to add more people, so this should be scrolled...how to make it??

2hxreac.jpg

"El conocimiento jamás debe detenerse, por que es lo único que nos salvará cuando no nos quede más".

Att: -|TG|-Mister[Q]<.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...