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

Go Back   Android Development Forum - Basic4android > General > Chit Chat
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Chit Chat The place for open discussions.

What's The Difference?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-07-2008, 08:13 PM
Senior Member
 
Join Date: May 2007
Posts: 125
Default What's The Difference?

Hi all, A question I should have asked as soon as I got into programming is what is the difference in a window and a control? E.G. is an edit field a window or a control? is a window simply a form like they are in Basic4ppc? Thanks.
Reply With Quote
  #2 (permalink)  
Old 03-08-2008, 09:38 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

At the lowest level everything in the Windows OS itself that you can interact with on the screen is a window. Each will be associated with a block of code called a Window Procedure (WndProc) which the OS calls passing Windows Messages. Each message comprises a number that identifies the message and two Int32 parameters called wParam and lParam. The contents of lParam and wParam depend upon the message. One of the most important messages is WM_PAINT that tells a window to draw itself.

From a higher point of view the distinction between Forms/Windows and Controls is what their WndProcs are written to do rather than how they are implemented. Forms are the top level containers that can host controls and other Forms. Controls provide the base level of user interaction accepting input and displaying results. However both are still based upon the Control class within .NET which as the documentation says "Defines the base class for controls, which are components with visual representation" so semantically, within .NET, nearly everything is a Control.
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
Difference between FileGet and FileGetByte BjornF Questions (Windows Mobile) 6 10-29-2008 09:34 AM
Event difference between IDE and optimised agraham Beta Versions 5 08-30-2008 02:43 PM
What's the difference between Standard And Prof joegoh Questions (Windows Mobile) 2 08-04-2008 12:29 AM
Formsize no difference PC/PPC tvrman Questions (Windows Mobile) 2 10-06-2007 06:04 PM
Difference Between Two Dates dvanwig Questions (Windows Mobile) 7 08-02-2007 05:29 AM


All times are GMT. The time now is 08:58 PM.


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