Re: [MSEide-MSEgui-talk] FontAwesome - change icon height on the fly

2017-03-19 Thread Krzysztof
2017-03-19 8:17 GMT+01:00 Martin Schreiber :

> On Friday 17 March 2017 13:32:28 Krzysztof wrote:
> > 2017-03-17 7:00 GMT+01:00 Martin Schreiber :
> > > Please send a simple testcase.
> >
> > Attached. Click on tbutton1 with left mouse button and then try to close
> > app. I must first click somewhere inside the app for close popup menu
>
> Please try again with git master d744fe26e89b60198eb2e6dea6aa0e5d3d9dbdb8.


Fixed, thanks!
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] FontAwesome - change icon height on the fly

2017-03-19 Thread Martin Schreiber
On Friday 17 March 2017 13:32:28 Krzysztof wrote:
> 2017-03-17 7:00 GMT+01:00 Martin Schreiber :
> > Please send a simple testcase.
>
> Attached. Click on tbutton1 with left mouse button and then try to close
> app. I must first click somewhere inside the app for close popup menu

Please try again with git master d744fe26e89b60198eb2e6dea6aa0e5d3d9dbdb8.

Martin

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] FontAwesome - change icon height on the fly

2017-03-17 Thread Krzysztof
2017-03-17 7:00 GMT+01:00 Martin Schreiber :
>
> Please send a simple testcase.


Attached. Click on tbutton1 with left mouse button and then try to close
app. I must first click somewhere inside the app for close popup menu


popup.7z
Description: application/7z-compressed
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] FontAwesome - change icon height on the fly

2017-03-17 Thread Martin Schreiber
On Thursday 16 March 2017 20:47:30 Krzysztof wrote:
> 2017-03-15 16:01 GMT+01:00 Martin Schreiber :
> > It still works for me. When I open a popup menu and click on close button
> > of
> > the window decoration the popup closes.
>
> Forgot to add important detail that I'm showing popup menu manually on left
> button click:
>
> procedure TfrmViewTree.ShowViewPopup(const sender: TObject);
> begin
>
> popView.show(btnView,translateclientpoint(application.mouse.pos,nil,btnView
>)); end;
>
Please send a simple testcase.

Martin

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] FontAwesome - change icon height on the fly

2017-03-16 Thread Krzysztof
2017-03-15 16:01 GMT+01:00 Martin Schreiber :
>
> It still works for me. When I open a popup menu and click on close button
> of
> the window decoration the popup closes.


Forgot to add important detail that I'm showing popup menu manually on left
button click:

procedure TfrmViewTree.ShowViewPopup(const sender: TObject);
begin

popView.show(btnView,translateclientpoint(application.mouse.pos,nil,btnView));
end;

With context menus indeed it is working fine
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] FontAwesome - change icon height on the fly

2017-03-15 Thread Martin Schreiber
On Friday 10 March 2017 12:11:26 Krzysztof wrote:
> 2017-03-10 7:05 GMT+01:00 Martin Schreiber :
> > Not that I am aware of. Can you point to the message thread were we
> > discussed
> > it?
>
> Here
> https://www.mail-archive.com/mseide-msegui-talk%40lists.sourceforge.net/msg
>10546.html

It still works for me. When I open a popup menu and click on close button of 
the window decoration the popup closes.

Martin

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] FontAwesome - change icon height on the fly

2017-03-10 Thread Krzysztof
2017-03-10 7:05 GMT+01:00 Martin Schreiber :
>
> Not that I am aware of. Can you point to the message thread were we
> discussed
> it?


Here
https://www.mail-archive.com/mseide-msegui-talk%40lists.sourceforge.net/msg10546.html
--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] FontAwesome - change icon height on the fly

2017-03-09 Thread Martin Schreiber
On Thursday 09 March 2017 23:06:04 Krzysztof wrote:

> BTW: Did you change something in popmenu recently? Do you remember when I
> reported that can't close app (click on X) when popmenu is showing? I have
> it again. Since then I had few updates on my Linux Mint 18.1, especially
> new version of KDE Plasma 5 (currently 5.8.5, kernel 4.8.0-39)

Not that I am aware of. Can you point to the message thread were we discussed 
it?
https://www.mail-archive.com/mseide-msegui-talk%40lists.sourceforge.net/

Martin


--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] FontAwesome - change icon height on the fly

2017-03-09 Thread Martin Schreiber
On Wednesday 08 March 2017 20:27:09 Krzysztof wrote:
>
> Problem is that stock imagelist size is 15x15 but not all icons have to be
> this fixed size, for example circle for stg_checkedradio has to be much
> smaller - arround 10px, same for arrows for scrollbars and so on. For such
> "jump" between sizes I have to free tftglyphs instance and create it again
> with new height and all initializations. Hawing writable Height make it
> much easier and faster.
>
Done, git master d981dfa79cb5758e5e7bd1d1ac555385f955c929.

Martin

--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] FontAwesome - change icon height on the fly

2017-03-08 Thread Krzysztof
Hi Martin,

Currently, FA icon height can be set in tftglyphs constructor. Height
property is read-only. Is it possible to change it to write too? I'm trying
to override stock glyphs with FontAwesome at runtime, so they fit to my app
needs and have nice antialiasing. Also, with bmo_colormask option I can
change their color at runtime without any quality loss (user has color
scheme creator), with MSE buildin glyphs and bmo_graymask I got weird
artifacts (and icons disappear) after call timagelist.bitmap.init(AColor),
it is very probably related to issues with my Intel HD 530 on Kubuntu, I
don't want back to it :).
Anyway, so I'm doing this:

  // Stock 15px
  stockobjects.glyphs.clear;
  stockobjects.glyphs.options := [bmo_masked,bmo_colormask];
  glyphs:= tftglyphs.create('FontAwesome.otf',0,15);
  b := tbitmapcomp.create(nil);
  try
b.bitmap.masked := True;
b.bitmap.colormask := True;
l := stockobjects.glyphs;
_Add(61534,cl_default); // stg_none
_Add(61452,cl_default); // stg_checked
_Add(61713,cl_default); // stg_checkedradio
_Add(61590,cl_default); // stg_box
_Add(61767,cl_default); // stg_boxexpanded
_Add(61846,cl_default); // stg_boxexpand
_Add(61658,cl_default); // stg_arrowright
_Add(61656,cl_default); // stg_arrowup
_Add(61657,cl_default); // stg_arrowleft
_Add(61655,cl_default); // stg_arrowdown
...
...
  finally
glyphs.free();
b.Free;
  end;

Problem is that stock imagelist size is 15x15 but not all icons have to be
this fixed size, for example circle for stg_checkedradio has to be much
smaller - arround 10px, same for arrows for scrollbars and so on. For such
"jump" between sizes I have to free tftglyphs instance and create it again
with new height and all initializations. Hawing writable Height make it
much easier and faster.

Regards
--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk