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.


Runtime control manipulation


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-10-2007, 08:06 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
Default Runtime control manipulation

Basic4ppc includes some keywords that allow you to easily work with a dynamic number of controls.
The main keywords are:
Control - Calls a control using a string.
Example: Control ("button" & i).Color = cRed

AddEvent - Wires a control event with a specific sub. One sub can handle many controls events.

Sender - The control that raised the event.

This is a short example (50 lines) of using these keywords to create a Tic-Tac-Toe game.
Attached Files
File Type: sbp TicTacToe-Control.sbp (1.7 KB, 81 views)
Reply With Quote
  #2 (permalink)  
Old 05-10-2007, 08:44 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,343
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I can run it, gives me an excepcion error!!Am i the only one?
__________________
Paulo Gomes
Porto, Portugal

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

DLL Version Listing
Reply With Quote
  #3 (permalink)  
Old 05-10-2007, 10:51 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
Default

What exception and when does it happen?
Reply With Quote
  #4 (permalink)  
Old 05-10-2007, 11:14 PM
RandomCoder's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: UK
Posts: 486
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Works for me

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
  #5 (permalink)  
Old 05-11-2007, 08:52 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,343
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I click on the link and then o open an when i try to run it...
Attached Images
File Type: jpg erro.jpg (59.3 KB, 24 views)
__________________
Paulo Gomes
Porto, Portugal

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

DLL Version Listing
Reply With Quote
  #6 (permalink)  
Old 05-11-2007, 10:05 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
Default

Download the updated Basic4ppc Desktop: http://www.basic4ppc.com/files/Basic...registered.zip
and it will be fixed.
Reply With Quote
  #7 (permalink)  
Old 05-11-2007, 02:19 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,343
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

It worked thanks
__________________
Paulo Gomes
Porto, Portugal

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

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Runtime controls manipulation Erel Tutorials 0 09-26-2007 02:18 PM
addlabel in runtime tvrman Questions & Help Needed 2 09-04-2007 03:58 PM
Recordset or equivalent Implementation for database manipulation markbarrett_1 Basic4ppc Wishlist 4 08-30-2007 08:23 AM
Delete control at runtime ohkovar Questions & Help Needed 3 06-27-2007 07:01 PM
Tab Simulation @ Runtime anansath Questions & Help Needed 1 05-19-2007 03:55 PM


All times are GMT. The time now is 07:30 PM.


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