Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Basic4ppc Wishlist
Home Register FAQ Members List 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: 1,322
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

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

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: 154
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 SP2 / Basic4PPC v6.3
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: 1,322
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

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
Setup Builder - adding files TWELVE Questions & Help Needed 1 06-10-2008 06:55 PM
Adding time Sascha K. Questions & Help Needed 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 & Help Needed 1 09-29-2007 06:56 AM


All times are GMT. The time now is 12:55 PM.


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