Search found 211 matches
- Thu Jun 18, 2009 9:11 pm
- Forum: VCL
- Topic: Tutorial is broken methinks
- Replies: 2
- Views: 11254
Re: Tutorial is broken methinks
Hi, The reason this happens is because files downloaded off the Internet - including ZIP files and files cotained in those zip files - are marked as potentially malicious and so do not get full browsing rights on the local machine – they can’t access local content, which is exactly what help topics ...
- Thu Jun 18, 2009 9:01 pm
- Forum: VCL
- Topic: Isn't this code a bit too simple??
- Replies: 2
- Views: 11770
Re: Isn't this code a bit too simple??
There is no need for interating through each branch, as all shapes are also available through the shapes property of TTree.
If you use eg it wil provide the first node in the tree which contains 'TreeNode' inside it's text.
Regards,
Tom
If you use eg
Code: Select all
node := Tree1.Shapes.Find('TreeNode', true)
Regards,
Tom
- Thu Jun 18, 2009 8:57 pm
- Forum: VCL
- Topic: Repeatedly find items that contain the same string
- Replies: 1
- Views: 9056
Re: Repeatedly find items that contain the same string
There is no method to retrieve nodes as such, however, you can implement this on a relatively easy way. The Shapes property contains all the nodes in the tree, so you can iterate these and perform your match on every node, as in: procedure TForm2.FindNodesClick(Sender: TObject); var t: integer; begi...
- Sun Apr 05, 2009 10:03 am
- Forum: VCL
- Topic: TeeTree Expand and collapse causes black canvas
- Replies: 1
- Views: 9744
- Tue Nov 25, 2008 11:18 pm
- Forum: VCL
- Topic: How do you access data?
- Replies: 2
- Views: 12160
Hi Bruce, You can use the DblClickShape event for this purpose. The Sender argument contains a reference to the clicked shape. The level property of a TTreeNodeShape provides information where the node is positioned in the tree (0 equals root level). References of parent(s) are provided through the ...
- Tue Nov 25, 2008 8:13 pm
- Forum: VCL
- Topic: Smooth Shadows Zooming- Fix not applied in V8.04
- Replies: 1
- Views: 10032
- Sat Nov 15, 2008 1:08 pm
- Forum: VCL
- Topic: TGridShape individual Cell Width
- Replies: 1
- Views: 9670
Hi, Unfortunately, there is no functionality in GridShape which supports your request. As it it implemented now, you can't assign custom widths or heights. At the moment it works as follows: Changing the width/height of a cell has no effect, since it is automatically calculated: 1) AutoSize off: The...
- Sat Aug 23, 2008 10:52 pm
- Forum: VCL
- Topic: First (Topmost) Node not receiving mouse clicks correctly
- Replies: 1
- Views: 10150
- Sun Jun 15, 2008 9:47 am
- Forum: VCL
- Topic: OOPS ---- ??
- Replies: 2
- Views: 12388
Hi,
drop TeeSVGCanvas in your uses list and try the following code:
This should result in a part (100 by 100) image of your tree.
Regards,
Tom.
drop TeeSVGCanvas in your uses list and try the following code:
Code: Select all
procedure TForm2.Button38Click(Sender: TObject);
var
tmp: TSVGExportFormat;
begin
TeeSaveToSVGFile(Tree1, 'c:\test.svg', 100,100);
end;
Regards,
Tom.
- Tue Jun 10, 2008 9:45 pm
- Forum: VCL
- Topic: Hiding root nodes
- Replies: 2
- Views: 11970
Hi, TeeTree was developed not only as a Tree substitute, therefor it doesn't always behaves as a Tree would. To make all child nodes invisible, you can recursively iterate all childs by yourself, e.g.: procedure TForm2.HideClick(Sender: TObject); procedure Hide(Node: TTreeNodeShape; Recursive: Boole...
- Tue Jun 10, 2008 9:04 pm
- Forum: VCL
- Topic: Out Of System resources using ImageListIndex
- Replies: 1
- Views: 10127
Hi okra, The advantage of using the global array of images is that when several nodes share the same image, the image is allocated into memory only once. You can add your own images to the image pool, using following code: customIndex:= TreeImagePool.Add( Image1.Picture ); The performance will also ...
- Tue Jun 10, 2008 7:29 pm
- Forum: VCL
- Topic: selected unfocused bug
- Replies: 1
- Views: 9887
- Mon Mar 31, 2008 9:51 pm
- Forum: VCL
- Topic: Permanently hide grid from designer
- Replies: 2
- Views: 12415
- Mon Mar 31, 2008 7:23 pm
- Forum: VCL
- Topic: Shadows not scaling with View3DOptions.Zoom
- Replies: 2
- Views: 12379
- Mon Mar 31, 2008 6:32 pm
- Forum: VCL
- Topic: Autosize/autofit TTree objects- any solution yet?
- Replies: 4
- Views: 17717