April 26, 2024, 05:02:04 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Edit box notification

Started by splakidas, December 17, 2006, 03:49:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

splakidas

I have 2 edit buttons with some values in them.
How can i be notified if one of this values change ?

Ionic Wind Support Team

select @class
     case @IDCONTROL
          select @CONTROLID
                case EDIT1: 'or whatever ID you are using
                        if @NOTIFYCODE = @ENCHANGE
                           ...the contents of the control has changed
                        endif
           endselect
endselect

Ionic Wind Support Team

splakidas

Paul is it ok if if read the value before focus and after loosing focus ?


CASE 1147
IF @NOTIFYCODE = @ENSETFOCUS then
valuebefore = val(getcontroltext(kxreosis,1147))
endif
IF @NOTIFYCODE = @ENKILLFOCUS then
valueafter= val(getcontroltext(kxreosis,1147))
endif

splakidas

Paul i alredy used  @ENCHANGE but with  @ENCHANGE i get on every keypress a value.
If someone writes 150 so i get first 1 then 15 and last 150.
I want to have the 1st value (if there is one in the edit box) and the edit box looses focus or window is closed


CASE 1146
txt="" :  IF @NOTIFYCODE = @ENCHANGE then txt = getcontroltext(kxreosis,1146)


CASE 1147
txt=""
IF @NOTIFYCODE = @ENSETFOCUS then
txt = getcontroltext(kxreosis,1147)
print debug,txt
endif

IF @NOTIFYCODE = @ENKILLFOCUS then
txt = getcontroltext(kxreosis,1147)
print debug,txt
endif


Ionic Wind Support Team

Ionic Wind Support Team