Jump to content

Is TUniTreewView support checkbox?


Freeman35

Recommended Posts

Hello,

Is TUniTreewView support checkbox? and can change font and/or color etc. of node(s)

in delphi

if Node.Checked then ?????.color:= clred;  and where ????? which event(s)????

Is it possible share code how to do?

really so hard learn unigui without any document.

 

Thank you.

Link to comment
Share on other sites

... and can change font and/or color etc. of node(s)

in delphi

 

Hi,

 

Can you try analyze this demo: ...\FMSoft\Framework\uniGUI\Demos\Desktop\TreeView

procedure TMainForm.UniButton3Click(Sender: TObject);
begin
  if SelectedNode<>nil then
  begin
    SelectedNode.Text:=UniEdit1.Text;
    SelectedNode.Font.Style:=[fsBold];
    SelectedNode.Font.Color:=clBlue;
  end;
end;

Best regards.

Link to comment
Share on other sites

Thank you your answers. I saw that link yesterday, and tested it. It not work for me, and not more info about this topic so I wrote this issue.

This line from my test. I add this line (copied from that link) there is no checkbox painting on treeview. And other TUniTreeNode has not checked property. where store check info variable?  Is it possible add small exaple form? 3-4 nodes and on runtime click event change checked property.

UniSession.AddJS('if (' + TRW_.JSName + '.getSelectionModel().hasSelection()) {'+TRW_.JSName+'.getSelectionModel().getSelection()[0].set(''checked'', false);};');

Thank you,

Regards.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...