Page 1 of 1

Problem to show Readme file to a log box

Posted: Thu May 18, 2023 4:26 pm
by papiosaur
Hello,

if transform a readme files to a string with FileToString() command and i send to the log, i have some issues:

- sometime i have empty lines before the readme
- sometime i have nothing but the progress bar is small
- sometime i have first lines showed and the up of the next

A problem of text format ?

About the progress bar, when i move the vertical slider with mouse wheel, it go directly down of the file (i can't see all lines of the readme).
If i move the slider with the mouse directly is ok i can see all the readme lines.

Re: Problem to show Readme file to a log box

Posted: Thu May 18, 2023 4:54 pm
by plouf
What is a "log box" ?

Can show some example loading and some small code?

Re: Problem to show Readme file to a log box

Posted: Thu May 18, 2023 5:42 pm
by papiosaur
This is screenshots for differents readme files:
The log box is the "Event logger" you can find in "demo" example in RAPAGUI examples.

Image
Image
Image

the part of code is

Code: Select all

function p_showreadme()
      readme$ = ram:readme.txt
      text$ = filetostring(readme$)
      p_log(text$)
Endfunction

function p_log(text$)
      moai.domethod("log", "clear", text$)
      moai.domethod("log", insert", bottom", text$)
Endfunction

[SOLVED] Problem to show Readme file to a log box

Posted: Thu May 18, 2023 7:16 pm
by papiosaur
ok problem solved, i have replaced the logbox of the RAPAGUI "demo" by the Textbox of the Editor and work perfectly !

Re: Problem to show Readme file to a log box

Posted: Fri May 19, 2023 2:46 pm
by plouf
ok this was a listview widget, which is not intended to display pure text so..
but you should provide some basic WORKING code to start understant its not possible to always guess what you have done wrong..

Re: Problem to show Readme file to a log box

Posted: Sun May 21, 2023 8:36 am
by papiosaur
Yes, i will try next time :-)