Alexandre Trevizoli Posted May 7, 2023 Share Posted May 7, 2023 Hi. I'm testing Unigui Mobile and I'm using Trial 1.90.0.1565, I have tried enabled:=false on Panel and ContainerPanel, and this not disable child components, am I doing something wrong? Have some workaround? Thanks! I'm old Delphi developer but new on Unigui framework. Link to comment Share on other sites More sharing options...
Sherzod Posted May 8, 2023 Share Posted May 8, 2023 Hello, Thank you for your interest in uniGUI. Try this workaround for now: procedure TMainmForm.UnimFormCreate(Sender: TObject); begin with UnimPanel1 do begin JSInterface.JSAddListener('disabledchange', 'function(me, value){me.getRefItems().forEach(function(item){if (item.isComponent && item.isEnabled) {item.setDisabled(value)}})}'); JSInterface.JSAddListener('painted', 'function(me){me.fireEvent("disabledchange", me, me.getDisabled())}'); end; end; Link to comment Share on other sites More sharing options...
PS1 Posted February 6 Share Posted February 6 Is this still only solution ? Link to comment Share on other sites More sharing options...
Sherzod Posted February 6 Share Posted February 6 14 minutes ago, PS1 said: Is this still only solution ? Yes. We will analyze it again and try to add in the next upcoming versions. 1 Link to comment Share on other sites More sharing options...
Recommended Posts