Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Basic4ppc Wishlist Missing any feature?

Label with transparent background

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-29-2007, 12:18 PM
Junior Member
 
Join Date: May 2007
Location: Germany
Posts: 45
Default Label with transparent background

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!

regards
Bernd
Reply With Quote
  #2 (permalink)  
Old 06-29-2007, 02:07 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 993
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

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...


specci48
Reply With Quote
  #3 (permalink)  
Old 06-29-2007, 02:59 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I guess you've meant enabled = false.
Another option is to draw the text using DrawString.
Reply With Quote
  #4 (permalink)  
Old 06-29-2007, 03:16 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 993
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

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

specci48
Reply With Quote
  #5 (permalink)  
Old 06-30-2007, 11:00 AM
Junior Member
 
Join Date: May 2007
Location: Germany
Posts: 45
Default

Oh great, that it is possible allready

Thank you specci48
Thank you Erel


regards BerndB
Reply With Quote
  #6 (permalink)  
Old 07-03-2007, 03:41 PM
Junior Member
 
Join Date: May 2007
Location: Germany
Posts: 45
Default ImageButton as a transparent Label over a bitmap

Hi,

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.
regards
BerndB
Attached Images
File Type: jpg Graph1.jpg (46.4 KB, 94 views)
Reply With Quote
  #7 (permalink)  
Old 07-03-2007, 04:00 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

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...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
transparent and toolbarbutton Byak@ Questions (Windows Mobile) 6 07-22-2008 03:45 PM
Transparent .gif? Zenerdiode Questions (Windows Mobile) 2 06-29-2008 03:58 PM
ImageButton Background Transparent Issue gs4322 Questions (Windows Mobile) 15 12-27-2007 05:32 PM
transparent background,label cdeane Questions (Windows Mobile) 4 09-20-2007 06:45 AM
image transparent hung Questions (Windows Mobile) 4 08-08-2007 03:00 AM


All times are GMT. The time now is 02:58 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0