FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveMac / FivePhone (iPhone, iPad) GET class
Posts: 166
Joined: Wed Nov 25, 2015 07:13 PM
GET class
Posted: Tue May 29, 2018 09:10 PM
Hello,

How can I use all the methods of the GET class. I want to do the following:

1. When change the input do something or action
2. When the user hits the Enter key, perform an action.

I have the following function
Code (fw): Select all Collapse
FUNCTION RK_Input(clabel, cTitle, cText)
*a personalized input window

LOCAL oDlg, oGet
LOCAL nKey := 0
   
    DEFINE DIALOG oDlg TITLE cTitle SIZE 400, 125
   
    @ 70, 10 SAY clabel OF oDlg SIZE 380, 20
   
    @ 45, 10 GET oGet VAR cText OF oDlg TOOLTIP "tik hier in" SIZE 380, 25
    oGet:SetFocus()
    oGet:Change(MsgInfo('OK'))
    MsgInfo(nKey)   

    @ 10, 150 BUTTON "Ok" OF oDlg ACTION (cText := oGet:GetText, oDlg:End())
   
   ACTIVATE DIALOG oDlg CENTERED

RETURN cText

When the user types a letter in the Getbox, perform a function (like a search for the string that is in the getbox
When the user hits the Enter key perform the OK Button.

I hope that this is possible.
Kind regards,



René Koot

Continue the discussion