Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 91 users online: 0 members, 58 guests and 33 bots. Members: None. Bots: VoilaBot (1), Spinn3r (1), MSN/Bing (1), Magpie Crawler (3), VoilaBot (6), Googlebot (20), MSN/Bing (1).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
|
| Author |
Message |
|
dmnkhnngs
Newbie

Joined: 06 Apr 2013 Posts: 18
|
Posted: 07 Apr 2013 06:23:35 pm Post subject: "scrolling" in lables |
|
|
Hey guys,
i have a new question:
Is it possible to "scroll" in a label?
What I mean:
I have a long text. E.g. a poem.
Now I have a program with a menu where one can choose between poem 1 and poem 2.
when i choose poem1 it disps the poem1. and it is too long for the window. but when i press "up" nothing happens or it closes the text and everything that lasts is "prgmxy Done"
And another question is: Can I break a long text automatically?
So i dont have to make a new "Disp" every 16 letters?
Hope you understand what i mean
Sorry for bad english, its not my native language  |
|
| Back to top |
|
|
tifreak8x

Guru

Joined: 16 Mar 2005 Posts: 9067 Location: Sol System
|
Posted: 07 Apr 2013 06:27:11 pm Post subject: |
|
|
Disp can be broken up like Disp "Text here","And more here","But wait..","There's MOOOORE"
However, once you reach a certain point on the screen, it will start scrolling.
Best way to do it would be to set it up to all be store into strings, and use the associated commands to pull the string out and display it.
Kind of depends on your level of understanding with BASIC. We could also set up a loop, and based on what value a variable is, display the 'page' you want displayed.
Have you messed with strings and manipulating them, yet? _________________ Projects: AOD Series: 70% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
Look here for Assembly Resources. |
|
| Back to top |
|
|
Weregoose

Cemetech Expert

