[MSEide-MSEgui-talk] Up-down / grouped button

2016-04-12 Thread Krzysztof
Hi Martin,

How to make TButton to act as "radio button"? I mean it can be down
and click on another button with same group make it up and make down
new button. In LCL it was enough to set TSpeedButton.GroupIndex.

Regards

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] TDirDropdownEdit - how to make button flat and transparent?

2016-04-12 Thread Krzysztof
2016-04-11 8:37 GMT+02:00 Martin Schreiber :
> They are in lib/common/dialogs/msefiledialogres.pas.
> On runtime:
> "
>  filedialogres.images.setimage(ord(fdi_dir),newbitmap,
>[al_xcentered,al_ycentered]);

Why result has weird artifacts (see attached screen)? Normaly this
icon is drawed correctly and common used on many widgets (transparent,
antialysed, everything ok). Source TImageList is 12x12 with options
+[bmo_graymask]. Override code:

  // Override MSE icons
  b := tbitmapcomp.create(nil);
  try
imlstDyn12.getimage(iICO12_FOLDER, b.bitmap);
filedialogres.images.setimage(ord(fdi_dir), b.bitmap,
[al_xcentered,al_ycentered]);
  finally
b.Free;
  end;

There is different artifact if I don't call b.Free. Is it becomes owner?
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Up-down / grouped button

2016-04-12 Thread Martin Schreiber
On Tuesday 12 April 2016 20:09:46 Krzysztof wrote:
> Hi Martin,
>
> How to make TButton to act as "radio button"? I mean it can be down
> and click on another button with same group make it up and make down
> new button. In LCL it was enough to set TSpeedButton.GroupIndex.
>
Buttons with state are supported by TDataButton (tab 'Edit') which also can be 
placed into a TWidgetGrid. The Value property increments from Min to Max and 
back to Min by clicking. The appearance of the different states can be 
defined by the ImageNums, ValueFaces and ValueCaptions array properties.
Currently there is no radiobutton functionality - I'll add it.

Martin

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] TDirDropdownEdit - how to make button flat and transparent?

2016-04-12 Thread Martin Schreiber
On Tuesday 12 April 2016 23:52:06 Krzysztof wrote:
> 2016-04-11 8:37 GMT+02:00 Martin Schreiber :
> > They are in lib/common/dialogs/msefiledialogres.pas.
> > On runtime:
> > "
> >  filedialogres.images.setimage(ord(fdi_dir),newbitmap,
> >[al_xcentered,al_ycentered]);
>
> Why result has weird artifacts (see attached screen)? Normaly this
> icon is drawed correctly and common used on many widgets (transparent,
> antialysed, everything ok). Source TImageList is 12x12 with options
> +[bmo_graymask]. Override code:
>
>   // Override MSE icons
>   b := tbitmapcomp.create(nil);
>   try
> imlstDyn12.getimage(iICO12_FOLDER, b.bitmap);
> filedialogres.images.setimage(ord(fdi_dir), b.bitmap,
> [al_xcentered,al_ycentered]);
>   finally
> b.Free;
>   end;
>
> There is different artifact if I don't call b.Free. Is it becomes owner?

No. TImageList has a single bitmap for all items. I'll try to reproduce.

Martin


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Debugging issue

2016-04-12 Thread Martin Schreiber
On Tuesday 12 April 2016 10:45:18 Graeme Geldenhuys wrote:
> On 2016-04-12 07:01, Martin Schreiber wrote:
> > The FPC-gdb combination does not support nested function scopes. Please
> > click in stack window in the row of "DoPrepareReport()" in order to
> > switch the frame.
>
> OK, thanks for the solution.
>
> I so hope one day Free Pascal will have its own debugger where all such
> use cases are supported. GDB might be a great debugger for C/C++, but it
> sure sucks for Object Pascal. Maybe MSElang will come with a native
> Object Pascal debugger? ;-)
>
It uses the LLVM backend where it could be possible to define nested stack 
variables if I read the code right (not tested yet). gcc also supports nested 
functions AFAIK, I don't know if outer variables are visible in gdb.

Martin

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Debugging issue

