AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Problem with mbColorLib

Ein Thema von WojTec · begonnen am 7. Feb 2012
Antwort Antwort
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#1

Problem with mbColorLib

  Alt 7. Feb 2012, 14:15
Delphi-Version: 2010
I'm trying make simple visual RGB selector (with trackbars only). For this I'm using mbColorLib. This is what I have:

Delphi-Quellcode:
procedure TForm2.BColorPicker1Change(Sender: TObject);
begin
  if FUpdate then Exit;

  FUpdate := True;
  try
    RColorPicker1.Blue := BColorPicker1.Blue;
    GColorPicker1.Blue := BColorPicker1.Blue;

    mbColorPreview1.Color := BColorPicker1.SelectedColor;
  finally
    FUpdate := False;
  end;
end;

procedure TForm2.GColorPicker1Change(Sender: TObject);
begin
  if FUpdate then Exit;

  FUpdate := True;
  try
    RColorPicker1.Green := GColorPicker1.Green;
    BColorPicker1.Green := GColorPicker1.Green;

    mbColorPreview1.Color := GColorPicker1.SelectedColor;
  finally
    FUpdate := False;
  end;
end;

procedure TForm2.RColorPicker1Change(Sender: TObject);
begin
  if FUpdate then Exit;

  FUpdate := True;
  try
    GColorPicker1.Red := RColorPicker1.Red;
    BColorPicker1.Red := RColorPicker1.Red;

    mbColorPreview1.Color := RColorPicker1.SelectedColor;
  finally
    FUpdate := False;
  end;
end;
Just simple assigning values, but after F9 raises AV. Could you try it in your mbColorLib, please?
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:54 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz