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

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

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Forelayer not working(?)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-16-2008, 10:53 AM
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 Forelayer not working(?)

Hi,

I was under the impron that forelayer alowed us to raw OVER any control on the form....
But it just won't....
Is this a bug???
__________________
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
  #2 (permalink)  
Old 08-16-2008, 11:38 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The ForeLayer is drawn under the controls.
It allows you to have two graphical layers, one for the background and one for the dynamic graphics.
Reply With Quote
  #3 (permalink)  
Old 08-16-2008, 11:42 AM
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

So there is NO way to paint over a control, such as an image or textBox?
__________________
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
  #4 (permalink)  
Old 08-16-2008, 12: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

Dound this bit of info on the web...

Quote:
2. Remove the WS_CLIPCHILDREN style from the form so that the form is
allowed to draw over the controls on it. This can be done as follows:

const int WS_CLIPCHILDREN = 0x02000000;
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.Style &= ~WS_CLIPCHILDREN;
return cp;
}
}
is this doable width b4p?will it work on both the desktop and device?
__________________
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
  #5 (permalink)  
Old 08-16-2008, 12:51 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You can draw over an Image control: http://www.basic4ppc.com/forum/basic...e-control.html
Reply With Quote
  #6 (permalink)  
Old 08-16-2008, 12:52 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

Found a simpler way to be able to draw on top of an image...
I just added a Main.DrawImage(Clock.Image,Clock.Left,Clcok.Top,Cl ock.Width,Clock.Heigth)
line and made the image control Clock.Visible=False...
This way i have the exact same image in the exact same position as before, but merged to the background....
For my label, I'll use the DrawString instead....

A nice learning experience for me, anyway..

@EREL, sorry for the trouble, would you so kind to move this thread to the questions one?
__________________
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
forelayer drawing flashing and jumping hung Basic4ppc Wishlist 1 04-30-2010 01:23 PM
Forelayer text colour and weight! agraham Bug Reports 4 10-09-2008 12:39 PM
Form Forelayer on top of other controls ? klaus Questions (Windows Mobile) 2 08-01-2008 03:32 PM
Forelayer, please explain enonod Questions (Windows Mobile) 2 06-03-2008 04:37 PM
working with FormExDesktop_1.2 Cableguy Questions (Windows Mobile) 20 01-28-2008 07:02 PM


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


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