|
0 registered members (),
1,251
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
how to make scrollbar that use a text from file?
#318736
04/09/10 13:46
04/09/10 13:46
|
Joined: Mar 2010
Posts: 26
Sergmodern
OP
Newbie
|
OP
Newbie
Joined: Mar 2010
Posts: 26
|
Help to make a scroll, which displays to a text written in a text file. For example in the file is text:
1234 Oven Samsung $ 300 Indesit 2222 Washing Machine $ 300 1111 Iron Tefal $ 100 1222 Oven Samsung $ 300 Indesit 3333 Washing Machine $ 300 4212 Iron Tefal $ 100
that need to display a text on 3 lines at the borders of the panel. I have no a text of programm please help me write it.
Last edited by Sergmodern; 04/09/10 13:47.
|
|
|
Re: how to make scrollbar that use a text from file?
[Re: Sergmodern]
#318742
04/09/10 14:00
04/09/10 14:00
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
render your text on bitmap, then use this bitmap with a vertical slider and a window.
3333333333
|
|
|
Re: how to make scrollbar that use a text from file?
[Re: MMike]
#318827
04/10/10 07:56
04/10/10 07:56
|
Joined: Mar 2010
Posts: 26
Sergmodern
OP
Newbie
|
OP
Newbie
Joined: Mar 2010
Posts: 26
|
That's not easy for me,please help.=(( i have this text of programm,but it not work=((
TEXT* bigtext = { strings = 77000; }
txt_load(bigtext,"bigfile.txt");
TEXT* buffer = { strings = 10; flags = SHOW; }
var slider;
int i;
while(1){
slider+=mickey.z/120;
for(i=0; i<10; i++){ str_cpy( (buffer.pstring)[i] , (bigtext.pstring)[i+slider] ); }
wait(1);}
Last edited by Sergmodern; 04/10/10 07:59.
|
|
|
Re: how to make scrollbar that use a text from file?
[Re: Sergmodern]
#318893
04/10/10 17:12
04/10/10 17:12
|
Fast_System
Unregistered
|
Fast_System
Unregistered
|
The slider a panel element. You try other name... Example slider_00 etc.
Last edited by Fast_System; 04/10/10 17:33.
|
|
|
Re: how to make scrollbar that use a text from file?
[Re: Sergmodern]
#318977
04/11/10 10:33
04/11/10 10:33
|
Joined: Feb 2009
Posts: 38 Germany
Phonech
Newbie
|
Newbie
Joined: Feb 2009
Posts: 38
Germany
|
You should take a look at AUM72, might be helpful for you.
|
|
|
|
|
|