Jump to content

Recommended Posts

  • Moderators
Posted

Hello.

Is there a way to fix this? The text keeps going behind the scroll bar on Memos. I was searching something on guiSetProperties about margin, but I don't know how to use and I don't know if it will fix this issue.

https://prnt.sc/jjyuit

Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanksspacer.png

Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile
Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment
Discord Oficial do MTA: https://mtasa.com/discord
Blacklist e Whitelist de Scripters: Planilha

Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.

Posted

Honestly, I would use \n to break the lines and organize it manually.

Maybe it's possible using the guiSetProperty function. I've never tried this before, but you can try the following:
Disable the memobox vertical scrollbar to make it invisible and create a scroll bar with guiCreateScrollBar.
On the created scrollbar, use the "onClientGUIScroll" event plus guiScrollBarGetScrollPosition function and set it's value to the Memo scroll pos.

Please do not PM me with scripting related question nor support, use the forums instead.

  • 2 weeks later...
  • Moderators
Posted
On 21/05/2018 at 21:11, DNL291 said:

Honestly, I would use \n to break the lines and organize it manually.

This is a solution, but my memos use custom text. The users don't know where to break line.

On 21/05/2018 at 21:11, DNL291 said:

Disable the memobox vertical scrollbar to make it invisible

How to disable a memobox' scrollbar? I could use guiSetEnabled, but the text need to be selectable.

Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanksspacer.png

Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile
Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment
Discord Oficial do MTA: https://mtasa.com/discord
Blacklist e Whitelist de Scripters: Planilha

Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.

Posted

Tried removing Memo's scrollBar and I could not either :/

I don't remember any solution to that, since in your case, the player should be able to select the text. You may consider using another way to show that text-box without using a Memo.

Please do not PM me with scripting related question nor support, use the forums instead.

  • Moderators
Posted

I don't know any other way to show a selectable text with many lines.

Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanksspacer.png

Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile
Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment
Discord Oficial do MTA: https://mtasa.com/discord
Blacklist e Whitelist de Scripters: Planilha

Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.

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