Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-08

Qt - Checkbox state images

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Gabor Boros

Hi,

I am playing with Qt for gain experience.
If query checkbox images from ThemeServices the images order different with KDE than others. Is it a KDE or Qt or Lazarus bug or what?

Qt4 is a good choice usually or GTK2 is better from Lazarus POV?

uses Themes, Types;

{ TForm1 }

procedure TForm1.Button1Click(Sender: TObject);
  procedure DrawThemedButton(in_ThemedButton:TThemedButton;in_Pos:Integer);
  var
    Details:TThemedElementDetails;
    R:TRect;
    S:TSize;
  begin
    Details:=ThemeServices.GetElementDetails(in_ThemedButton);
    S:=ThemeServices.GetDetailSize(Details);
    R.Left:=in_Pos;
    R.Right:=R.Left+S.cx;
    R.Top:=0;
    R.Bottom:=S.cy;
    ThemeServices.DrawElement(Image1.Canvas.Handle,Details,R);
  end;
var
   i:TThemedButton;
   tmpPos:Integer;
begin
   Image1.Canvas.FillRect(Image1.ClientRect);
   tmpPos:=0;
   for i:=tbCheckBoxUncheckedNormal to tbCheckBoxMixedDisabled do
    begin
      DrawThemedButton(i,tmpPos);
      Inc(tmpPos,25);
    end;
end;

Gabor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Check_Qt_GNOME.png
Type: image/png
Size: 2032 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140813/2ecd25d3/attachment-0003.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: Check_Qt_KDE.png
Type: image/png
Size: 3866 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140813/2ecd25d3/attachment-0004.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: Check_Qt_XP.png
Type: image/png
Size: 1740 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140813/2ecd25d3/attachment-0005.png>

Reply by email

Vojtěch Čihák
to Gabor Boros

Hi,
I can confirm that. Here's screenshot: http://s30.postimg.org/i4ef29r6p/themecheckboxes.png You can report it, mainly the "tbCheckBoxUncheckedPressed". IMO Qt is better.
?
Vojt?ch?
______________________________________________________________

Show quoted text 5 lines
Od: Gabor Boros Komu: Datum: 13.08.2014 10:24 P?edm?t: [Lazarus] Qt - Checkbox state images

Hi,

I am playing with Qt for gain experience.
If query checkbox images from ThemeServices the images order different with KDE than others. Is it a KDE or Qt or Lazarus bug or what?

Qt4 is a good choice usually or GTK2 is better from Lazarus POV?

Gabor

----------

Reply by email

Alexander Hofmann
to Vojtěch Čihák

Hi,

are sure that this is not by design?

"tbCheckBoxUncheckedPressed" sound's like "the image used for the transitional state between unchecked and checked upon pressing with the mouse" - where Gtk and Windows present the user with an unchecked, pressed checkbox, Qt seems to show the user what is about to come - a checked checkbox, of course in pressed state...

Just a thought.

Greetings

Alexander

Vojte(ch C(ih?k wrote 48 lines
Hi, I can confirm that. Here's screenshot: http://s30.postimg.org/i4ef29r6p/themecheckboxes.png You can report it, mainly the "tbCheckBoxUncheckedPressed". IMO Qt is better. Vojte(ch ______________________________________________________________ > Od: Gabor Boros > Komu: > Datum: 13.08.2014 10:24 > Pr(edme(t: [Lazarus] Qt - Checkbox state images > Hi, I am playing with Qt for gain experience. If query checkbox images from ThemeServices the images order different with KDE than others. Is it a KDE or Qt or Lazarus bug or what? Qt4 is a good choice usually or GTK2 is better from Lazarus POV? Gabor ---------- -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140813/7667cd45/attachment.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: OpenPGP digital signature
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140813/7667cd45/attachment.bin>

Reply by email

Gabor Boros
to Alexander Hofmann

2014.08.13. 13:47 keltez?ssel, Alexander Hofmann ?rta:

Show quoted text 15 lines
Hi, are sure that this is not by design? "tbCheckBoxUncheckedPressed" sound's like "the image used for the transitional state between unchecked and checked upon pressing with the mouse" - where Gtk and Windows present the user with an unchecked, pressed checkbox, Qt seems to show the user what is about to come - a checked checkbox, of course in pressed state... Just a thought. Greetings Alexander

Hi,

My problem is, image for tbCheckBoxCheckedDisabled and tbCheckBoxMixedDisabled is not grayed out under KDE. Why?

Gabor

Reply by email

Gabor Boros
to Gabor Boros

2014.08.13. 15:45 keltez?ssel, Gabor Boros ?rta:

My problem is, image for tbCheckBoxCheckedDisabled and tbCheckBoxMixedDisabled is not grayed out under KDE. Why?

Hi All,

Reported as 26586 and fixed in trunk 46198.

Gabor

Reply by email