Label with transparent background

Discussion in 'Basic4ppc Wishlist' started by BerndB, Jun 29, 2007.

  1. BerndB

    BerndB Member Licensed User

    Hello Erel,

    for me, it seems not to be possible with the actual transparent functions,
    to get Labels with transparent background.

    It would be a very nice feature!

  2. specci48

    specci48 Well-Known Member Licensed User

    Hi BerndB,

    a suggestion for a workaround:

    Just take an imageButton, use it's transparency feature and set editable = false.
    Now it behaves like a transparent label...

  3. Erel

    Erel Administrator Staff Member Licensed User

    I guess you've meant enabled = false.
    Another option is to draw the text using DrawString.
  4. specci48

    specci48 Well-Known Member Licensed User

    Oh ... enabled, yes. Thank you for reading my answers carefully! ;)

  5. BerndB

    BerndB Member Licensed User

    Oh great, that it is possible allready :sign0060:

    Thank you specci48
    Thank you Erel

    regards BerndB
  6. BerndB

    BerndB Member Licensed User

    ImageButton as a transparent Label over a bitmap


    I now managed it, to use the DrawString in the ForeLayer. (see picture in attachment)

    The (blue number) 864 in Top Middle is written with DrawString over a bitmap, and both, the number and the bitmapline becomes updated every second with new data in height over ground (in meters).

    For the sake of completeness, I would like to know, wether it's possible to see the line behind the text, using a imageButton, as well.
    I couldn't find it out till now.

    If I put the ImageButton (with transparenty checked) on the form, where the bitmap will be, and run the progi, the background of the Button is black (correct as bitmapBackground) but the(yellow) line drawn in the bitmap is masked out from the Buttons outline.

    Thanks for anny hints.

    Attached Files:

  7. Cableguy

    Cableguy Expert Licensed User

    If you are drawing in forelayer all objects are drawn over, like if we had a tranparent sheet were we drew... all controls are bound to the forms layer and therefore have the forms backgroung, as it happend in your attemp to use an imagebutton...

    So I would suggest that you drew all grafical inputs in forelayer and all the info bits in the forms layer, that should do what you want to achieve...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice