Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Code Samples & Tips Share your recent discoveries and ideas with other users.


bouncball and comment


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-18-2007, 12:39 PM
Knows the basics
 
Join Date: May 2007
Posts: 85
Default bouncball and comment

Here a bouncing ball with comment on every line...
DO NOT MISUNDERSTAND THE FOLOWING COMMENT, may be I am not to smart...
B4PPC is amazing and I stay with it... but...
I am wrestling with all the graphic posibilitys:
with what functions can I design where on what,
it is a lot confusing for me...
What can I make transparant, and what not...
on what image wil my mouse react, and where not...
The information is so spread up that I can not see the whole picture...
I start graphics in some direction, to see later on that I must
choose for an other way to get my goal, and again I missed the good way...
The explanation in one article of the graphic layers and their posibilitys
and connections with functions will do wonders...
Do not shoot me for this...

Put Claude Belgium
Attached Files
File Type: zip bounceball.zip (1.1 KB, 53 views)
Reply With Quote
  #2 (permalink)  
Old 05-18-2007, 01:37 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,104
Default

Hi Put Claude,

I dont think that anyone will shoot you as alot of us feel the same way...At least I haven't yet figured out what is the forelayer...As i imagine it, it is like a transparent sheet of papper set on top of the form, in wich we can select a color to be "See-trough" to the form...Also I dont think that forelayer can react to anything as we cannot(?) set any controls on it...Mosstly I think that forelayer is usefull for scrolling graphics, too bad that we have first to erase to then redraw...this is a lot of processor time consuming...And causes the animation to NOT be smooth...the graphical object tend to flicker....

Anyway, Most of graphics animations are acomplished using timers, wich I know You're not fond of, Or any kind of loop that manages the graphics displayed position....
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

Last edited by Cableguy : 05-18-2007 at 01:41 PM.
Reply With Quote
  #3 (permalink)  
Old 05-18-2007, 02:02 PM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 448
Default

The ForeLayer of a form is similar to the Form's normal 'background' layer with the added advantage that you can make a particular colour transparent. This means that supposing you had an image of a particular shape set against a white background and the Form.Color was black (or any colour other than white). When you display your image on the Forlayer it will appear with the white background still showing, thus if the shape was a coloured circle, you now have a form with a black background and a white square with a circle inside. Now set the ForeLayer transparent colour to white and what you get is a form with a black background and a circle, no white square anymore.

Also, to speed things up you don't need to erase the entire forelayer, just the part of the forelayer that you want too.

Regards,
RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.

"Defeat never comes to any man until he admits it."Josephus Daniels
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Comment after Do keyword Erel Bug Reports 1 07-24-2007 08:33 PM


All times are GMT. The time now is 10:10 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0