2016-04-12 Thread Graeme Geldenhuys
On 2016-04-12 10:10, Martin Schreiber wrote:
> It uses the LLVM backend where it could be possible to define nested stack 
> variables if I read the code right (not tested yet). gcc also supports nested 
> functions AFAIK, I don't know if outer variables are visible in gdb.

I just tested with Lazarus IDE. It managed to watch the lSpaceLeft
variable even inside the nested function. See attached screenshot. I'm
not sure what trickery they did to accomplish that.

On a side note:
  I do know Martin Friebe is working on the native Object Pascal
debugger, fpdebug (1). So did I (2) at one stage as a continuation of
Duby. Martin Friebe apparently took the best bits and rolled it into
one. Lazarus can now use GDB or fpdebug or a combination of both.

fpdebug included in Lazarus is definitely making good progress. You seem
very knowledgeable about debuggers too. Maybe two Martin's are better
than one , and fpdebug could be moved into its own stand-alone
repository for easier external contributions. That could benefit MSEide too.


(1) https://github.com/graemeg/lazarus/tree/upstream/components/fpdebug
(2) https://github.com/graemeg/fpdebug

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] Feature Request: shortcut for "Add watch at cursor"

2016-04-12 Thread Graeme Geldenhuys
Hi,

The source editor popup menu has "Add watch at cursor", but there is no
shortcut assigned to it, and you can't assign one either, as it doesn't
appear in the IDE shortcuts list.

Could this action item be added to the IDE shortcuts list please.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Debugging issue

2016-04-12 Thread Graeme Geldenhuys
On 2016-04-12 07:01, Martin Schreiber wrote:
> The FPC-gdb combination does not support nested function scopes. Please click 
> in stack window in the row of "DoPrepareReport()" in order to switch the 
> frame.

OK, thanks for the solution.

I so hope one day Free Pascal will have its own debugger where all such
use cases are supported. GDB might be a great debugger for C/C++, but it
sure sucks for Object Pascal. Maybe MSElang will come with a native
Object Pascal debugger? ;-)



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Debugging issue

2016-04-12 Thread Martin Schreiber
On Tuesday 12 April 2016 11:40:46 Graeme Geldenhuys wrote:
> On 2016-04-12 10:10, Martin Schreiber wrote:
> > It uses the LLVM backend where it could be possible to define nested
> > stack variables if I read the code right (not tested yet). gcc also
> > supports nested functions AFAIK, I don't know if outer variables are
> > visible in gdb.
>
> I just tested with Lazarus IDE. It managed to watch the lSpaceLeft
> variable even inside the nested function. See attached screenshot. I'm
> not sure what trickery they did to accomplish that.
>
Maybe Lazarus parses the code and determines the frame level. MSEide parser 
probably is not good enough to do that.

> On a side note:
>   I do know Martin Friebe is working on the native Object Pascal
> debugger, fpdebug (1). So did I (2) at one stage as a continuation of
> Duby. Martin Friebe apparently took the best bits and rolled it into
> one. Lazarus can now use GDB or fpdebug or a combination of both.
>
> fpdebug included in Lazarus is definitely making good progress. You seem
> very knowledgeable about debuggers too. Maybe two Martin's are better
> than one , and fpdebug could be moved into its own stand-alone
> repository for easier external contributions. That could benefit MSEide
> too.
>
I fear that bringing a cross platform debugger to a level what gdb offers 
today is a huge task or even impossible because we don't have the necessary 
platform specialists especially for embedded targets and the embedded 
hardware debug tools mainly support gdb. Please remember, I use MSEide for 
embedded C development too. So I had to maintain interfaces for both fpdebug 
and gdb. Sure that is doable and I assume fpdebug API is much better than gdb 
but supporting both has no top priority at the moment.
I fear another big job-site. ;-)
If I find some time I'll look into fpdebug, currently I have very little 
knowledge of fpdebug.

Martin

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Feature Request: shortcut for "Add watch at cursor"

2016-04-12 Thread Martin Schreiber
On Tuesday 12 April 2016 11:55:38 Graeme Geldenhuys wrote:
> Hi,
>
> The source editor popup menu has "Add watch at cursor", but there is no
> shortcut assigned to it, and you can't assign one either, as it doesn't
> appear in the IDE shortcuts list.
>
> Could this action item be added to the IDE shortcuts list please.
>
I'll take a look. Alternative: press MenuKey-W.

Martin

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk