Re: [MSEide-MSEgui-talk] Different font and image color selected row in twidgetgrid
On Sunday 16 April 2017 02:21:23 Krzysztof wrote: > Ah and another question. What if some node doesn't have image and should > not have any selected image neither? Is it safe to set: > > constructor TDataNode.create(const aowner: tcustomitemlist; > const aparent: ttreelistitem); > begin > inherited create(aowner, aparent); > > imagenr := imagelist.count * (-1); > FId := -1; > FFilename := ''; > end; Or " imagenr:= -bigint " Martin -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
Re: [MSEide-MSEgui-talk] Different font and image color selected row in twidgetgrid
Ah and another question. What if some node doesn't have image and should not have any selected image neither? Is it safe to set: constructor TDataNode.create(const aowner: tcustomitemlist; const aparent: ttreelistitem); begin inherited create(aowner, aparent); imagenr := imagelist.count * (-1); FId := -1; FFilename := ''; end; -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk