Re: [Lazarus] TDBNavigator icons break symmetry

2012-10-20 Thread William Oliveira Ferreira
Could some of these?
http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png
http://www.famfamfam.com/lab/icons/silk/

2012/10/19 Ajeandro Gonzalo 

> Does anyone have a source fot suitable icons (also i need a gear one)?
> Maybe put them in a zip file and attach thwm to a message?  Or upload to a
> free host like http://www.zippyshare.com?
>
> Thanks.
>
> A. G.
>
> --- On Sat, 10/13/12, Bart  wrote:
>
> > From: Bart 
> > Subject: Re: [Lazarus] TDBNavigator icons break symmetry
> > To: "Lazarus mailing list" 
> > Date: Saturday, October 13, 2012, 5:15 AM
> > On 10/10/12, Graeme Geldenhuys 
> > wrote:
> > > On 2012-10-09 23:12, Bart wrote:
> > >>
> > >> File a feature request in the bugtracker?
> > >> Otherwise it will be forgotten.
> > >
> > > http://bugs.freepascal.org/view.php?id=23097
> > >
> >
> > I implemented it in r39065.
> > Please test and report any bugs.
> >
> > Bart
> >
> > --
> > ___
> > Lazarus mailing list
> > Lazarus@lists.lazarus.freepascal.org
> > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> >
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 

William de Oliveira Ferreira
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Checkbox value in TDrawGrid

2012-10-20 Thread Leonardo M . Ramé
On 2012-10-19 17:09:43 -0700, Jesus Reyes wrote:
> 
> 
> --- El vie 19-oct-12, Leonardo M. Ramé  escribió:
> 
> > De: Leonardo M. Ramé 
> > Asunto: [Lazarus] Checkbox value in TDrawGrid
> > A: "Lazarus mailing list" 
> > Fecha: viernes, 19 de octubre de 2012, 15:08
> > Hi, is there a method to set/get the
> > value of a checkbox in a TDrawGrid,
> > when the column's buttonStyle was declared as
> > cbsCheclBoxColumn?.
> > 
> 
> Since r39142 DrawGrid have the events OnGetCheckboxState and 
> OnSetCheckboxState previously available only in StringGrid.
> 

Thanks, here are the steps to add CheckBoxes to a TDrawGrid:

1) Use Lazarus r39142 or newer.
2) Place a TDrawGrid on a form, and add goEditing to Options.
3) Add a column whith ButtonStyle = cbsCheckBoxColumn.
4) Add onDrawCell event, as usual.
5) Add onCheckBoxToggled, for example:

  procedure TForm1.DrawGridListCheckboxToggled(sender: TObject; aCol,
aRow: Integer; aState: TCheckboxState);
  var
lData: TMyList;

  begin
if (ARow > 0) and (ACol = 0) then
begin
  lData := FMyList[ARow - 1];
  lData.Checked := not lData.Checked;
end;
  end;
  
  Here I have a list of items (FMyList) where each item has a "Checked"
  property which is setted to true or false each tiem the user clicks on
  a grid's checkbox. In the example the checkbox must be placed in the
  1st column.

6) Add an onGetCheckBoxState event:

  procedure TForm1.DrawGridListGetCheckboxState(Sender: TObject; ACol,
ARow: Integer; var Value: TCheckboxState);
  var
lData: TMyList;

  begin
if ACol = 0 then
begin
  lData := FMyList[ARow - 1];
  if lData.Checked then
Value := cbChecked
  else
Value := cbUnchecked;
end;
  end;

  This event just check the status of an FMyList item and sets the param
  "Value" to cbChecked or cbUnchecked.

That's it.
-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] OT: Enjoy this one. Was Re: Working with threads and GUI

2012-10-20 Thread ik
I created an example (for my blog), that laugh on how Hollywood
display brute forcing passwords:
https://github.com/ik5/blog-examples/tree/master/fpc/brute_force_hollywood

Thank for all of your help :)

Ido


