Basic4ppc - Windows Mobile Development  

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

Questions & Help Needed Post any question regarding Basic4ppc.


Creating a Calendar control dynamically?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-04-2008, 02:59 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 157
Default Creating a Calendar control dynamically?

I have a need to create a Calendar control dynamically (e.g., at runtime). I'm looking for something like AddCalendar. Can't seem to find any such thing.

Is this possible?

Gary

Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 05:27 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 650
Default

This is not possible.
As a workaround you can set the visible property to false and then set it to true on runtime when you really need the calendar control.


specci48
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 05:31 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 157
Default

Well then, I guess it's time for another cheezy hack...

Reply With Quote
  #4 (permalink)  
Old 01-04-2008, 09:49 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

there are lots of callendar controls dlls...
try to google them...
they can / must be added 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
  #5 (permalink)  
Old 01-06-2008, 03:35 AM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 157
Default

I certainly wouldn't want to start sounding like a newbie on the forum again, but...

Do you mean that we can use non-Basic4PPC dll's in our programming?

If that's the case, would one of the experts provide a little more information?

Gary
Reply With Quote
  #6 (permalink)  
Old 01-06-2008, 10:48 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by willisgt View Post
Do you mean that we can use non-Basic4PPC dll's in our programming?
Usually only with a wrapper or interface DLL. In general there are three types of DLLs.

"Normal" dlls that are just native code packages of precompiled functions with a list of entry points. Most of the Windows API dlls are of this form. These can be called by a .NET program using what is termed P/Invoke (Platform Invoke) which is similar to "Declare" in previous versions of Visual (and earlier) Basic. These dlls cannot be called directly from B4PPC but can by means of an intermediate library - like my Flite device speech library.

COM (Component Object Model) or ActiveX dlls are more complex beasts which support some object oriented programming features such as memory managment and reference counting. They can only be called from a .NET app via what is termed an "interop" assembly so they too need an intermediate library. My desktop speech library calls the "Microsoft Speech Object Library" which is such a COM dll.

.NET dlls or assemblies are precompiled .NET code like all the B4PPC libraries. In theory some might be usable directly by B4PPC but it will depend upon how they are organised. I have to admit I don't know exactly what the requirements are as I have only ever used .NET dlls that I have written myself.

P.S. My ControlsExDesktop library has a DateTimePicker that looks like the B4PPc calendar. You can add that at runtime. It is only for the desktop though as the library name implies.

Last edited by agraham : 01-06-2008 at 10:53 AM.
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
Calendar Control: I can't see the year. sloopa Questions & Help Needed 4 06-25-2008 07:30 PM
Calendar Control alfcen Questions & Help Needed 9 02-12-2008 03:28 AM
Close method for calendar control specci48 Basic4ppc Wishlist 0 11-04-2007 09:44 AM
Creating a multiline textbox dynamically (at runtime)? willisgt Questions & Help Needed 2 09-12-2007 10:06 PM
Calendar control BjornF Questions & Help Needed 7 07-05-2007 08:52 AM


All times are GMT. The time now is 04:31 AM.


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