rgreat Posted January 18, 2016 Share Posted January 18, 2016 I'm trying to make tree with checkboxes. 1 Quote Link to comment Share on other sites More sharing options...
bang.bram Posted October 12, 2016 Share Posted October 12, 2016 look at: http://forums.unigui.com/index.php?/topic/3432-unitreeview-node-checkbox-how/&do=findComment&comment=16307 uses ... uniGUIApplication ... procedure TMainForm.UniButton1Click(Sender: TObject);var node: TUniTreeNode;begin //node := UniTreeView1.Items.AddChild(SelectedNode, 'TestNode'); node := UniTreeView1.Items.AddChild(nil, 'TestNode'); node.Selected := True;//set(''checked'', false); OR set(''checked'', true);UniSession.AddJS('if (' + UniTreeView1.JSName + '.getSelectionModel().hasSelection()) {'+UniTreeView1.JSName+'.getSelectionModel().getSelection()[0].set(''checked'', false);};'); end; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.