Author Topic: Ion Table  (Read 17719 times)

0 Members and 2 Guests are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Ion Table
« on: November 18, 2010, 01:33:51 pm »
Hey everyone, I'm working in a project for my class and friends, who which a program to display all the ions we need, so it's a chemistry program.

The code is in portuguese, but that's not very relevant for you, it's just ion names.

I got to a doubt now:

Code: [Select]
:[080808082A1C0800]->Pic1
:Output(0,0,"Ioes Positivos
:Text(0,15,"Aluminio
:Text(0,22,"Amonio
:Text(0,29,"Bario
:Text(0,36,"Calcio
:Text(0,43,"Chumbo
:Text(0,50,"Cobalto (II)
:Text(0,57,"Cobalto (III)
:Pt-Change(40,45,Pic1ยด
:DispGraph


This will display only the image, a down-arrow and not the text.
Can both be displayed at the same time?

Thanks in advance,

David

ASHBAD_ALVIN

  • Guest
Re: Ion Table
« Reply #1 on: November 18, 2010, 01:38:20 pm »
you need to do fix 5 -- that make text be drawn to the BUFFER rather than to the screen.  Then, the text will be invisible till the next Dispgraph.  When you execute that other dispgraph without fix 5 before the text(), it will erase the text from the screen

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Ion Table
« Reply #2 on: November 18, 2010, 01:41:50 pm »
Code: [Select]
:Fix 5
:[080808082A1C0800]->Pic1
:Output(0,0,"Ioes Positivos
:Text(0,15,"Aluminio
:Text(0,22,"Amonio
:Text(0,29,"Bario
:Text(0,36,"Calcio
:Text(0,43,"Chumbo
:Text(0,50,"Cobalto (II)
:Text(0,57,"Cobalto (III)
:Pt-Change(40,45,Pic1
:DispGraph

The Output ("Ioes Positivos") is not showing up, I can't use Output when using Fix5 and DispGraph, right?

ASHBAD_ALVIN

  • Guest
Re: Ion Table
« Reply #3 on: November 18, 2010, 01:42:36 pm »
no, output puts that on the homescreen.  I would suggest doing a Text() command for that too.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Ion Table
« Reply #4 on: November 18, 2010, 01:48:15 pm »
no, output puts that on the homescreen.  I would suggest doing a Text() command for that too.

Yes, or an image, because I wanted the title to be BIG :s

Offline JustCause

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 810
  • Rating: +115/-5
    • View Profile
Re: Ion Table
« Reply #5 on: November 18, 2010, 02:05:19 pm »
Yes, or an image, because I wanted the title to be BIG :s
Fix 3 changes the font I believe
See you, space cowboy...

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Ion Table
« Reply #6 on: November 18, 2010, 02:06:33 pm »
Yes, or an image, because I wanted the title to be BIG :s
Fix 3 changes the font I believe

Output font? Sorry, I don't understand your reply

Offline JustCause

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 810
  • Rating: +115/-5
    • View Profile
Re: Ion Table
« Reply #7 on: November 18, 2010, 02:08:07 pm »
Yes, or an image, because I wanted the title to be BIG :s
Fix 3 changes the font I believe

Output font? Sorry, I don't understand your reply
It makes the Text() command display homescreen font. Fix 2 should put it back again.
See you, space cowboy...

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Ion Table
« Reply #8 on: November 18, 2010, 02:09:06 pm »
Yes, or an image, because I wanted the title to be BIG :s
Fix 3 changes the font I believe

Output font? Sorry, I don't understand your reply
It makes the Text() command display homescreen font. Fix 2 should put it back again.

Code: [Select]
:[080808082A1C0800]->Pic1
:Fix 5
:Fix 3
:Output(0,0,"Ioes Positivos
:Fix 2
:Text(0,15,"Aluminio
:Text(0,22,"Amonio
:Text(0,29,"Bario
:Text(0,36,"Calcio
:Text(0,43,"Chumbo
:Text(0,50,"Cobalto (II)
:Text(0,57,"Cobalto (III)
:Pt-Change(40,45,Pic1
:DispGraph
You mean this?

ASHBAD_ALVIN

  • Guest
Re: Ion Table
« Reply #9 on: November 18, 2010, 02:50:44 pm »
yes that should work.  Also, you might wanna do fix 4 at the end to make sure text gets drawn normally.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Ion Table
« Reply #10 on: November 18, 2010, 02:53:20 pm »
yes that should work.  Also, you might wanna do fix 4 at the end to make sure text gets drawn normally.
Code: [Select]
:[080808082A1C0800]->Pic1
:Fix 5
:Fix 3
:Output(0,0,"Ioes Positivos
:Fix 2
:Text(0,15,"Aluminio
:Text(0,22,"Amonio
:Text(0,29,"Bario
:Text(0,36,"Calcio
:Text(0,43,"Chumbo
:Text(0,50,"Cobalto (II)
:Text(0,57,"Cobalto (III)
:Fix 4
:Pt-Change(40,45,Pic1
:DispGraph

Like this?

ASHBAD_ALVIN

  • Guest
Re: Ion Table
« Reply #11 on: November 18, 2010, 02:54:33 pm »
yes, that should work fine.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Ion Table
« Reply #12 on: November 18, 2010, 02:55:53 pm »
yes, that should work fine.

I'll try it right away, thanks much!

EDIT: It sure works, thanks everyone.

How to cancel Fix 5 so?
« Last Edit: November 18, 2010, 02:58:07 pm by ScoutDavid »

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Ion Table
« Reply #13 on: November 18, 2010, 03:52:22 pm »
Actually, instead of Fix 3 and 2 you should use Fix 1 and 0, respectively, since Fix 3 only inverts the text. And Fix 4 is used to cancel Fix 5, so otherwise you should be fine.
« Last Edit: November 18, 2010, 03:52:58 pm by Deep Thought »




Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Ion Table
« Reply #14 on: November 18, 2010, 03:58:37 pm »
Actually, instead of Fix 3 and 2 you should use Fix 1 and 0, respectively, since Fix 3 only inverts the text. And Fix 4 is used to cancel Fix 5, so otherwise you should be fine.

That works better.

Fix's are cool, had no idea of what they were, though