Jump to content


Photo

UnimCarousel / UnimCarouselPage - property visible


  • Please log in to reply
10 replies to this topic

#1 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 456 posts
  • LocationCuiabá-Brasil

Posted 18 February 2018 - 10:29 PM

The property is not working when its value is set to false. Continue viewing page


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4969 posts

Posted 19 February 2018 - 11:06 AM

Hi,

 

Need to analyze it


  • 0

#3 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4969 posts

Posted 19 February 2018 - 05:22 PM

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,


  • 0

#4 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 456 posts
  • LocationCuiabá-Brasil

Posted 19 February 2018 - 07:16 PM

Okay, I'll be testing


  • 0

#5 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 456 posts
  • LocationCuiabá-Brasil

Posted 20 March 2018 - 08:37 PM

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 [i] .Tag <0 then
         begin
                 UnimCarousel1.Pages [i] .Visible: = false;
                 UnimCarousel1.RemoveControl (UnimCarousel1.Pages [i]);
         end;
 end;
 
UnimCarousel1.Refresh; This does not seem to work either
 
What can we do to solve the problem?

Attached Files


  • 0

#6 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 456 posts
  • LocationCuiabá-Brasil

Posted 20 March 2018 - 08:39 PM

Controls are created in runtime


  • 0

#7 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 456 posts
  • LocationCuiabá-Brasil

Posted 20 March 2018 - 08:58 PM

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;

  • 0

#8 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 456 posts
  • LocationCuiabá-Brasil

Posted 20 March 2018 - 11:01 PM

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.

  • 0

#9 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 456 posts
  • LocationCuiabá-Brasil

Posted 20 March 2018 - 11:14 PM

Giving up using the component. The way it can not use


  • 0

#10 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 4969 posts

Posted 21 March 2018 - 06:38 PM

Hi,

 

Sorry, which build are you using?


  • 0

#11 herculanojs

herculanojs

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 456 posts
  • LocationCuiabá-Brasil

Posted 21 March 2018 - 08:40 PM

1.0.0.1424


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users