Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 06/06/25 in all areas

  1. Yeray

    TChart bottom axis label issue

    The chart by default draws the labels for the first series in the chart. You could add the labels of the second series as "custom labels". Ie: Chart1.Draw; for i:=0 to Chart1.Series[1].Count-1 do Chart1.Axes.Bottom.Items.Add(Chart1.Axes.Bottom.Items.Count, Chart1.Series[1].Labels[i]); Chart1.Draw; You can use OnGetMarkText event to intercept the marks drawing and empty them according to any condition you define. In this example I've set the threshold to 7000 because I don't see any 0 value in your test project: procedure TForm2.FormCreate(Sender: TObject); begin Chart1.Series[0].OnGetMarkText:=SeriesGetMarkText; end; procedure TForm2.SeriesGetMarkText(Sender:TChartSeries; ValueIndex:Integer; var MarkText:String); const threshold = 7000; begin if Assigned(Sender) and (ValueIndex > -1) and (Sender.YValue[ValueIndex] < threshold) then MarkText := ''; end; Steema Software support forums are publicly readable but only writeable to customers with active commercial subscriptions. The contact form should work fine. If it doesn't, you can always write at "info at steema.com" or "sales at steema.com". --- Yeray Alonso Steema Software
  2. David Heffernan

    How do I assert a single ?

    Every time someone calls SameValue a puppy dies
  3. Anders Melander

    How do I assert a single ?

    Multiply by a 10^"number of decimals", Trunc to convert to integer, Assert on the integer value
  4. TurboMagic

    TChart bottom axis label issue

    Thanks for all this information! Will ty it out as soon as I get back to this project after pentacoste!
  5. Anders Melander

    GoogleMaps Policy changes in EU

    As far as I can tell they've been forced to replace their proprietary APIs with standard APIs (in order to avoid vendor lock-in) and to allow competing third party applications access to their map data. Did I understand that right? It seems Google has few friends in the map business; They aren't allowed to link to Google Maps from their Google search results - or even from the search page (which is pretty stupid and doesn't do the users any good), while the same restrictions doesn't apply to Bing. Could it be that Bing map data is provided by Tom-Tom?
  6. Try https://docwiki.embarcadero.com/Libraries/Athens/en/FMX.Styles.TStyleManager.SetStyleFromFile ON: TStyleManager.SetStyleFromFile(styleToUse); OFF: TStyleManager.SetStyleFromFile(nil);
  7. Cristian Peța

    What does [ref] attribute actually dows

    With const, if the variable is small enough to pass into a register, it will not be passed always as reference. You need to use [ref] to be sure it is passed as reference. This is the reason to use [ref] for FreeAndNil.
  8. weirdo12

    C++Builder 12 - Windows only?

    They are retooling the C++ compiler chain. I get the impression that C++ is becoming more important - not less - even if it might seem like a 2 steps forward, one step back (for the moment). My gut feeling is the future has never been brighter for C++Builder.
  9. dormky

    How do I assert a single ?

    Ended up landing on this, works fine for my purpose : procedure AssertFloat(const value, should: Extended); begin Assert(Abs(value - should) < 0.00001); end;
×