![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Actuallly, I don't think you are missing anything simple.
I have been doing work on a Wasp 3200 bar code device. I have to account for bar code input, key board input and sip input. In addition, I have to move the user back and forth between fields on lost focus events where I encounter errors. The primary spec. called for me to move the user around based upon hitting the enter key. That is relatively easy, but once you start adding error messages, on lost focus events and sometimes on key enter events, you start to get weird results. The particularly application that gave me the most trouble has 29 fields laid out on one screen but on various panels that I expose or hide depending upon the runtime data entry. I can get it to work perfectly when I create a windows executable, only to have it fail on the device side. Eventually, I used global error flags to keep track of where I was and how the application should respond. My particular problems seem to be the result of timing that varies from the windows executable (where I do my initial testing) to the finished product on the device. My conclusion is that it is entirely a Windows .Net problem. It has nothing to do with Basic4PPC (which I think is a wonderful development platform). My application ended working well, but with over 4,000 lines of code. If you remember, Sun Micro Systems Java advertisements, "Write Once Run Anywhere" and if you ever tried to implement that on multiple platforms, you will know that the slogan was true only if you didn't care which window appeared first or how the various dialogs appeared. I think Microsoft is coming up against the same problem. They will never admit it. They will just leave developers to think they are missing "something really simple". Good Luck. Regards, David P.S. I really do love Basic4PPC. However, Erel still must work within the confines of .NET. Don't blame him or the product. Just bear in mind that Basic4PPC is years ahead of Microsoft's own Visual Studio products for hand held development. |
|
||||
|
I've played with this now and yes, the tab order doesn't get set properly at runtime. However in the help BringToFront is only documented as setting the Z-order, i.e. the visible layering and not the tab order. It seems to be an unwarranted assumption that because BringToFront and SendToBack seem to affect both Z-order and Tab-Order in the Designer then BringToFront at runtime will do both as well.
You probably know this, but in case others reading this are unaware of it, where the controls are created at design time you can get the tab order you want by selecting the controls by turn in the tab order you want and selecting SendToBack for each one. Whether this is by design, as it is not documented, or a welcome side effect I don't know. Perhaps Erel will comment if he catches this post? |
|
||||
|
You could try playing with this library. No guarantees that it will always work. Only works in optimised compile mode - will warn otherwise.
Code:
TabOrder.New1(B4PObject(1),TabControlNames(),NumOfControls) Version of your example enclosed that tabs properly. I've hacked the library into it - you will want to tidy it up. |
|
||||
|
All this can be very easely avoided if we can do 2 "simple" things:
1-Plan better our apps and the controls we wich to incorporate...and create/place them at runtime in the inverse order, we wich the tabs to be... 2-Edit or create an automated (app) editing tool to re-write the control creation lines in the .b4p file. Still I set back and was hopping to see what Agrahams aproch would bring, results wise, and as I espected, only the z-order gets changed... This is a very common confusion...z-orde=tab order? = FALSE... So now, and using the words of david: "In addition, I have to move the user back and forth between fields on lost focus events where I encounter errors." Wich takes me to my first reply to this thread...
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
|
||||
|
Sorry Cableguy - I DO understand the differences between tab order and z-order as is clear from my post #15. It IS the tab order that my little library sets. In fact it sets the TabIndex property for each control given to it in the order in which they are placed in the array and obviously works for me and Gary. It needs a library as this property is not available in B4PPC. Why do you think it is setting the z-order?
|
|
||||
|
I was not refering to your DLL, but to the array/bringtofront aproach...
Sorry if I was somewhat missunderstood... Still, if the only need is to invert the tab-order, a simple "batch" app would fullfill the need, editing the spb file, and reversing the object creation order.. Your DLL is very usefull, and this feature is also handy if one set the control in an non-inverted tab order....
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Changing the parent of a panel | Ricky D | Questions & Help Needed | 1 | 10-05-2008 12:03 PM |
| Changing ROW color in Table? | tcgoh | Questions & Help Needed | 0 | 04-07-2008 04:25 PM |
| 'Tab' order of controls | corwinckler | Questions & Help Needed | 1 | 12-18-2007 05:52 AM |
| Changing the size of a form | magi6162 | Questions & Help Needed | 1 | 10-24-2007 08:38 AM |
| Tab Order for Controls | BPak | Questions & Help Needed | 2 | 05-06-2007 06:58 AM |