Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.

Text case switching/swapping

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-31-2011, 04:48 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default Text case switching/swapping

I'm not much of a touch-typist (not hunt-and-peck either!), so sometimes type some text with Caps Lock acccidentally on. This is mostly on PC, though if I put my miniature USB keyboard on my PPC I can do it there too.

On PC I have been used to using Microsoft Word to swap text case, pasting backwards and forwards as needed. But Word is rather heavy for that purpose. And Word Mobile is no help at all.

So I recently realised that I can easily write a PC/PPC program to do what I want. Here it is (source and compiled both ways) for anyone to play with.

The three left buttons act on the whole text to paste in from or out to clipboard, or to clear the text.

The five case-altering buttons work like in Word, except that I don't know exactly how Word defines the "words" that are given an initial capital letter in "Title Case". I only look for space-separated words. Similarly a "Sentence" is assumed to be the whole content of the text, disregarding any punctuation or line breaks.

The alterations may be applied either to the whole text (default) or, by highlighting, to just the highlighted portion. This can be useful for ensuring that abbreviations are in upper case, for example, or names are capitalised.

Note that the program does not terminate on clicking the "X" in the corner; only via the "Exit" button.

Mike.
Attached Images
File Type: jpg ScreenShot.JPG (14.1 KB, 19 views)
Attached Files
File Type: zip TextCaseSwitch.zip (121.1 KB, 4 views)

Last edited by mjcoon : 01-01-2012 at 09:55 PM. Reason: Found bug (see post #2); zip updated.
Reply With Quote
  #2 (permalink)  
Old 01-01-2012, 05:22 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Discovered a bug, already. After typing into text box (not what I had intended as usage) the "selection point" is the caret position, but there is no selection. I hadn't allowed for that, so result is wrong. Now corrected in post #1.
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
WiFi tether switching? Gawro777 Basic4android Updates and Questions 2 10-17-2011 07:34 PM
Switching to Camera Shane119 Basic4android Updates and Questions 4 05-22-2011 10:03 PM
Switching between screens mozaharul Questions (Windows Mobile) 5 02-03-2009 05:23 AM
PPC is hanging after switching GPS on/off BerndB Questions (Windows Mobile) 8 05-24-2008 02:39 PM
Reactivate the CF GPS after switching on Scubaticus Questions (Windows Mobile) 6 10-25-2007 07:00 PM


All times are GMT. The time now is 11:44 AM.


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