Re: [lazarus] TVirtualStringTreeView

2006-04-27 Thread Bogusław Brandys

Bogusław Brandys wrote:

Bogusław Brandys wrote:

Christian U. wrote:
Maybe it's a painting problem and checkboxes are there but not 
displayed ?


Yes, it is i think the images for the checkboxes arent load thatas 
all i had

some problems with the imagelists
that hold those images in an earlyer lcl i think today this is no 
problem to

use them again.
i take a look at this today evening maybe then the xp styles are also 
there

again.

regards
Christian Ulrich



The problem is exactly IL.AddMasked(...) inside ConvertImageList 
function.Looks like not working properly.
If I change it to IL.AddCopy(OneImage,nil) - it works but with ugly 
black background behind checkbox.


Regards
Boguslaw



Custom images working perfectly using external TImageList, so there is a 
way to store/retrieve TImageList content to resource.The main problem is 
 to allow this also by code - not automatically.How it's done in other 
components which need to display own icons/bitmaps like 
checkbox,radiobutton using internal TImageList instance?



Please help, I can't step forward.I cannot load bitmap with check images 
and add separate images to TImageList with transparency color.


Using Lazarus 0.9.14 under Windows XP.

Regards
Boguslaw

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TVirtualStringTreeView

2006-04-26 Thread Bogusław Brandys

Bogusław Brandys wrote:

Christian U. wrote:
Maybe it's a painting problem and checkboxes are there but not 
displayed ?


Yes, it is i think the images for the checkboxes arent load thatas all 
i had

some problems with the imagelists
that hold those images in an earlyer lcl i think today this is no 
problem to

use them again.
i take a look at this today evening maybe then the xp styles are also 
there

again.

regards
Christian Ulrich



The problem is exactly IL.AddMasked(...) inside ConvertImageList 
function.Looks like not working properly.
If I change it to IL.AddCopy(OneImage,nil) - it works but with ugly 
black background behind checkbox.


Regards
Boguslaw

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TVirtualStringTreeView

2006-04-26 Thread Bogusław Brandys

Christian U. wrote:

Maybe it's a painting problem and checkboxes are there but not displayed ?


Yes, it is i think the images for the checkboxes arent load thatas all i had
some problems with the imagelists
that hold those images in an earlyer lcl i think today this is no problem to
use them again.
i take a look at this today evening maybe then the xp styles are also there
again.

regards
Christian Ulrich

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives




Imagelists for checkboxes are disabled in code.However problem is inside 
ConvertImageList function because it generates exception at the end of 
program execution and also checkboxes appear as black rectangles


_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TVirtualStringTreeView

2006-04-25 Thread Christian U.
> Maybe it's a painting problem and checkboxes are there but not displayed ?

Yes, it is i think the images for the checkboxes arent load thatas all i had
some problems with the imagelists
that hold those images in an earlyer lcl i think today this is no problem to
use them again.
i take a look at this today evening maybe then the xp styles are also there
again.

regards
Christian Ulrich

_
 To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TVirtualStringTreeView

2006-04-25 Thread Bogusław Brandys

Christian U. wrote:

:pserver:[EMAIL PROTECTED]:/CVS/virtualtrees example


example is the module thre rest the cvs root :p

what exactly do you try ? i never have trye to use checkboxes
when you can give me some more hints maybe i can fix the bug (if there 
is one)
first step use the cvs version (some bugs are fixed there (like 
multiline support i needed last time :)))
second if you find an bug please report ist to http://avl.ath.cx/mantis/ 
i will look at this as fast as i can


regards
Christian Ulrich


I use cvs version with Lazarus 0.9.14.I've  set 
VST.TreeOptions.MiscOptions :=  VST.TreeOptions.MiscOptions + 
[toCheckSupport] and also at design time but it didn't help.


No checkboxes appear.Treeview ignore also

 CheckType[FocusedNode] := ctTriStateCheckBox;
 CheckState[FocusedNode] := csMixedPressed;


or

  Sender.CheckType[Node] := ctCheckBox;

inside OnInitNode event handler.

Maybe it's a painting problem and checkboxes are there but not displayed ?

For simple testing I used minimal example from CVS repository also.The 
same effect.


Regards
Boguslaw Brandys

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TVirtualStringTreeView

2006-04-25 Thread Christian U.

:pserver:[EMAIL PROTECTED]:/CVS/virtualtrees example


example is the module thre rest the cvs root :p

what exactly do you try ? i never have trye to use checkboxes
when you can give me some more hints maybe i can fix the bug (if there is 
one)
first step use the cvs version (some bugs are fixed there (like multiline 
support i needed last time :)))
second if you find an bug please report ist to http://avl.ath.cx/mantis/ i 
will look at this as fast as i can


regards
Christian Ulrich 


_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TVirtualStringTreeView

2006-04-25 Thread Darius Blaszijk

There is an example in CVS

:pserver:[EMAIL PROTECTED]:/CVS/virtualtrees example

Darius


- Original Message - 
From: "Bogusław Brandys" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, April 25, 2006 7:30 PM
Subject: [lazarus] TVirtualStringTreeView



Hello,

Please provide simple example project how to work with 
TVirtualStringTreeView under Lazarus.I want to set check boxes for each 
node but they do not appear.


Is this control (Lazarus port of TVirtualTreeView) works on Lazarus 0.9.14 
?



Regards
Boguslaw

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives 


_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] TVirtualStringTreeView

2006-04-25 Thread Bogusław Brandys

Hello,

Please provide simple example project how to work with 
TVirtualStringTreeView under Lazarus.I want to set check boxes for each 
node but they do not appear.


Is this control (Lazarus port of TVirtualTreeView) works on Lazarus 0.9.14 ?


Regards
Boguslaw

_
To unsubscribe: mail [EMAIL PROTECTED] with
   "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives