Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,251 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
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: 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 | chip programmers | 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