Using TJsDialog with Alphacontrols

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #39737
    Neon
    Participant

      You can try this code, maybe this is what you need:

      CODE
      sSkinManager1.SkinningRules := sSkinManager1.SkinningRules – [srDialogs];
      JsDialog1.ShowModal();
      sSkinManager1.SkinningRules := sSkinManager1.SkinningRules + [srDialogs];

      #39738
      prefont
      Participant

        Thanks – the TJSDialog uses a TForm on XP to emulate the Vista TaskDialog, so using the below worked to show the dialog as normal:

        sSkinManager1.SkinningRules := sSkinManager1.SkinningRules – [srStdForms];
        ..show dialog
        sSkinManager1.SkinningRules := sSkinManager1.SkinningRules + [srStdForms];

        Now I need to learn how I can skin the dialog so that it matches the current skinning. I might need to just replace the TJSDialog component and go back to regular dialog boxes.

        #39741
        Neon
        Participant

          Yeah, that's really good question. The AdvTaskDialog from TMS has the same problem and I suppose that can't be done right now…

          P.S. I'm done with Delphi now, so my advices are not always correct <img src="style_emoticons//rolleyes.gif” style=”vertical-align:middle” emoid=”:roll:” border=”0″ alt=”rolleyes.gif” />

          #39747
          prefont
          Participant

            I really appreciate the tip – thanks!

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.