Tranparency in form exept for the panel



  • Hi I want to make my form transparent, now that is easy..but there is one region in the form "a tpanel" which I do not want to be affected by the transparency. In other words I want it to stay fully visible no matter what the alphablendvalue of the TForm is.

    Thanks for any replies

    "Sorry for posting in english..I understand german..but I still have to work on my writing"



  • Oh my English skills...
    but i will try it.

    I must work with different colors.
    For example you set the color of Form1 to clGreen and the color of the Panel to your favourite color (but not the same Form1 owns).

    Now you have to set the TransparentColor property of Form1 on true. The TransparentColorValue must in this case clGreen.

    The Effect is that the Form is transparent without the Panel.
    To this functionally you can add the AlphaBlend-property.

    To hide the Form's controlls set BorderStyle to for example bsNone.

    I hope this explanation will help you a little bit.

    greetings



  • Thank you for your reply...It DID work..but when I set alphablend to "TRUE" it displays ALL of the form as transparent again 🙄 ...I need the panel to stay non-transparent...



  • Ok, don't use AlphaBlend. Try it with TransparentColor. I dont' know if it is possible to use semi transparent form on this way. Maybe with regions...



  • What you are looking for is not possible by using VCL methods. Like Rostfrei already said, you could give it a try by using the WinAPI directly (e.g. Regions).

    But since you're more comfortable posting in English, you might be better off using the Borland newsgroups.



  • That's it, that's the c-plusplus.net style!



  • Dem stimme ich zu. Wenn hier ein Engländer (bzw. egal wer, solange auf Englisch) eine Frage postet, dann wird er schon wissen warum. Und er wird auch wissen, dass dies ein Deutsches Forum ist, und dass es Englische gibt. In sofern empfinde ich es als sehr grob abweisend, in jedem solchen Posts auf die Newgroup zu verweisen.

    I agree. If any english guy posts a question here, he or she will mostly know why. And he or she will also know that this is a german board and that there're lots of english ones in the world wide web. As for this, I think it's very rude and kind of rejecting to link (or nearly redirect) to the newsgroup every time such a post appears here.



  • Wenn ich auf deutsch gepostet hatte dann hattet ihr also meine frage geantwortet...also ich finde as blod zubestimmen welche sprache man benutzen muss, es ist als ob du mir sagst welche programier sprache ich benutzen soll.

    P.S. Sorry for any spelling errors, I really worked along time to get that paragraph looking that way 😃



  • We did answer your questions: What you want to do is impossible (at least using the VCL).

    By the way: I've seen (or better read :D) many native speakers here (-> Sandkasten, e.g.) whose written german is worse than yours!



  • Why would anyone refuse to use a forum where all postings are in a language that (s)he speaks rather fluently, where his/her questions would be read by a lot more people, many of them also a lot more knowledgable regarding programming with the BCB than the people usually frequenting this board (myself included, of course)?

    And then even act as if offended by the gentle hint!?

    Native language message boards etc. are either a place to discuss problems predominantly relevant to the place(s) where that language is usually spoken; or are some sort of last effort for people who don't have a firm enough grasp of the lingua franca of the Internet, which happens to be English.
    Another reason could be the desire to improve one's language skills, but that usually requires actually using the language in question ...


Anmelden zum Antworten