Search found 177 matches: obtn1

Return to advanced search

Jeff, When a window or a dialogbox has several controls, one of them has the focus. So you should assign bKeyDown or bKeyChar to all of them: oBtn1:bKeyChar = { | nKey | MsgInfo( nKey ) } oBtn2:bKeyChar = { | nKey | MsgInfo( nKey ) } oBtn3:bKeyChar = { | nKey | MsgInfo( nKey ) } oBtn4:bKeyChar ...
by Antonio Linares
Sun Apr 01, 2007 5:54 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Assign a button control to arrow key
Replies: 17
Views: 3563

Eugeniusz,

oBtn1:cToolTip := Str( oBtn1:nId )

Is it ok ?
by Antonio Linares
Mon Jan 08, 2007 12:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: BtnBmp - how to get id number of focused button?
Replies: 7
Views: 1549

... nOldX := -1, nOldY := -1 HIDEKEYBOARD() DEFINE WINDOW oWnd TITLE "Draw" @ 5,5 SAY oSay PROMPT " " COLOR "N+/W*" PIXEL SIZE 15,15 @ 5,30 BUTTON obtn1 prompt "Clear" SIZE 50,20 PIXEL ACTION oWnd:refresh(.t.) @ 5,100 BUTTON obtn2 prompt "Save" SIZE 80,20 PIXEL ACTION (OBTN1:HIDE(),OBTN2:HIDE(),OWND:SAVETOBMP(CurDir() ...
by Richard Chidiak
Sat Dec 23, 2006 2:40 pm
 
Forum: FiveWin for Pocket PC
Topic: Signatures
Replies: 32
Views: 10987

Andrés,

Cualquier control se puede desactivar haciendo <oControl>:Disable() y <oControl>:Enable() para activarlo.

Por ejemplo en tu código tendrías que hacer:

@ 6, 2 BUTTON oBtn1 PROMPT "Actualiza" ...

oBtn1:Disable()

y cuando quieras activarlo:

oBtn1:Enable()
by Antonio Linares
Tue Dec 19, 2006 11:48 am
 
Forum: FiveWin para Pocket PC
Topic: Mas de Novato.
Replies: 9
Views: 2323

Jose Luis, > Error description: Error BASE/1086 Argument error: ++ > REDEFINE SBUTTON oBtn1 ID 550 OF oDlg RESOURCE "Lamp1", "Lamp2",, "Lamp3", 'shape3' SHAPE PROMPT "Aceptar" TEXT ON_RIGHT ; ACTION iif( ValidaUser(cClave, @oClave,"C" ) ,; (Seguir:=.T., SEAT1->(rlock()),SEAT1->Activo:=.t.,seat1->(dbUnlock()),oDlg:End()) ...
by Antonio Linares
Sat Nov 18, 2006 10:53 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Bitmap en folder
Replies: 20
Views: 7454

... => MAIN(143) ********************** La parte del programa a la que hace referencia es REDEFINE SBUTTON oBtn1 ID 550 OF oDlg RESOURCE "Lamp1", "Lamp2",, "Lamp3", 'shape3' SHAPE PROMPT "Aceptar" TEXT ON_RIGHT ; ACTION iif( ValidaUser(cClave, @oClave,"C" ...
by JoseLuis
Sat Nov 18, 2006 9:56 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Bitmap en folder
Replies: 20
Views: 7454

Ramesh,

> If we do not know in advance that the user will jump to oGet1 from oBtn1?

You set it from the Create() function where you know where it will go.
by Antonio Linares
Fri Nov 10, 2006 2:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: :SetFocus problem with WHEN clause in Gets and Pushbuttons
Replies: 10
Views: 3128

Hello Mr.Antonio

Thanks again for immediate attention.

oBtn1:oJump = oGet1


If we do not know in advance that the user will jump to oGet1 from oBtn1?

Thanks

Ramesh Babu P
by RAMESHBABU
Fri Nov 10, 2006 2:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: :SetFocus problem with WHEN clause in Gets and Pushbuttons
Replies: 10
Views: 3128

Ramesh,

Try this:

oGet1:PostMsg( WM_SETFOCUS )
oBtn1:oJump = oGet1
by Antonio Linares
Fri Nov 10, 2006 1:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: :SetFocus problem with WHEN clause in Gets and Pushbuttons
Replies: 10
Views: 3128

... Just add the following lines to the above code after redefinition of GETS, implement the oGet1:SetFocus(WM_SETFOCUS) in place of oGet1:SetFocus(), oBtn1:SetFocus(WM_SETFOCUS) in place of oBtn1:SetFocus() and test it. You will find the anomaly. oGet1:bGotFocus := {||oGet1:SetColor(nRGB(0,0,0), ...
by RAMESHBABU
Fri Nov 10, 2006 1:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: :SetFocus problem with WHEN clause in Gets and Pushbuttons
Replies: 10
Views: 3128

:SetFocus problem with WHEN clause in Gets and Pushbuttons

... "Create" and "Save" functions of my code below is working Ok enabling and disabling the gets. But the oGet1:SetFocus() in Create() function and oBtn1:SetFocus() in Save() function are not working at all. I tried with oDlg:Update() and oDlg:Refresh() also in both Create() and Save() functions ...
by RAMESHBABU
Fri Nov 10, 2006 11:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: :SetFocus problem with WHEN clause in Gets and Pushbuttons
Replies: 10
Views: 3128

... => MAIN(141) ************************ la linea 789 en el prg a la que hace referencia es: REDEFINE SBUTTON oBtn1 ID 550 OF oDlg RESOURCE "Lamp1", "Lamp2",, "Lamp3", 'shape3' SHAPE PROMPT "Aceptar" TEXT ON_RIGHT ; ACTION iif( ValidaUser(cClave, @oClave,"C" ...
by JoseLuis
Thu Nov 09, 2006 9:42 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con error al compilar
Replies: 5
Views: 1170

Pequeño ejemplo

#include "FiveWin.ch" memvar oDlg, oBtn1, aProducto, oLbx, oBrw, oCol //-----------------------------------------------------------------// function Main() aProducto:={} AADD(aProducto, {"Procesador","Pza"," 45.00"}) AADD(aProducto, {"Procesador","Pza"," ...
by carlosortiz
Sat Sep 23, 2006 5:47 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Voy avanzando de a poco pero me tranque de nuevo
Replies: 3
Views: 1189

Hola,,,,

DEFINE DIALOG......
...
..
...

ACTIVATE DIALOG oDlg ON INIT (oBtn1:Disable(), oBtn2:Disable(), oBtn3:Disable())


Salu2
Willi
by Willi Quintana
Mon Sep 18, 2006 5:45 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Deshabilitar botones de Ventana
Replies: 6
Views: 1203

Re: Uso de ODBC e MySql no Pocket - MySqlMobile

... -1009 #define NO_SUCH_COLUMN -1010 #define NO_SUCH_ROW -1011 #define ZLIB_DECOMPRESSION_ERROR -1012 function Main() local oWnd local oBtn1 DEFINE WINDOW oWnd TITLE "MySql" @ 001, 001 BUTTON oBtn1 PROMPT "Conecta" OF oWnd ; ACTION Conecta() ; SIZE 100, 30 ; PIXEL @ 001, 140 BUTTON ...
by Mauro
Sun Aug 27, 2006 1:10 am
 
Forum: FiveWin para Pocket PC
Topic: Uso de ODBC e MySql no Pocket
Replies: 9
Views: 4393
PreviousNext

Return to advanced search