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?

Proper TAB on dev

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-27-2010, 10:20 AM
RacingDog's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Fleet, Hants, UK
Posts: 183
Send a message via Yahoo to RacingDog
Default Proper TAB on dev

When one normally uses TAB for code layout it is seriously irritating when developing on the DEV that in the IDE source editor, TAB doesn't work as in any other text editor on the planet. Instead it does the Windows Form thing of moving to the next control, which is totally useless.

So can we please have a Text use for TAB when inside the Source Text Editor on the DEV please? Please nicely, grovel, before I throw the DEV at the wall!
Reply With Quote
  #2 (permalink)  
Old 06-27-2010, 10:56 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

If you mean the Basic4ppc IDE editor in what way does TAB not do what you expect? I move between Basic4ppc, Visual Studio (and now Eclipse - guess why ) and in all them I have no trouble with TAB which behaves similarly on them all. I normally use TAB and Shift-TAB to change the indentation of a line or a selected block of code, are you expecting different behaviour?

Oops, I typed ALT instead of Shift - now changed. The use if it is so ingrained I couldn't remember the key combination, after so many years it is so automatic that I just do it.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.

Last edited by agraham : 06-27-2010 at 11:10 AM.
Reply With Quote
  #3 (permalink)  
Old 06-27-2010, 02:17 PM
RacingDog's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Fleet, Hants, UK
Posts: 183
Send a message via Yahoo to RacingDog
Default

Like I said, it does the Windows "goto next control". You know, that which happens on a form when you use tab to change between buttons and other controls. In this case it is the Hints box under the main text box. Another tab skips back again. This is the same on both the SIP and the fold out hard keyboard

I have an XDA Stellar/Windows micro 6 with .NET CF 3.5.

I can't see an option to change this in either the IDE or the Windows Settings.

The desktop IDE is fine, no probs at all.

Word Mobile is fine.

I also have a Dell Axim x51 PPC that is my previous device that I haven't quite got around to binning yet despite lack of use. That has Windows micro 5 and CF 2.0. Same effect, tab skips between controls instead of inserting text.

Anything else I need to mention? I may be an hour, I'm off to the bookies for about an hour for my daily fix of 50p bets on the dogs. (You get to stand right underneath the air-cond, ulterior motive! ) Won't be too long.
Reply With Quote
  #4 (permalink)  
Old 06-27-2010, 03:03 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Ah! I didn't understand your abbeviation DEV to mean that you were referring to the device IDE, I thought you meant the desktop and that DEV referred to the development environment (Visual Studio is called DEVENX.EXE - my bad!) - I did wonder why you might want throw a PC at the wall .

On the rare occasions that I do edit on the device I use a single space for indentation instead of a tab. Have you noticed that the device IDE can transform tabs to spaces by Tools -> Untab and that the desktop can reverse the process by Edit -> Retab?
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #5 (permalink)  
Old 06-27-2010, 04:08 PM
RacingDog's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Fleet, Hants, UK
Posts: 183
Send a message via Yahoo to RacingDog
Default

After I've lovingly laid out a program I'm always reluctant to trust gadgets. Bad memories. I've probably got a mix of tabs and spaces by now, having switched too and fro, dodgy.

Hmmm, interesting though don't you think? The options only work in one direction per environment? I smell a rat! Someone knows about this and has been fudging it. I say fudging 'cos micro word manages to do tabs.
Reply With Quote
  #6 (permalink)  
Old 06-27-2010, 04:21 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

The "editor" is actually just a standard multi-line textbox control. A long running sore for users of the Compact Framework is that there is no RichTextBox which forms the basis for many desktop simple editors. At one time Microsoft did plan one but it never got implemented and there don't seem to be any commercial ones - and I've looked many times to try to find one to wrap as a library. My HtmlPanel is the closest I've come to displaying Rich Text on a device, although WebBrowser is also an alternative. I guess Erel took the easy way out rather than having to implement a full blown editor from scratch.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #7 (permalink)  
Old 06-27-2010, 10:28 PM
RacingDog's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Fleet, Hants, UK
Posts: 183
Send a message via Yahoo to RacingDog
Default

Ahuh. OK, well sundry distractions later, I was just chilling outside with a glass of wine and me whippet and the missus in the cool of the evening, when the cynical side of me decided to fish the mobile out and create a form with a multi-line text box on it. Guess what? Tabs work perfectly!

There is no simple facility for changing the size used by a tab, but then there isn't in the big boys world either, so you have to do something clever to vary the tab size.

I'm really not sure what we are supposed to see as other wrappings in big Windows differ. The Delphi TMemo (the closest they get to a multi-line TextBox) has extra bits that for example VBA in Excel doesn't. The VBA version doesn't do Tabs, the Delphi one does, but just as here Delphi gives no immediate control of tab size. The Delphi TRichEdit doesn't give any tab size control either. But both Delphi wrappers provide a WantTabs property which can conveniently switch support on and off. (It's years since I used these in Delphi, so I may have missed something).

So, the TextBox in the library has tab support added (as it doesn't seem to be native), but then the box in the dev ide has either taken it away again, or is a more basic version. You'd need to look closely at the source code to figure what is the actual case. Perhaps our glorious leader could just tell us?

Whatever, my guess is that it is the tab size issue which stopped the TextBox (as per the library) being used in the dev ide.

Umm, TRichEdit, as Delphi calls it. There must be something similar for CF because Word Mobile exists. But may be WM is like your html thingummy and not the real McCoy. Baffled of Fleet.
Reply With Quote
  #8 (permalink)  
Old 06-28-2010, 07:54 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by RacingDog View Post
There must be something similar for CF because Word Mobile exists.
Word Mobile is a native, not a .NET application. Pre-WM5.0 Word Mobile used some undocumented way of presenting rich text. From WM5.0 I believe Word Mobile uses the native Rich Ink control, which too is not documented, at least officially. Various people have tried over the years to pick it apart and wrap it for .NET use, OpenNETCF probably being the most complete. However I found none of them useful enough to bother taking further as it seems to be a fiendishly complicated control. If I was doing this professionally I might have had a go but as I do this for fun nowadays, and because I'm not really interested in the GUI side of things, I haven''t bothered.

Quote:
You'd need to look closely at the source code to figure what is the actual case
If you want a poke around use .NET Reflector.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #9 (permalink)  
Old 06-28-2010, 11:06 AM
RacingDog's Avatar
Senior Member
 
Join Date: Apr 2009
Location: Fleet, Hants, UK
Posts: 183
Send a message via Yahoo to RacingDog
Default

Ye gods! And there was me thinking mobile telecomms was a minefield!

You know, when I started, a design spec was a slim A4 document. Over time these got thicker. I'm sure you remember all too well. When the firm I was with first started to drift from general real time towards mobile telecomms, it happened via the Inmasat M and B satellite systems. We thought then that 4 fat A4 volumes was complicated. Then we discovered GSM and had to cope with a long shelfful. Then they added GPRS etc. And then, as you well know, on top of that, the development environment exploded similarly.

It's all too much. I'm glad I'm out of it. I used to feel I was in some sort of control when the majority of the software in a black box was mine. But now? One's software is a gnats cock in a haystack, to mix my metaphores.

So I shan't be poking round further. Maybe one of our younger bretheren is interested.
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
Proper Exception Handling RacingDog Basic4ppc Wishlist 0 06-09-2010 12:24 PM
Proper use of the .New methods, out of memory error kolbe Questions (Windows Mobile) 5 09-05-2008 01:37 PM
Build proper desktop apps in B4PPC with this awesome Forms library agraham Additional Libraries 25 07-30-2008 04:19 PM


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


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