View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006262 | JEDI VCL | 00 JVCL Components | public | 2014-03-05 16:08 | 2016-08-07 01:48 |
Reporter | leobruno | Assigned To | AHUser | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.47 | ||||
Target Version | Fixed in Version | Daily / GIT | |||
Summary | 0006262: TjvPageListTreeView & TjvStandardPage Enabled = False | ||||
Description | I have 4 nodes on a TjvPageListTreeView linked to 4 pages of a TjvStandardPage. Let´s say that I need to block the access to the page linked to the nodeindex 1. tv1.Items.Item[1].Enabled := false; After the compilation the node apears in grey collor indicating that the node is disabled, but when clicking on it, the page linked to it is normally displayed. Is it a bug or I should use a different aproach to block the page from beaind displayed ? | ||||
Tags | No tags attached. | ||||
|
I was able to solve my problem by implementing this code on the OnChanging Event of the TjvPageListTreeView: procedure Tfrm1.tv1Changing(Sender: TObject; Node: TTreeNode; var AllowChange: Boolean); begin AllowChange := Node.Enabled; end; But I really think that a disabled item on the TreeView, should make the Page linked to it unnavaiable. If Jedi Project believes that this should not be implemented, I think that this example should be added to the demo projects. Thanx ... |
|
Please provide the zipped sources of a sample application showing this |
|
Fixed in master branch. |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-03-05 16:08 | leobruno | New Issue | |
2014-03-27 01:47 | leo_burns | Note Added: 0020932 | |
2014-09-03 11:34 | obones | Note Added: 0021027 | |
2014-09-03 11:34 | obones | Status | new => feedback |
2016-08-07 01:48 | AHUser | Note Added: 0021362 | |
2016-08-07 01:48 | AHUser | Status | feedback => resolved |
2016-08-07 01:48 | AHUser | Fixed in Version | => Daily / GIT |
2016-08-07 01:48 | AHUser | Resolution | open => fixed |
2016-08-07 01:48 | AHUser | Assigned To | => AHUser |