Joined: 23 Oct 2009 Posts: 464
|
Posted: 07 Apr 2013 06:29:10 pm Post subject: |
|
|
@dmnkhnngs: Nope! Item 7 could read something like "Next Page" and jump to a Page 2 having a "Previous Page" as an item 6... Well, you get the idea.
For your other question, Output( will automatically wrap to the next line.
<insert mention of the possibility of a custom string-wrapping algorithm> _________________ Common Errors in English · How To Ask Questions The Smart Way |
|
| Back to top |
|
|
dmnkhnngs
Newbie

Joined: 06 Apr 2013 Posts: 18
|
Posted: 07 Apr 2013 06:38:31 pm Post subject: |
|
|
No, i havent messed with strings yet :/
And i don't really undestand what you both mean
Here's what I have:
Code:
:ClrHome
:
:Lbl AB
:Menu("Menu","Marketingstrategien",A,"Distributionspolitik",B)
:
:Lbl A
:ClrHome
:Menu("Marketingstrategien","Begriff Marketing",A1,"Benchmarking",A2,"Kundenanalyse",A3)
:
:Lbl B
:ClrHome
:Menu("Distributionspolitik","Begriff Distributionspolitik",B1,"Absatzlogistik",B2,"Absatzorgane",B3,"Absatzwege",B4,"Umweltpolitik",B5,"Distributionspolitik",B6)
:
:Lbl A1
:ClrHome
:Disp "Marketing ist"
:Disp "eine marktorient. "
:Disp "Fuehrungskonzeption "
:Disp "Aufgabe:"
:Disp "Waren und Dienstl."
:Disp "zu vermarkten"
:Disp "Befriedigung der"
:Disp "Beduerfnisse und"
:Disp "Erwartungen der "
:Disp "Kunden und anderer"
:Disp "Interessengruppen"
:Disp "(Stakeholder)"
:Stop
:
:Lbl A2
:ClrHome
:Menu("Benchmarking","Begriff",A21,"7 Schritte",A22,"Arten",A23)
:
:Lbl A21
:ClrHome
:Disp "Kontinuierl. Prozess"
:Disp "Vergl. mit den d."
:Disp "stärksten Konkurrenten"
:Stop
:
:Lbl A22
:ClrHome
:Disp "1.Stä-Schw. Analyse"
:Disp "2.Analyse d. "
:Disp " dringensten Han-"
:Disp " dlungsbedarfs u."
:Disp " d. besten Chancen"
:Disp "3.Ermittlung d. Best-"
:Disp " Practice U."
:Disp "4.Warum so gut?"
:Disp "5.Was lernen wir?"
:Disp "6.Zielabstimmung u."
:Disp " Umsetzung"
:Stop
:
:Lbl A23
:ClrHome
:Menu("Benchmarking Arten","Internes",A231,"Wettbewerbsorient.",A232,"Branchenintern",A233,"Branchenuebergr.",A234)
:
:Lbl A231
:ClrHome
:Disp "Qualitaetsmanagement"
:Disp "interne Ueberpruefung d."
:Disp "UnternehmenStandards.
:Disp "- Verschw. reduzieren"
:Disp "- Effizienz verbessern"
:Stop
:
:Lbl A232
:ClrHome
:Disp "Vergl.der Standards"
:Disp "mit Konkurrenz"
:Stop
:
:Lbl A233
:ClrHome
:Disp "Vergl.der Standards"
:Disp "mit der ganzen "
:Disp "Branche"
:Stop
:
:Lbl A234
:ClrHome
:Disp "Vergl.des Leist-"
:Disp "ungsniveaus mit"
:Disp "den weltbesten "
:Disp "ohne Ruecksicht"
:Disp "auf Branchen"
:Stop
:
As you can see - the texts are too long, so i made "disp"s.
but thats hard work ;D
and when i want to read one of these texts, i can not scroll up and down :/ Is it possible?
but thanks to you both  |
|
| Back to top |
|
|
tifreak8x

Guru

Joined: 16 Mar 2005 Posts: 9067 Location: Sol System
|
Posted: 07 Apr 2013 06:43:07 pm Post subject: |
|
|
Well, some of those options are going to get cut off, since they are longer than 16 characters, just letting you know. If you want longer options listed, you'll have to create your own menus on the graphscreen, which is far different from what you have worked on so far.
As to your current predicament, you can use Output(1,1," and use it to cut down on a few lines of Disp's. You'll still need the use of Pause :Clrhome at certain points, because it will still cause the screen to shift without being able to scroll up without the breaks.
Strings would definitely be the way to go, in this case, though. _________________ Projects: AOD Series: 70% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
Look here for Assembly Resources. |
|
| Back to top |
|
|
dmnkhnngs
Newbie

Joined: 06 Apr 2013 Posts: 18
|
Posted: 07 Apr 2013 06:45:54 pm Post subject: |
|
|
oh man. my english is way to bad to understand it all :/
could you give me an example how it would work ? |
|
| Back to top |
|
|
tifreak8x

Guru

Joined: 16 Mar 2005 Posts: 9067 Location: Sol System
|
Posted: 07 Apr 2013 06:58:49 pm Post subject: |
|
|
Just type out Output(1,1,"Hello, This is a long line of text and I show up on more than one line" just like that, and run that as a program, you will see what I mean. _________________ Projects: AOD Series: 70% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
Look here for Assembly Resources. |
|
| Back to top |
|
|
dmnkhnngs
Newbie

Joined: 06 Apr 2013 Posts: 18
|
Posted: 07 Apr 2013 07:04:23 pm Post subject: |
|
|
Yes, thanks. this works.
But. when the text is even longer, so it is longer than the display, and i want to scroll in my text to read it all and i press "up" then the text disappears and all thats left is:
prgmName
Done
:s |
|
| Back to top |
|
|
tifreak8x

Guru

Joined: 16 Mar 2005 Posts: 9067 Location: Sol System
|
Posted: 07 Apr 2013 07:06:01 pm Post subject: |
|
|
Yes, you need to figure out where to end it so it doesn't scroll, then you have to go to the next line in the editor, add Pause :ClrHome, and you can do another Output(1,1," and finish off the text, with another Pause and ClrHome after that.  _________________ Projects: AOD Series: 70% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
Look here for Assembly Resources. |
|
| Back to top |
|
|
dmnkhnngs
Newbie

Joined: 06 Apr 2013 Posts: 18
|
Posted: 07 Apr 2013 07:13:13 pm Post subject: |
|
|
I think I know what you mean !
I'll try it out tomorrow. its late here
Thank you very much. If any other questions show up, i will ask them here ! |
|
| Back to top |
|
|
tifreak8x

Guru

Joined: 16 Mar 2005 Posts: 9067 Location: Sol System
|
Posted: 07 Apr 2013 07:15:33 pm Post subject: |
|
|
Not a problem, glad I could be of assistance! _________________ Projects: AOD Series: 70% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%
Look here for Assembly Resources. |
|
| Back to top |
|
|
|
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
» Go to Registration page
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.029235 seconds.
|