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.


Wait cursor library


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-07-2007, 03:42 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,695
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default Wait cursor library

Someone may find a use for this teeny-weeny library that I wrote as learning excercise in C# (and boy did I learn being a VB man usually, but there is a -too long for here- reason for using C# rather than VB for components).

It does only one thing and that is to let you display and hide the rotating wait cursor on a PPC.

The dll is compiled in VS 2005 under Compact Framework 2 so will probably not work if you don't have CF2 on your device. The zip includes a demo PPPC exe and a config file to force the PPC to run the exe under CF2 rather than CF1 which is what PPC runtime is compiled for - the library won't load if the runtime is running under CF1. Paradoxically this is not needed if only CF2 and not CF1 is present on your device as CF2 then runs CF1 code automatically.

Furthermore if you want to compile an app on the desktop then if you have both CF1 and CF2 on your PC you will need a similar config file to force Dbasic.exe to run under CF2 - Erel has put both configs on the website somewhere. Again if you only have CF2 then it is not needed. The library will safely compile and run under a desktop exe but will not change the cursor.

I told you I learnt a lot putting this tiny library together!
Attached Files
File Type: zip waitcursor.zip (53.8 KB, 64 views)
Reply With Quote
  #2 (permalink)  
Old 07-07-2007, 03:45 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,141
Default

It is always good to practice new things, however you can just use WaitCursor (True) to show the cursor, or WaitCursor (False) to hide it.
See this help: http://www.basic4ppc.com/help/waitcursor.html
Reply With Quote
  #3 (permalink)  
Old 07-07-2007, 03:49 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,695
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Thanks Erel, I missed that but at least now have a DLL template that I know works and can expand.
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
hide cursor micro Questions & Help Needed 5 09-20-2008 12:01 PM
Shell and wait Erel Code Samples & Tips 0 03-26-2008 04:14 PM
Shell and wait while process is running g0dspeed Questions & Help Needed 2 03-22-2008 10:48 AM
Cursor JoseLuz Portuguese Forum 1 09-21-2007 07:30 PM
TextBox Cursor RandomCoder Questions & Help Needed 4 07-02-2007 09:37 PM


All times are GMT. The time now is 06:42 PM.


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