herculanojs Posted February 18, 2018 Share Posted February 18, 2018 The property is not working when its value is set to false. Continue viewing page Link to comment Share on other sites More sharing options...
Sherzod Posted February 19, 2018 Share Posted February 19, 2018 Hi, Need to analyze it Link to comment Share on other sites More sharing options...
Sherzod Posted February 19, 2018 Share Posted February 19, 2018 Hi, Can you try to use this approach for now ?!: "Hide", for example: procedure TMainmForm.UnimFormReady(Sender: TObject); begin UnimCarousel1.RemoveControl(UnimCarouselPage1); end; "Show", for example: UnimCarousel1.InsertControl(UnimCarouselPage1); UnimCarousel1.ActivePage := UnimCarouselPage1; Best regards, Link to comment Share on other sites More sharing options...
herculanojs Posted February 19, 2018 Author Share Posted February 19, 2018 Okay, I'll be testing Link to comment Share on other sites More sharing options...
herculanojs Posted March 20, 2018 Author Share Posted March 20, 2018 The problem with hiding and removing pages from UnimCarousel persist. In the example there are 5 pages, of which 4 should be hidden because they will be accessed through the option in the code. Even though using the carousel control removal code, pages are still being counted. for i: = UnimCarousel1.PageCount - 1 downto 0 of begin if UnimCarousel1.Pages .Tag <0 then begin UnimCarousel1.Pages .Visible: = false; UnimCarousel1.RemoveControl (UnimCarousel1.Pages ); end; end; UnimCarousel1.Refresh; This does not seem to work either What can we do to solve the problem? Link to comment Share on other sites More sharing options...
herculanojs Posted March 20, 2018 Author Share Posted March 20, 2018 Controls are created in runtime Link to comment Share on other sites More sharing options...
herculanojs Posted March 20, 2018 Author Share Posted March 20, 2018 UnimCarousel1.RemoveControl "uniguiclasses.pas" >> Will it trigger the existing event in unit unimCarousel? If this does not fire, the list is apparently not updated unit unimCarousel; procedure TUnimCarousel.RemovePage(APage: TUnimCarouselPage); begin APage.FCarousel := nil; FPages.Remove(APage); if FPages.Count=0 then FPageIndex := -1 else if FPageIndex>=FPages.Count then begin // if (not IsDestroying) and (not IsLoading) then // SetTabIndex(FPages.Count-1); end; end; Link to comment Share on other sites More sharing options...
herculanojs Posted March 20, 2018 Author Share Posted March 20, 2018 I tried to work around the problem by creating multiple unimcarousel, so I came across another bug Even though the UnimCarousel property is visible = false, the unimcarouselpages are still displayed. Link to comment Share on other sites More sharing options...
herculanojs Posted March 20, 2018 Author Share Posted March 20, 2018 Giving up using the component. The way it can not use Link to comment Share on other sites More sharing options...
Sherzod Posted March 21, 2018 Share Posted March 21, 2018 Hi, Sorry, which build are you using? Link to comment Share on other sites More sharing options...
herculanojs Posted March 21, 2018 Author Share Posted March 21, 2018 1.0.0.1424 Link to comment Share on other sites More sharing options...
Recommended Posts