Plex 2E

  • 1.  Transparent Bitmaps for push buttons

    Posted Sep 14, 2009 05:13 AM
    Hi All,  I  tried to  use a bitmap for a push button having a transparent background. (bookmark.gif in the plex bmp directory)But the background  remains black at design and runtime , although I  added the [buttons] section with the "unusedcolor" entry in the applications inifile.  What  I noticed is, that a bmp file cannot have a transparent color, but the native graphic format for plex windows clients is *.bmp.    I have doubts abouttransparent bitmaps for push buttons (windows) as described in the plex help.  Plex version is 5.5  SP1 ( Build 93.031)  Any suggestions ?  Thanks in advanceKlaus


  • 2.  Re: Transparent Bitmaps for push buttons

    Posted Sep 14, 2009 09:13 AM
    Klaus,  I cannot speak to Plex 5.5 sp1 (Build 93.031) specifically, but I can speak for the fact that at 6.0 build 47.030 this works as advertised.   Just a couple things to try:  1) Make sure that when you added the [buttons] section you didn't actually add a second [buttons] section.   If I recall correctly, there is a [buttons] section in the .ini by default that uses GREEN as it's transparent color.2) Try using a different transparent color, just to see if it makes a difference.   We're using the default, GREEN (0,255,0).   That may not be the desired end result, but something you can try relatively quickly just to see if it makes a difference.3) If you are using the BLACK literal, make sure you're bit map background really is (0,0,0)    John


  • 3.  Re: Transparent Bitmaps for push buttons
    Best Answer

    Posted Sep 15, 2009 12:34 AM
    Hi John,  thank you very much for your suggestions, which makes me more  optimistic about the transparent bitmaps on push buttons. Therefore i tried again and first it  worksat design time, using the GREEN color, but not at runtime. When i checked the applications ini file i noticed that the section for the [native controls] was missing.  After i added the section for the [native controls] to the applications ini file it works as advertised.  Problem solved. Transparent bitmaps for push buttons work only if the section for the [native controls] is included in the applications ini file.  Klaus  


  • 4.  Re: Transparent Bitmaps for push buttons

    Posted Sep 15, 2009 05:12 AM
    Klaus,  More specifically I think you will find that transparent bitmaps are only supported by the older Winwidgets controls. So the following setting is required if want to use transparent bitmaps:   [NativeControls] ;GUI controls either display as MFC controls (1) or Winwidgets (0). ;These settings have no effect on the WinC grid which is always Winwidgets PushButton=0  The default is 1 for MFC.  Regards,  Daniel


  • 5.  Re: Transparent Bitmaps for push buttons

    Posted Sep 15, 2009 07:47 AM
    Hello Daniel,  thanks a lot for the additional information.  Regards,  Klaus