Jump to content

dxScroll


Recommended Posts

  • MTA Team

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

Link to comment

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...