Gamestudio Links
Zorro Links
Newest Posts
Bug in train mode, or it seem to me
by mistery. 09/24/26 17:34
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 09/22/26 12:21
Capital slider is not saving in Z12
by Petra. 09/22/26 06:49
Parent/child object
by VoroneTZ. 09/22/26 05:52
Zorro tutorial ideas?
by AndrewAMD. 09/21/26 14:50
Trades during a running bar
by Martin_HH. 09/21/26 12:03
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 12,693 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Knull, Opus, Jubilee, lopezsergio07, mistery
19240 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
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
S
Sergmodern Offline OP
Newbie
Sergmodern  Offline OP
Newbie
S

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,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İ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: Quad] #318758
04/09/10 17:27
04/09/10 17:27
Joined: Mar 2010
Posts: 26
S
Sergmodern Offline OP
Newbie
Sergmodern  Offline OP
Newbie
S

Joined: Mar 2010
Posts: 26
Can you show me this text of programm? I can't do that,me noob,please help.

Re: how to make scrollbar that use a text from file? [Re: Sergmodern] #318804
04/10/10 00:11
04/10/10 00:11
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
Can't this be done, using a TEXT , and then using the offset_y ? to scrool the text with the same vertical bar? perhaps its more simples?

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
S
Sergmodern Offline OP
Newbie
Sergmodern  Offline OP
Newbie
S

Joined: Mar 2010
Posts: 26
That's not easy for me,please help.=((
i have this text of programm,but it not work=((
Code:
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

F
Fast_System
Unregistered
Fast_System
Unregistered
F



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: ] #318974
04/11/10 09:13
04/11/10 09:13
Joined: Mar 2010
Posts: 26
S
Sergmodern Offline OP
Newbie
Sergmodern  Offline OP
Newbie
S

Joined: Mar 2010
Posts: 26
render your text on bitmap, then use this bitmap with a vertical slider and a window

Please help me to make it? What operators need use(bmap_for_screen etc.)?

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
P
Phonech Offline
Newbie
Phonech  Offline
Newbie
P

Joined: Feb 2009
Posts: 38
Germany
You should take a look at AUM72, might be helpful for you.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1