FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour quotation for a Control
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
quotation for a Control
Posted: Sun Aug 07, 2011 08:36 PM

Hello.

I would like to request a quotation for a control.

I am interested in a control similar to this: viewtopic.php?f=3&t=21772&hilit=AUTOGET

It should work as http://jqueryui.com/demos/autocomplete/#default

I may indicate either an Array or the field of a DBF.

Anyone who is interested in developing it please send me a quotation at ukservice.software@gmail.com

Thank you very much.

Best regards,

FWH 11.11, Harbour 3.1 and Borland C++ 5.82
Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Re: quotation for a Control
Posted: Mon Aug 08, 2011 03:49 PM

U can use AUTOGET CLASS

before create an array from dbf with wich U want for sample :

AAdd( aArray, ALLTRIM(FIELD->CUSTOMER))
HERE RUN OK

FWH .. BC582.. xharbour
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: quotation for a Control
Posted: Mon Aug 08, 2011 04:06 PM

What features of the java control are you interested in that are not in the FW control?

I seem to remember that the dropdown list was one of them.

I also notice that the java control lists all items that contain the search string, not just those that start with the search string. Is that also something you want? I can't really see that as being too useful and it will slow down searching considerably.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
Re: quotation for a Control
Posted: Mon Aug 08, 2011 04:28 PM

Thank you for reply.

Please, go to http://jqueryui.com/demos/autocomplete/#default and type Ja

I need the menu to let the user select Java or Javascript. This feature is not included in autoget.

FWH 11.11, Harbour 3.1 and Borland C++ 5.82
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: quotation for a Control
Posted: Mon Aug 08, 2011 04:55 PM

>I need the menu to let the user select Java or Javascript. This feature is not included in autoget.

So you are saying that you want the dropdown list?

I don't know about the autoget class, but in one that I wrote the user could type JA to get Java displayed in the GET. Or, they could continue to type javas to get Javascript displayed in the GET. Is this acceptable? Note that this requires five keystrokes, and the dropdown list method requires only four (j,a, down arrow, down arrow). However, these four keystrokes are actually more difficult since you have to move your hand to the arrow keys.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
Re: quotation for a Control
Posted: Mon Aug 08, 2011 05:12 PM
Or, they could continue to type javas to get Javascript displayed in the GET. Is this acceptable


This is how Autoget works. But what I need is that Java and Javascript appear into a dropdown and the user could pick up one, like the example.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: quotation for a Control
Posted: Tue Aug 09, 2011 03:32 PM

Theoretically, you should be able to do this with the DROPDOWN style of the Combobox, however, it seems that a number of the control's features are broken or never worked correctly. I am looking into this.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: quotation for a Control
Posted: Wed Aug 10, 2011 07:56 PM

Hello

i sent you a email with a prototypes... did you received?

Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
Re: quotation for a Control
Posted: Thu Aug 11, 2011 10:25 AM

Hello.

Yes, that´s what I need.

Two little things:

When I select an Item, GET control must respect total length so I can write more words.

If I type a value not present in the Array (ae Myhouse), a double line is painted under get control.

Also, Mr. Nao told me that it would be included in FW 08 or 09.

Thank you very much.

FWH 11.11, Harbour 3.1 and Borland C++ 5.82
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: quotation for a Control
Posted: Thu Aug 11, 2011 03:45 PM

Daniel,

When using the combobox style DROPDOWN, I find that the Open() method is not working and the var lIncSearch is also not working (no incremental searching).

I am using FWH 10.8 so these may have been fixed since then.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: quotation for a Control
Posted: Thu Aug 11, 2011 05:04 PM

James

we didn't made change in the class combobox after your version

could you provide a little sample ?

thanks

In the prototype sent to ukservise, i didn't use combobox, was a new class...
apparently Mr Rao is working in same class, i will wait for him, for now i stoped the development

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: quotation for a Control
Posted: Thu Aug 11, 2011 08:34 PM
David,

Here is a sample.

James


Code (fw): Select all Collapse
/*
Purpose: Test DROPDOWN style of Combobox
Date   : 08/11/2011
Author : James Bott
Note   : Using FWH 10.08
*/

#include "fivewin.ch"

function main()
   local cItem:="Dog               "
   local aItems:={"House", "Car", "Cat", "Dog", "Java", "Frog", "Javascript", "wagon"}
   local oDlg, oCombo

   aItems:= asort( aItems )

   Define dialog oDlg

   @ 1,10 combobox oCombo;
     var cItem ;
     items aItems;
     style CBS_DROPDOWN;
     of oDlg ;
     pixel size 150,200; 
     on edit change (oCombo:oGet:varput("Dog           "), oCombo:refresh() )

     oCombo:bGotFocus:= {|| oCombo:open() } // doesn't work

     oCombo:lIncsearch:=.t.  // not working

     // This is not working.
     oCombo:open()
     oCombo:refresh()

   activate dialog oDlg on init (oCombo:open() ) // Open() doesn't work

return nil

// eof
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: quotation for a Control
Posted: Thu Aug 11, 2011 08:51 PM
James

about open...

Code (fw): Select all Collapse
/*
Purpose: Test DROPDOWN style of Combobox
Date   : 08/11/2011
Author : James Bott
Note   : Using FWH 10.08
*/

#include "fivewin.ch"

function main()
   local cItem:="Dog               "
   local aItems:={"House", "Car", "Cat", "Dog", "Java", "Frog", "Javascript", "wagon"}
   local oDlg, oCombo

   aItems:= asort( aItems )

   Define dialog oDlg

   @ 1,10 combobox oCombo;
     var cItem ;
     items aItems;
     style CBS_DROPDOWN;
     of oDlg ;
     pixel size 150,200; 
     on edit change (oCombo:oGet:varput("Dog           "), oCombo:refresh() )

     //oCombo:bGotFocus:= {|| oCombo:open() } // doesn't work

     oCombo:lIncsearch:=.t.  // not working

     // This is not working.
     //oCombo:open()
     //oCombo:refresh()
     
     oDlg:bStart = {||oCombo:open(), oCombo:bGotFocus:= {|| oCombo:open() }  }
     
   activate dialog oDlg //on init (oCombo:open() ) // Open() doesn't work

return nil

// eof


for lIncsearch i'll review the case
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: quotation for a Control
Posted: Thu Aug 11, 2011 09:21 PM

David,

> oDlg:bStart = {||oCombo:open(), oCombo:bGotFocus:= {|| oCombo:open() } }

OK, this works but it has the strange side effect of changing the mouse cursor to an hourglass whenever it is over the dialog (while the control is open). Are you seeing the same thing with the newer version?

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion