Splash screen with transparecny png. C++ Builder











up vote
0
down vote

favorite












I want to create a splash screen before my application starts, but i have some troubles with it. I have a image which contains some drawings and it is transparent ( has no background ).
Something like "Blade and Soul" splash screen. I can't post a link here with it, sorry.
I tried to create a panel, give it a color and in my form i set that color to be shown as transparent, but i can still see the borders even though i have set it to be border less.



And another problem that i have encountered is about 3 forms. I have the first form ( main form ), a second form and a third form. I want them to be shown as follow: Main form ( stays 5 seconds on desktop, gets away- i want to hide it - then comes the 2nd form ) Second form ( stays on desktop till i press a button which shows the 3rd form and makes the second one dissapears )
I did this by writing the following code:



Form2->Show();
this->Hide();


Of course, i added a timer and this code is executed after the timer finishes counting so it's 5 seconds.
It works flawless, but from Form2 to Form3 it doesn't work correctly.



Form3->Show();
this->Hide();


I created a button and i wrote this code in it. Form3 appears while Form2 dissapears but then Form2 appears back and i don't understand why...



I'm sorry for my bad english. :)










share|improve this question




























    up vote
    0
    down vote

    favorite












    I want to create a splash screen before my application starts, but i have some troubles with it. I have a image which contains some drawings and it is transparent ( has no background ).
    Something like "Blade and Soul" splash screen. I can't post a link here with it, sorry.
    I tried to create a panel, give it a color and in my form i set that color to be shown as transparent, but i can still see the borders even though i have set it to be border less.



    And another problem that i have encountered is about 3 forms. I have the first form ( main form ), a second form and a third form. I want them to be shown as follow: Main form ( stays 5 seconds on desktop, gets away- i want to hide it - then comes the 2nd form ) Second form ( stays on desktop till i press a button which shows the 3rd form and makes the second one dissapears )
    I did this by writing the following code:



    Form2->Show();
    this->Hide();


    Of course, i added a timer and this code is executed after the timer finishes counting so it's 5 seconds.
    It works flawless, but from Form2 to Form3 it doesn't work correctly.



    Form3->Show();
    this->Hide();


    I created a button and i wrote this code in it. Form3 appears while Form2 dissapears but then Form2 appears back and i don't understand why...



    I'm sorry for my bad english. :)










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I want to create a splash screen before my application starts, but i have some troubles with it. I have a image which contains some drawings and it is transparent ( has no background ).
      Something like "Blade and Soul" splash screen. I can't post a link here with it, sorry.
      I tried to create a panel, give it a color and in my form i set that color to be shown as transparent, but i can still see the borders even though i have set it to be border less.



      And another problem that i have encountered is about 3 forms. I have the first form ( main form ), a second form and a third form. I want them to be shown as follow: Main form ( stays 5 seconds on desktop, gets away- i want to hide it - then comes the 2nd form ) Second form ( stays on desktop till i press a button which shows the 3rd form and makes the second one dissapears )
      I did this by writing the following code:



      Form2->Show();
      this->Hide();


      Of course, i added a timer and this code is executed after the timer finishes counting so it's 5 seconds.
      It works flawless, but from Form2 to Form3 it doesn't work correctly.



      Form3->Show();
      this->Hide();


      I created a button and i wrote this code in it. Form3 appears while Form2 dissapears but then Form2 appears back and i don't understand why...



      I'm sorry for my bad english. :)










      share|improve this question















      I want to create a splash screen before my application starts, but i have some troubles with it. I have a image which contains some drawings and it is transparent ( has no background ).
      Something like "Blade and Soul" splash screen. I can't post a link here with it, sorry.
      I tried to create a panel, give it a color and in my form i set that color to be shown as transparent, but i can still see the borders even though i have set it to be border less.



      And another problem that i have encountered is about 3 forms. I have the first form ( main form ), a second form and a third form. I want them to be shown as follow: Main form ( stays 5 seconds on desktop, gets away- i want to hide it - then comes the 2nd form ) Second form ( stays on desktop till i press a button which shows the 3rd form and makes the second one dissapears )
      I did this by writing the following code:



      Form2->Show();
      this->Hide();


      Of course, i added a timer and this code is executed after the timer finishes counting so it's 5 seconds.
      It works flawless, but from Form2 to Form3 it doesn't work correctly.



      Form3->Show();
      this->Hide();


      I created a button and i wrote this code in it. Form3 appears while Form2 dissapears but then Form2 appears back and i don't understand why...



      I'm sorry for my bad english. :)







      screen loading transparent






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 18 at 11:13

























      asked Nov 18 at 10:57









      g0dafk

      115




      115





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53360093%2fsplash-screen-with-transparecny-png-c-builder%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53360093%2fsplash-screen-with-transparecny-png-c-builder%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Paul Cézanne

          UIScrollView CustomStickyHeader Resize height generates problems when scroll is too fast

          Angular material date-picker (MatDatepicker) auto completes the date on focus out