<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Parabel mit Hilfe von chartfx]]></title><description><![CDATA[<p>Hallo Jungs,</p>
<p>ich möchte mit der Hilfe von chartfx eine Parabel zeichnen. Ich habe es auch hinbekommen, aber ich möchte nun wissen wie ich das Koordintatenkreuz nach oben verschieben kann, denn eine Parabel kann auch in einem Negativenbereich kommen und dass könnte ich mir nicht anzeigen lassen.</p>
<pre><code class="language-cpp">[code]//---------------------------------------------------------------------------
#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
  : TForm(Owner)
{
 Form1-&gt;Caption=&quot;Parabel&quot;;
 Chartfx1-&gt;Visible=false;
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button1Click(TObject *Sender)
{
 int x,wert;
 Chartfx1-&gt;OpenDataEx(COD_VALUES,1,21); // 1 Zahlenreihe mit 21 Werten
 Chartfx1-&gt;Visible=true;
 Chartfx1-&gt;ThisSerie=0;
 wert=StrToInt(Edit1-&gt;Text);

 for(x=0;x&lt;=20;x++)
  {
    Chartfx1-&gt;Value[x]=((x-wert)*(x-wert));
    Chartfx1-&gt;Legend[x]=IntToStr(x-wert);
  }
 Chartfx1-&gt;Adm[CSA_MAX]=(x-wert)*(x-wert); // groesster Wert der y-Achse
 Chartfx1-&gt;Adm[CSA_MIN]=0;                 // kleinster Wert der y-Achse
 Chartfx1-&gt;Adm[CSA_GAP]=4;

 // Gap used in Y-axis. This value is calculated automatically each time you
 // create a chart. If you want your Y-axis to put thick at a set interval,
 // you would specify it with this index.
 Chartfx1-&gt;CloseData(COD_VALUES);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button2Click(TObject *Sender)
{
 Close();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::FormCreate(TObject *Sender)
{
 Chartfx1-&gt;PointType = 0;
 Label1-&gt;Caption = Chartfx1-&gt;PointType;
}
//---------------------------------------------------------------------------
[/code]
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/202855/parabel-mit-hilfe-von-chartfx</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 12:34:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/202855.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Jan 2008 08:12:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Parabel mit Hilfe von chartfx on Wed, 16 Jan 2008 08:12:03 GMT]]></title><description><![CDATA[<p>Hallo Jungs,</p>
<p>ich möchte mit der Hilfe von chartfx eine Parabel zeichnen. Ich habe es auch hinbekommen, aber ich möchte nun wissen wie ich das Koordintatenkreuz nach oben verschieben kann, denn eine Parabel kann auch in einem Negativenbereich kommen und dass könnte ich mir nicht anzeigen lassen.</p>
<pre><code class="language-cpp">[code]//---------------------------------------------------------------------------
#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
  : TForm(Owner)
{
 Form1-&gt;Caption=&quot;Parabel&quot;;
 Chartfx1-&gt;Visible=false;
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button1Click(TObject *Sender)
{
 int x,wert;
 Chartfx1-&gt;OpenDataEx(COD_VALUES,1,21); // 1 Zahlenreihe mit 21 Werten
 Chartfx1-&gt;Visible=true;
 Chartfx1-&gt;ThisSerie=0;
 wert=StrToInt(Edit1-&gt;Text);

 for(x=0;x&lt;=20;x++)
  {
    Chartfx1-&gt;Value[x]=((x-wert)*(x-wert));
    Chartfx1-&gt;Legend[x]=IntToStr(x-wert);
  }
 Chartfx1-&gt;Adm[CSA_MAX]=(x-wert)*(x-wert); // groesster Wert der y-Achse
 Chartfx1-&gt;Adm[CSA_MIN]=0;                 // kleinster Wert der y-Achse
 Chartfx1-&gt;Adm[CSA_GAP]=4;

 // Gap used in Y-axis. This value is calculated automatically each time you
 // create a chart. If you want your Y-axis to put thick at a set interval,
 // you would specify it with this index.
 Chartfx1-&gt;CloseData(COD_VALUES);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button2Click(TObject *Sender)
{
 Close();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::FormCreate(TObject *Sender)
{
 Chartfx1-&gt;PointType = 0;
 Label1-&gt;Caption = Chartfx1-&gt;PointType;
}
//---------------------------------------------------------------------------
[/code]
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1437413</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1437413</guid><dc:creator><![CDATA[Rayback]]></dc:creator><pubDate>Wed, 16 Jan 2008 08:12:03 GMT</pubDate></item><item><title><![CDATA[Reply to Parabel mit Hilfe von chartfx on Wed, 23 Jan 2008 06:57:48 GMT]]></title><description><![CDATA[<p>Hat wirklich keiner eine Ahnung warum das nicht geht ? Ich finde es schade das hier keiner helfen kann. Ich dachte das ist hier ein Forum Speziel für C++.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1441729</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1441729</guid><dc:creator><![CDATA[Rayback]]></dc:creator><pubDate>Wed, 23 Jan 2008 06:57:48 GMT</pubDate></item><item><title><![CDATA[Reply to Parabel mit Hilfe von chartfx on Wed, 23 Jan 2008 08:29:01 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Dein Problem hat nichts mit der Sprache C++ zu tun sondern mit der speziellen Chart-Komponente. Selbst wenn man sich nicht nur mit C++ auskennt sondern auch mit der VCL des Builders nützt das nichts wenn man diese spezielle Komponente noch nie benutzt hat.<br />
Schau dir also die Doku der Komponente an, und alle Methoden und Eigenschaften (auch die der untergeordneten Klassen).</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1441782</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1441782</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 23 Jan 2008 08:29:01 GMT</pubDate></item><item><title><![CDATA[Reply to Parabel mit Hilfe von chartfx on Wed, 23 Jan 2008 09:48:23 GMT]]></title><description><![CDATA[<p>wenn du den kleinsten Wert der Y-Achse (Zeile 33) mal auf irgendeinen negativen Wert und nicht auf 0 setzt, wird auch der negative Bereich der Y-Achse angezeigt...</p>
<p>allerdings frage ich mich wann die von dir verwendete Funktion im Y-Bereich denn negativ werden soll, da du ja eine einfache quadratische Funktion verwendest</p>
<p>und noch einen Tip: das was du in FormCreate geschrieben hast, kannst und solltest du auch mit in den Konstruktor schreiben und das FormCreate weglassen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1441828</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1441828</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Wed, 23 Jan 2008 09:48:23 GMT</pubDate></item><item><title><![CDATA[Reply to Parabel mit Hilfe von chartfx on Tue, 29 Jan 2008 08:18:55 GMT]]></title><description><![CDATA[<p>Naja nicht alles sehr Hilfreich aber ich bedanke mich trotzdem. Achja wenn ich die Hilfe zu chartfx aufrufe, dann bekomme ich keine Infos.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1445468</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1445468</guid><dc:creator><![CDATA[Rayback]]></dc:creator><pubDate>Tue, 29 Jan 2008 08:18:55 GMT</pubDate></item><item><title><![CDATA[Reply to Parabel mit Hilfe von chartfx on Tue, 29 Jan 2008 11:54:08 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Frag doch mal hier<br />
<a href="http://community.softwarefx.com/forums/17.aspx" rel="nofollow">http://community.softwarefx.com/forums/17.aspx</a><br />
Das Problem ist wohl, dass ChartFX für den BCB nicht mehr weiter entwickelt wird. Da geht nur die 98er Variante. Ich würde vorschlagen auf ein anderes Produkt zu wechseln wie z.Bsp. TeeChart. Eine Light-version von TChart ist bei allen BCB-Varianten mit dabei. Dafür wirst du wahrscheinlich eher Hilfe bekommen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1445571</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1445571</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Tue, 29 Jan 2008 11:54:08 GMT</pubDate></item><item><title><![CDATA[Reply to Parabel mit Hilfe von chartfx on Wed, 30 Jan 2008 10:34:25 GMT]]></title><description><![CDATA[<p>Jo danke. Aber ich muss das in der Schule durchnehmen und das einzige was ich wissen will ist nur, welcher Befehl oder Einstellung muss ich machen, damit ich das Koordinatensystem nach oben verschieben kann damit ich auch den negativen Bereich angezeigt bekomme.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1446184</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446184</guid><dc:creator><![CDATA[Rayback]]></dc:creator><pubDate>Wed, 30 Jan 2008 10:34:25 GMT</pubDate></item><item><title><![CDATA[Reply to Parabel mit Hilfe von chartfx on Wed, 30 Jan 2008 11:21:26 GMT]]></title><description><![CDATA[<p>hast du das schonmal versucht?</p>
<p>Linnea schrieb:</p>
<blockquote>
<p>wenn du den kleinsten Wert der Y-Achse (Zeile 33) mal auf irgendeinen negativen Wert und nicht auf 0 setzt, wird auch der negative Bereich der Y-Achse angezeigt...</p>
</blockquote>
<p>und noch genauer</p>
<pre><code class="language-cpp">Chartfx1-&gt;Adm[CSA_MIN]=-10;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1446204</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446204</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Wed, 30 Jan 2008 11:21:26 GMT</pubDate></item><item><title><![CDATA[Reply to Parabel mit Hilfe von chartfx on Wed, 30 Jan 2008 12:53:49 GMT]]></title><description><![CDATA[<p>Also das ist es nicht direkt. Ich meinte eher an das Koordinatensystem. Naja wenn ich einen beliebigen Wert eingebe, dann ändert sich die ganze Ansicht.<br />
Ich habe als Zahl die 9 vordefiniert. Wenn ich aber 20 eingebe, dann ändert sich das Raster also es wird größer und somit kann ich dann den Graphen nicht mehr sehen. Wenn es nicht geht dann ist das ok aber wenn es doch gehen sollte, dann sagt es mir bitte. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1446260</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446260</guid><dc:creator><![CDATA[Rayback]]></dc:creator><pubDate>Wed, 30 Jan 2008 12:53:49 GMT</pubDate></item></channel></rss>