strange behaviour of setVisible during startup

Home Forums General Programming strange behaviour of setVisible during startup

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #69459
    iceleben
    Participant
      • Topics: 7
      • Replies: 13
      • Total: 20

      I have 4 ui ListBox that I dont want to Show after the Panel has loaded. I tried lots of different “Called when the Panel has finished loaded” methods including timers but none of them worked, no error but the boxes are still there. I then made a dummy button with a script that worked and now I set the button modval to 1 within the panelload and they are gone( I included a “false vis” for the button as well and it is gone as well). But this feels kind of stupid, so any help would be appreciated!

      #69468
      goodweather
      Participant
        • Topics: 45
        • Replies: 550
        • Total: 595
        • ★★★

        Hi, I got this working but I remember having had some issues though… not sure anymore…
        What I have done:

        • In my panel I set the modulators invisible by default (Component generic – Is component visible = OFF)
        • In PanelLoaded, I set them invisible as well with
          	lblProgress:getComponent():setVisible(false)
          	txtProgress:getComponent():setVisible(false)
          	modProgressBar:getComponent():setVisible(false)
        • when needed I set them visible with
          	lblProgress:getComponent():setVisible(true)
          	txtProgress:getComponent():setVisible(true)
          	modProgressBar:getComponent():setVisible(true)
        • the different modulators are declared as
          	lblProgress = panel:getModulatorByName("lblProgress")
          	txtProgress = panel:getModulatorByName("txtProgress")
          	modProgressBar = panel:getModulatorByName("ProgressBar")
          

        May be this will help you…

      Viewing 2 posts - 1 through 2 (of 2 total)
      • The forum ‘Programming’ is closed to new topics and replies.
      There is currently 0 users and 68 guests online
      No users are currently active
      Forum Statistics
      Threads: 2,495, Posts: 17,374, Members: 77,605
      Most users ever online was 12 on January 22, 2019 3:47 pm
      Ctrlr