Freeman35 Posted September 23, 2016 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. Quote
Sherzod Posted September 23, 2016 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. Quote
Sherzod Posted September 23, 2016 Posted September 23, 2016 Is TUniTreewView support checkbox? http://forums.unigui.com/index.php?/topic/3432-unitreeview-node-checkbox-how/&do=findComment&comment=16307 Quote
Freeman35 Posted September 24, 2016 Author 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. Quote
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.