Jump to content

Is TUniTreewView support checkbox?


Freeman35

Recommended Posts

... 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...