delphi,delphi-xe5,virtualtreeview
I found this Link and changed the awnser to fit my code. Data.Symbol[1] //Simply points to a char. So I changed it to 'char' Read: Stream.Read(Len, SizeOf(Len)); SetLength(Data.Column0, Len); Stream.Read(PChar(Data.Column0)^, Len * SizeOf(Char)); //Copy/Paste this code for all Columns Write: Len := Length(Data.Column0); Stream.Write(Len, SizeOf(Len)); Stream.Write(PChar(Data.Column0)^, Length(Data.Column0) * SizeOf(Char)); //Copy/Paste...
delphi,virtualtreeview,tvirtualstringtree
Write a handler for the OnHeaderClick event and check if the HitPosition property of the HitInfo parameter contains the hhiOnCheckbox flag. For example: procedure TForm1.VirtualTreeHeaderClick(Sender: TVTHeader; HitInfo: TVTHeaderHitInfo); begin if hhiOnCheckbox in HitInfo.HitPosition then begin if Sender.Columns[HitInfo.Column].CheckState = csCheckedNormal then ShowMessage('Checked!') else ShowMessage('Unchecked!') end; end; ...
Handle the OnFocusChanging event and return False to the Allowed parameter for the node of your choice.
c++,64bit,c++builder,virtualtreeview,c++builder-xe7
I just downloaded the latest version from the VirtualTree from here: https://virtual-treeview.googlecode.com/svn/trunk. Since the designtime package doesn't have a 64 bit configuration (Which makes sense because the IDE is a 32 bit app) you must have tried to compile the runtime package. But I can compile the runtime package without...
delphi,virtualtreeview,turbopower
What your question boils down to is whether or not the latest versions create executables that run on XP, and then on your targeted Wine versions. Mostly that depends on what functions you call. If you call functions that aren't present in XP, then your program won't run on XP....
delphi,c++builder,virtualtreeview,tvirtualstringtree
You could simply use the toShowStaticText (StringOptions) option: implementation type PNodeRec = ^TNodeRec; TNodeRec = record Name: WideString; Count: Integer; IsBold: Boolean; end; procedure TForm1.FormCreate(Sender: TObject); var Node: PVirtualNode; NodeRec: PNodeRec; I: Integer; begin VirtualStringTree1.TreeOptions.StringOptions := VirtualStringTree1.TreeOptions.StringOptions + [toShowStaticText]; VirtualStringTree1.NodeDataSize := Sizeof(TNodeRec); // Populate some data for I := 1...
delphi,memory-leaks,virtualtreeview
Cosmin's code does not intend for the tree view nodes to own the TNode objects. I think in his post you were meant to hold on to the Root object and destroy it after the tree is destroyed. In Cosmin's code the TNode objects are owned by the object list...
You could write Node.States := [vsDisabled];, to make your code compilable. But this is not what you are supposed to do. There are node states that you must keep untouched and by the mentioned statement you would throw them away and set only the vsDisabled one. You wanted to write...