Disable SKIN in the TsListBox

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43724
    BuzzLeclaire
    Participant

      Precision :

      I use it as

      Code:
      // it works
      procedure TFGestionDesVues.sColBoxFondSelect(Sender: TObject);
      begin
      if TsColorBox(Sender).Itemindex = -1 then exit;
      sLBoxAfficher.Color := StringToColor(TsColorBox(Sender).Items[TsColorBox(Sender).Itemindex]);
      end;

      //it does not work
      procedure TFGestionDesVues.sBtnPoliceClick(Sender: TObject);
      begin
      if FontDialog1.Execute then
      begin
      sLBoxAfficher.Font := FontDialog1.Font;
      end;
      end;

      sLBoxAfficher is a TslistBox, skins = None

      Thx

      #43721
      Support
      Keymaster

        Hello

        The problem is solved?

        #43829
        BuzzLeclaire
        Participant

          Hello,

          Yes my problems is solved.

          I simply removed my TListBox (I didn 't used sTlistBox), then I replaced, and it works like magic.

          thank you.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.