Freeman35 Posted September 23, 2016 Share Posted September 23, 2016 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 More sharing options...
Sherzod Posted September 23, 2016 Share Posted September 23, 2016 ... 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 More sharing options...
Sherzod Posted September 23, 2016 Share Posted September 23, 2016 Is TUniTreewView support checkbox? http://forums.unigui.com/index.php?/topic/3432-unitreeview-node-checkbox-how/&do=findComment&comment=16307 Link to comment Share on other sites More sharing options...
Freeman35 Posted September 24, 2016 Author Share Posted September 24, 2016 http://forums.unigui.com/index.php?/topic/3432-unitreeview-node-checkbox-how/&do=findComment&comment=16307 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now