Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #5063
| From | Massimo Bighelli <info@arcasistemi.it> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: How to use PushButton without Spacebar but with ENTER? |
| Date | 2013-04-15 21:15 +0200 |
| Organization | ARCA Sistemi S.r.l. |
| Message-ID | <kkhjjl$ob2$1@speranza.aioe.org> (permalink) |
| References | <ca94d93d-35bd-4e72-bd96-7d5fcb051eff@googlegroups.com> <kketq7$fvi$1@speranza.aioe.org> <05f9f169-f50d-4f50-b6b0-13ee80aa032b@googlegroups.com> |
George
looking at your Init()
you have a OKButton
set it as "default" in the IDE
*Massimo Bighelli* ARCA Sistemi S.r.l.
Il 15/04/2013 21:09, BGeorge ha scritto:
> Hi Carlos,
> I used your Method Dispatch but nothing happend.
>
> CLASS anagnorisi INHERIT DIALOGWINDOW
>
> PROTECT oDCFixedText1 AS FIXEDTEXT
> PROTECT oDCFixedText2 AS FIXEDTEXT
> PROTECT oDCSingleLineEdit1 AS SINGLELINEEDIT
> PROTECT oDCSingleLineEdit2 AS SINGLELINEEDIT
> PROTECT oCCOkButton AS PUSHBUTTON
> PROTECT oCCCancelButton AS PUSHBUTTON
>
>
> METHOD Init(oParent,uExtra) CLASS anagnorisi
> LOCAL DIM aFonts[2] AS OBJECT
> LOCAL DIM aBrushes[1] AS OBJECT
>
> SELF:PreInit(oParent,uExtra)
>
> SUPER:Init(oParent,ResourceID{"anagnorisi",_GetInst()},TRUE)
>
> aFonts[1] := Font{,9,"Courier New"}
> aFonts[1]:Bold := TRUE
> aFonts[2] := Font{,12,"Courier New"}
> aFonts[2]:Bold := TRUE
> aBrushes[1] := Brush{Color{255,255,255}}
>
> oDCFixedText1 := FixedText{SELF,ResourceID{ANAGNORISI_FIXEDTEXT1,_GetInst()}}
> oDCFixedText1:HyperLabel := HyperLabel{#FixedText1,"Username:",NULL_STRING,NULL_STRING}
> oDCFixedText1:BackGround := aBrushes[1]
>
> oDCFixedText2 := FixedText{SELF,ResourceID{ANAGNORISI_FIXEDTEXT2,_GetInst()}}
> oDCFixedText2:HyperLabel := HyperLabel{#FixedText2,"Password:",NULL_STRING,NULL_STRING}
> oDCFixedText2:BackGround := aBrushes[1]
>
> oDCSingleLineEdit1 := SingleLineEdit{SELF,ResourceID{ANAGNORISI_SINGLELINEEDIT1,_GetInst()}}
> oDCSingleLineEdit1:HyperLabel := HyperLabel{#SingleLineEdit1,NULL_STRING,NULL_STRING,NULL_STRING}
> oDCSingleLineEdit1:Font(aFonts[1], FALSE)
> oDCSingleLineEdit1:TextLimit := 5
>
> oDCSingleLineEdit2 := SingleLineEdit{SELF,ResourceID{ANAGNORISI_SINGLELINEEDIT2,_GetInst()}}
> oDCSingleLineEdit2:HyperLabel := HyperLabel{#SingleLineEdit2,NULL_STRING,NULL_STRING,NULL_STRING}
> oDCSingleLineEdit2:Font(aFonts[2], FALSE)
> oDCSingleLineEdit2:TextLimit := 8
>
> oCCOkButton := PushButton{SELF,ResourceID{ANAGNORISI_OKBUTTON,_GetInst()}}
> oCCOkButton:HyperLabel := HyperLabel{#OkButton,"OK",NULL_STRING,NULL_STRING}
>
> oCCCancelButton := PushButton{SELF,ResourceID{ANAGNORISI_CANCELBUTTON,_GetInst()}}
> oCCCancelButton:HyperLabel := HyperLabel{#CancelButton,"¢êõñï",NULL_STRING,NULL_STRING}
>
> SELF:Caption := "Áíáãíþñçóç"
> SELF:HyperLabel := HyperLabel{#anagnorisi,"Áíáãíþñçóç",NULL_STRING,NULL_STRING}
> SELF:ClipperKeys := TRUE
>
> SELF:PostInit(oParent,uExtra)
>
> RETURN SELF
>
> METHOD OkButton( ) CLASS anagnorisi
> //search in file of users for username and password
> IF Found()
> Done:=TRUE
> ELSE
> Done:=FALSE
> SELF:EndDialog()
>
> METHOD CancelButton class anagnorisi
> Done:=FALSE
> SELF:EndDialog()
>
> That i want to do is when i am in singlelineedit2(password) after give the password and press enter i want to do OkButton press.
>
> Regards,
> George
>
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to use PushButton without Spacebar but with ENTER? BGeorge <bgeorge21@in.gr> - 2013-04-14 10:08 -0700
Re: How to use PushButton without Spacebar but with ENTER? Carlos Rocha <jazzda1307@gmail.com> - 2013-04-14 10:38 -0700
Re: How to use PushButton without Spacebar but with ENTER? Massimo Bighelli <info@arcasistemi.it> - 2013-04-14 20:51 +0200
Re: How to use PushButton without Spacebar but with ENTER? BGeorge <bgeorge21@in.gr> - 2013-04-15 12:09 -0700
Re: How to use PushButton without Spacebar but with ENTER? Massimo Bighelli <info@arcasistemi.it> - 2013-04-15 21:15 +0200
Re: How to use PushButton without Spacebar but with ENTER? BGeorge <bgeorge21@in.gr> - 2013-04-15 12:22 -0700
Re: How to use PushButton without Spacebar but with ENTER? Carlos Rocha <jazzda1307@gmail.com> - 2013-04-15 13:45 -0700
Re: How to use PushButton without Spacebar but with ENTER? BGeorge <bgeorge21@in.gr> - 2013-04-15 14:10 -0700
Re: How to use PushButton without Spacebar but with ENTER? Carlos Rocha <jazzda1307@gmail.com> - 2013-04-15 15:22 -0700
Re: How to use PushButton without Spacebar but with ENTER? BGeorge <bgeorge21@in.gr> - 2013-04-15 22:29 -0700
Re: How to use PushButton without Spacebar but with ENTER? Carlos Rocha <jazzda1307@gmail.com> - 2013-04-15 22:45 -0700
csiph-web