On Thu, Oct 18, 2012 at 12:25 PM, Michael Schnell  wrote:
> On 10/18/2012 11:59 AM, ik wrote:
>>
>> Thanks, I didn't know about it, and it might save me a thread.
>
>
> It's the portable of what Postmessage() is used for in Windows (so Delphi
> does not provide it).
>
>
> -Michael
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] New version of VirtualTreeView released

2012-10-20 Thread luiz americo pereira camara
Full announcement at
http://www.lazarus.freepascal.org/index.php/topic,18640.0.html

Luiz
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] OT: Enjoy this one. Was Re: Working with threads and GUI

2012-10-20 Thread Reinier Olislagers
On 20-10-2012 16:34, ik wrote:
> I created an example (for my blog), that laugh on how Hollywood
> display brute forcing passwords:
> https://github.com/ik5/blog-examples/tree/master/fpc/brute_force_hollywood
> 
> Thank for all of your help :)
> 
> Ido

Thanks, Ido, had a brief look at the code and it looked very *ahem*
authentic ;)

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TActionList Editor: "List index (1) out of bounds"

2012-10-20 Thread Marcos Douglas
Hi,

To reproduce the error:
1- put a TActionList on the form;
2- add a new TAction;
3- implement OnExecute event;
4- drop a button and link it with the Action;
5- double click on TActionList;
6- in the ActionList Editor, select the action;

Just a curiosity here: All TAction objects they have the OnExecute
event implemented, do not show the property Name on the Object
Inspector when you click on... why?

7- In Object Inspector tree view components, click on the Action
(TButton->TAction)

Error: "List index (1) out of bounds"

To rename an Action only is possible using the tree view component.

Lazarus 1.1 r39145 FPC 2.6.1 i386-win32-win32/win64

Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TActionList Editor: "List index (1) out of bounds"

2012-10-20 Thread Marcos Douglas
On Sat, Oct 20, 2012 at 1:21 PM, Marcos Douglas  wrote:
> Hi,
>
> To reproduce the error:
> 1- put a TActionList on the form;
> 2- add a new TAction;
> 3- implement OnExecute event;
> 4- drop a button and link it with the Action;
> 5- double click on TActionList;
> 6- in the ActionList Editor, select the action;
>
> Just a curiosity here: All TAction objects they have the OnExecute
> event implemented, do not show the property Name on the Object
> Inspector when you click on... why?
>
> 7- In Object Inspector tree view components, click on the Action
> (TButton->TAction)
>
> Error: "List index (1) out of bounds"
>
> To rename an Action only is possible using the tree view component.
>
> Lazarus 1.1 r39145 FPC 2.6.1 i386-win32-win32/win64
>
> Marcos Douglas

Posted in bugtrack:
http://bugs.freepascal.org/view.php?id=23172

Marcos Douglas

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fwd: How to change default editor font *before* primary config ~/.lazarus is created?

2012-10-20 Thread Bernd
2012/10/17 Mattias Gaertner :
> Don't try. Just create the output directories to make mkdir -p happy. They 
> don't
> hurt.

I found another one while trying to package current trunk (svn39145)
to install into /usr/lib/lazarus, this one is in synedit:

components/synedit/design/languages

If the directory exists and is empty I can re-build the IDE, otherwise
it will throw an error and fail.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] OI component treeview is now less usable

2012-10-20 Thread Alexander Klenin
On Fri, Oct 19, 2012 at 3:13 AM, Alexander Klenin  wrote:
> Since r39097 (IDEIntf: OI: component treeview: show all owned objects
> in properties)
> it became much harder to understand and use treeview.
> Please, if you are sure it is an improvement for somebody, at least
> make it configurable.

Please! Object inspector is now totally broken, with multiple crashes,
fields disappearing, treeview displaying multiple "ghost" items...
Currently as a workagound I edit lfm files by hand instead of using
form designer,
but is slows my work down substantially.

-- 
Alexander S. Klenin

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus