Previous Thread
Next Thread
Print Thread
Page 2 of 2 1 2
Re: INFLD -GUI Auto-complete #6539 08 Aug 10 04:50 AM
Joined: Jun 2001
Posts: 3,405
J
Jorge Tavares - UmZero Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 3,405
Nothing is better than start a new day with good news, and these are excellent.

As I said before, I never had the chance to play much with this new toy, only visualized possible scenarios according to what was reading on the notes and scenario 1 always came to my mind as a great upgrade for self-combo.
After reading your comment to this update I exclaimed to myself "obviously !" and, after a supersonic change to one program here is the result: turn on audio

The full happyness would be to have A-Shell convert self-combos into auto-combos (auto-complete in self-combo); an auto-combo definition would be:
a) sefdef="..."
b) exit after ellapsed time defined for auto-complete
c) return exitcode 29
d) display the down-arrow on the right of the field

Hey Kevin (Kiland); this will not even require to compile laugh (*)

I know this request will make sound all the alarms for preventing to break existing programs so, in advance, I suggest something like OPTIONS=AUTOCOMBOS to activate it :rolleyes:
But, if I'm wrong and everybody agrees on defaulting self-combo to auto-combo, great.

If nothing more, at least, would it be possible to keep the down-arrow of the self-combo?


Just to reinforce my initial request about having scenario 1, which in fact was already available; from the example in the video, we can see the amount of produced data from the search can be huge and, if I'm not wrong, the data for the xtree in auto-complete is loaded into the setdef so, merging self-combo and auto-complete, on exiting the INFLD we can decide if we handle the data in the auto-complete XTREE or in an external XTREE; in conclusion, we gained versatility.


(*) For those not present on the 1st A-Shell Conference, or those who don't remember; Kevin was requesting a solution for converting text-based programs into GUI with "just compile" cool

Thanks Kevin and Bryan (Kevin's son) for the great day we spent in the Rose Bowl; they invited me to watch the game UCLS Bruins vs Colorado Buffaloes wink


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: INFLD -GUI Auto-complete #6540 08 Aug 10 12:59 PM
Joined: Jun 2001
Posts: 11,787
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,787
Another great film by Jorge. And a nice reminder of great line from A-Shell Conferences past - the acknowledgment by Kevin that, as a compromise in order to obtain an automatic GUI transformation of his apps, he would be "willing to recompile". We may not have quite achieved even that compromised goal, but he will be happy to know that his vision is still guiding us.

As for the "AUTO-COMBO", the concept seems pretty straightforward. I'm not sure why I didn't recognize earlier that exitcode 29 (request for self-service combo display display) and exitcode 30 (request for auto-complete display) could probably be merged. As you correctly recognized, the two kinds of exits are effectively the same for practical purposes. The main difference lies in the format of the setdef that your app returns to INFLD with (i.e. a traditional combo list, or the more sophisticated xtree coldef+list). But this is a choice the application can decide for itself based on its own logic, without needing the exitcode distinction to guide it.

To clarify, once the exitcode 29 is triggered, existing applications will respond in one of two ways:

a) open up a separate window, perhaps using XTREE, or perhaps a full dialog, to allow the user to generate a list and select from it.

b) replace the "..." in setdef with a standard list of choices and return to the original field, which would now act as a regular combo box. In this case, since it is no longer a self-combo, there would be no "auto-combo" either.

From the standpoint of existing application internal logic, it wouldn't break anything if the self-combo were to turn into an "auto-combo", since the only difference would be that the exitcode 29 could be generated by another event (changing the field and then waiting 1/2 second), in addition to the previous methods of clicking the down arrow button or hitting the down arrow key.

But from the user's standpoint, this new method of triggering the exitcode 29 might be a significant annoyance, if they were accustomed to typing a field value and hitting ENTER (rather than always hitting the down arrow). Unless the user was a fast and skilled typist, it is likely that the auto-complete event timer would trigger the exitcode 29 before the complete field was entered. Worse, if they weren't watching the screen, they wouldn't realize that the field exited and a new window or combo list appeared, and they might then get some unexpected result by typing a few more characters and hitting ENTER.

(If your program used the ) TYPE code to re-enter the new field with the partial contents of the original field and the cursor at the end of it, then maybe it would work out that even if the user didn't realize what was happening, the end result would be nearly the same, but that's a big if.)

So, the question is, do you really think that automatically converting existing self-combos to "auto-combos" would be more of a benefit than an annoyance to existing users?

I guess I could imagine this being a user-level configuration choice, in which case it wouldn't really belong in the MIAME.INI (OPTIONS=AUTOCOMBO) but in the Misc. Settings or to be set by the application using a MIAMEX function.

On the other hand, a possible compromise would be to change the timer value for the "auto-combo" from 1/2 second (after any field change) to something longer, perhaps 2 seconds, effectively minimize the likelihood of the kind of user confusion I just described.

Re: INFLD -GUI Auto-complete #6541 08 Aug 10 01:38 PM
Joined: Jun 2001
Posts: 3,405
J
Jorge Tavares - UmZero Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 3,405
Well, after play a little bit with auto-combos, I must agree that an automatic convertion could be a pain so, I'm happy to manually and gradually convert my self-combos.
But, if possible, I would like to keep the drop-down arrow on the right of the field when adding TYPE="||a" to a self-combo.
I also think that, it can be useful to have exitcode 30 assigned to auto-exit and 29 to the click on the drop-down arrow (if recovered); for example, in some cases, if the user hit ENTER (exitcode=0) in the self-combo a search for the typed in text takes place but, if the user click the drop-down arrow the text is cleared and displays the full list so, in this case, probably exitcode 30 should match the behavior of the exitcode 0 instead of 29 or, I can even think on a third possible action :rolleyes:

I'm already applying the auto-complete in a real case (the one shown on the video) which was a great excuse for myself to go ahead and improve that search routine; but I'm experiencing an issue, after exit the auto-combo and execute the search and display, on return to the field I'm not able to type in anything, I only can exit whit Escape. Is it possible that, this combination of self+auto hurts something on the internal structure of the field?
Or, is it the case of INFLD being waiting for something different on returning after an exit with exitcode 30?
Or, maybe I should pay more attention to the details and do less mistakes? :p

If you see something that can be causing this, a tip is appreciated, thank you.


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: INFLD -GUI Auto-complete #6542 08 Aug 10 02:35 PM
Joined: Jun 2001
Posts: 11,787
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,787
OK, in the case of TYPE ||a (auto-complete) and setdef="..." (self-combo), I'll try to add the drop-down button. If you click it, you'll get the exitcode 29 (just like in the regular self-combo). But I think that hitting down-arrow should return exitcode 30 (as it does in the auto-complete).

As for the typing problem on re-entry, I'm noticing something strange there now myself, so let me investigate it further while adding the above feature. Stay tuned...

Re: INFLD -GUI Auto-complete #6543 09 Aug 10 12:06 AM
Joined: Jun 2001
Posts: 11,787
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,787
I posted an update (now 5.1.1189.1) which may improve things somewhat. Testing advised.

http://www.microsabio.net/dist/51dev/temphold/

notes: http://www.microsabio.net/dist/51dev/temphold/ashdevnotes.txt

Re: INFLD -GUI Auto-complete #6544 09 Aug 10 09:57 AM
A
Anonymous
Unregistered
Anonymous
Unregistered
A
I think a review of combo boxes might be in order for Porto. No?

Page 2 of 2 1 2

Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3