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?

Adding calendar in runtime

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-22-2008, 09:20 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 Adding calendar in runtime

Hi Erel,

I know it is possible with an external DLL, but, since the calendar is already a built-in control, why can't we add it in runtime?
__________________
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 05-23-2008, 06:12 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 162
Default

As an alternative to adding the control at runtime...

I ran into the same problem. I overcame it by hiding a calendar on a 'common' form (never gets displayed) and using formlib.changeParent to move the calendar to whatever form I needed it on. When the form is closed, the calendar gets moved back to the 'common' form (again, via formlib.changeParent).

Naturally, this has the disadvantage that only one calendar is available for this purpose at any given moment... but I suppose that two or more would be possible. I just wouldn't want to code it.


Gary
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #3 (permalink)  
Old 05-23-2008, 06:23 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

Thanks willisgt...

Since I am trying to add all the controls in runtime, I searched the forum and found the controls dll from Agraham...
Still has the disavantage to not be able to add directly to a panel, but it can be created in runtime, and latters changed it's parent to the panel...
__________________
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
Setup Builder - adding files TWELVE Questions (Windows Mobile) 1 06-10-2008 06:55 PM
Adding time Sascha K. Questions (Windows Mobile) 3 03-23-2008 08:46 PM
Adding Data to TreeView Nodes Woinowski Basic4ppc Wishlist 7 01-07-2008 11:32 AM
Sorted objects when adding agraham Basic4ppc Wishlist 0 11-18-2007 04:47 PM
Adding a Icon to a Control. cdeane Questions (Windows Mobile) 1 09-29-2007 06:56 AM


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


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