Karina.
REDEFINE BTNBMP oBtn[3] ID 302 OF oDlg;
2007;
CENTER;
NOROUND;
PROMPT "Salir";
GRADIENT BtnGradRed()
oBtn[3]:bAction = <||
lExit := .T.
oDlg:End()
SysRefresh()
hb_gcAll(.T.)
Return Nil
>
Albeiroval, intenta asi por favor:
#Define aPubGrad {| lInvert | If( lInvert, ;
{ { 1 ...
Search found 48 matches: lexit
Searched query: lexit
- Sat Mar 02, 2024 1:00 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: xbrowse No existe el metodo: LREADONLY
- Replies: 16
- Views: 3064
- Sat Mar 02, 2024 4:33 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: xbrowse No existe el metodo: LREADONLY
- Replies: 16
- Views: 3064
Re: xbrowse No existe el metodo: LREADONLY
Karina.
REDEFINE BTNBMP oBtn[3] ID 302 OF oDlg;
2007;
CENTER;
NOROUND;
PROMPT "Salir";
GRADIENT BtnGradRed()
oBtn[3]:bAction = <||
lExit := .T.
oDlg:End()
SysRefresh()
hb_gcAll(.T.)
Return Nil
>
REDEFINE BTNBMP oBtn[3] ID 302 OF oDlg;
2007;
CENTER;
NOROUND;
PROMPT "Salir";
GRADIENT BtnGradRed()
oBtn[3]:bAction = <||
lExit := .T.
oDlg:End()
SysRefresh()
hb_gcAll(.T.)
Return Nil
>
- Thu Dec 09, 2021 2:30 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Xbrowse, Mysql y Tdolphin.. error de orden..
- Replies: 1
- Views: 934
Re: Xbrowse, Mysql y Tdolphin.. error de orden..
... BUTTON oBtn1 Id 4001 of oDlg ; // aContols 9
Prompt "&Salir" ;
ACTION (oDlg:End())
ACTIVATE DIALOG oDlg //ON INIT oListBox:SetFocus() //VALID lExit CENTERED
close all
return nil
//----------------------------------------------------------------------------//
function MisGEts( oDlg, oDbf ...
Prompt "&Salir" ;
ACTION (oDlg:End())
ACTIVATE DIALOG oDlg //ON INIT oListBox:SetFocus() //VALID lExit CENTERED
close all
return nil
//----------------------------------------------------------------------------//
function MisGEts( oDlg, oDbf ...
- Mon Jan 18, 2021 7:49 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: galería de imágenes
- Replies: 52
- Views: 20266
Re: galería de imágenes
José Luis,
Using DATA lExit INIT .F. automatically initializes it to .F.
Using DATA lExit INIT .F. automatically initializes it to .F.
- Sun Jan 17, 2021 6:28 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: galería de imágenes
- Replies: 52
- Views: 20266
Re: galería de imágenes
I noticed that the INIT clause doesn't assign .F. to lExit so I changed the code:
METHOD Activate() CLASS TAlbum local hWndMain ::CreateWindow() ::CreateControls() ::SetVScroll() ::oWnd:bResized := { |t,w ...
METHOD Activate() CLASS TAlbum local hWndMain ::CreateWindow() ::CreateControls() ::SetVScroll() ::oWnd:bResized := { |t,w ...
- Sat Jan 16, 2021 7:47 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: galería de imágenes
- Replies: 52
- Views: 20266
Re: galería de imágenes
José Luis,
Add this new DATA in Class TAlbum:
DATA lExit INIT .F.
and modify this method this way:
METHOD Activate() CLASS TAlbum ::CreateWindow() ::CreateControls() ::SetVScroll() ::oWnd:bResized := { |t,w,h| ::Resize( t, w, h ) } if ::oWnd ...
Add this new DATA in Class TAlbum:
DATA lExit INIT .F.
and modify this method this way:
METHOD Activate() CLASS TAlbum ::CreateWindow() ::CreateControls() ::SetVScroll() ::oWnd:bResized := { |t,w,h| ::Resize( t, w, h ) } if ::oWnd ...
- Tue Oct 15, 2019 7:09 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Preview Window size
- Replies: 6
- Views: 1026
Re: Preview Window size
... End(), ::oImageList := nil ) ),;
If( ! Empty( ::oImageListPages ), ::oImageListPages:End(),),;
::oWnd := nil ,;
::oDevice:oPreview := nil ,;
::lExit := .T. )
if ::oDevice:lPrvModal
if ::oWndMain == nil
StopUntil( { || ::lExit } )
else
hWndMain := WndMain():hWnd
StopUntil( { || ::lExit .or ...
If( ! Empty( ::oImageListPages ), ::oImageListPages:End(),),;
::oWnd := nil ,;
::oDevice:oPreview := nil ,;
::lExit := .T. )
if ::oDevice:lPrvModal
if ::oWndMain == nil
StopUntil( { || ::lExit } )
else
hWndMain := WndMain():hWnd
StopUntil( { || ::lExit .or ...
- Sat Jun 01, 2019 5:59 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Ejecutar Acción al Cerrar el Preview
- Replies: 5
- Views: 1052
Re: Ejecutar Acción al Cerrar el Preview
leandro wrote:Buenos días para todos,
Requiero ejecutar una función al momento de cerrar el preview de la impresión, justo al momento en que se cierre la ventana.
Hola Leandro:
La clase TPreview tiene una data : lExit .T. when the preview window has exited
Saludos.
Jose
- Sat Apr 27, 2019 1:03 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: to Nages: test for tdatabase
- Replies: 37
- Views: 8106
Re: to Nages: test for tdatabase
... 40 BTNBMP PROMPT "SAVE" SIZE 100,35 PIXEL OF oDlg FLAT WHEN oRec:Modified() ;
ACTION ( oRec:City := dtos( date() ) + "/" + time() ,oRec:Save(), lExit := .t., oDlg:End() )
The customer numbers are one after the other but chronology is not guaranteed.
Best regards
Otto
http://mybergland ...
ACTION ( oRec:City := dtos( date() ) + "/" + time() ,oRec:Save(), lExit := .t., oDlg:End() )
The customer numbers are one after the other but chronology is not guaranteed.
Best regards
Otto
http://mybergland ...
- Wed Dec 07, 2016 6:23 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: XBROWSE - EDITSOURCE()
- Replies: 6
- Views: 1692
Re: XBROWSE - EDITSOURCE()
... prg)
METHOD Edit( lReadOnly, lNavigate, cTitle, cMsg, bInit ) CLASS TDataRow
y finalmente
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT ( oRec:PlaceControls( oPanel, oSayFont, oFixed, lReadOnly, lNavigate, cMsg ), If( bInit != nil, Eval( bInit, oDlg ),) ) ;
VALID ( /* lExit .and. */ oRec:CloseMsg() )
METHOD Edit( lReadOnly, lNavigate, cTitle, cMsg, bInit ) CLASS TDataRow
y finalmente
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT ( oRec:PlaceControls( oPanel, oSayFont, oFixed, lReadOnly, lNavigate, cMsg ), If( bInit != nil, Eval( bInit, oDlg ),) ) ;
VALID ( /* lExit .and. */ oRec:CloseMsg() )
- Mon May 02, 2016 12:49 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Forma correcta de configurar clase TSBUTTON...alguna ayuda?
- Replies: 14
- Views: 4672
Re: Forma correcta de configurar clase TSBUTTON...alguna ayuda?
... FiveWin.ch"
#INCLUDE "TSButton.ch"
//----------------------------------------------------------------------------//
function Main()
local oDlg, lExit := .f., oBtn
DEFINE DIALOG oDlg FROM 5, 5 TO 15, 40 TITLE "A Dialog Box"
@ 3, 4 BUTTON "&Ok" OF oDlg SIZE 40, 12
@ 3, 12 BUTTON oBtn PROMPT ...
#INCLUDE "TSButton.ch"
//----------------------------------------------------------------------------//
function Main()
local oDlg, lExit := .f., oBtn
DEFINE DIALOG oDlg FROM 5, 5 TO 15, 40 TITLE "A Dialog Box"
@ 3, 4 BUTTON "&Ok" OF oDlg SIZE 40, 12
@ 3, 12 BUTTON oBtn PROMPT ...
- Wed Nov 20, 2013 5:55 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: ToolBar on a Dialog
- Replies: 2
- Views: 579
Re: ToolBar on a Dialog
Silvio,
You need a extra function, to define the dialog-Toolbar on dialog INIT
´´´´
´´´´
ACTIVATE DIALOG oDlg VALID lExit ;
ON INIT SHOW_BAR(oDlg)
RETURN NIL
// ----
FUNCTION SHOW_BAR(oDlg)
LOCAL oBar
.......
Best regards
Uwe![Smile :)](./images/smilies/icon_smile.gif)
You need a extra function, to define the dialog-Toolbar on dialog INIT
´´´´
´´´´
ACTIVATE DIALOG oDlg VALID lExit ;
ON INIT SHOW_BAR(oDlg)
RETURN NIL
// ----
FUNCTION SHOW_BAR(oDlg)
LOCAL oBar
.......
Best regards
Uwe
![Smile :)](./images/smilies/icon_smile.gif)
- Wed Mar 13, 2013 4:18 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Again about scripting ... HB_CompileBuf
- Replies: 28
- Views: 6106
Re: Again about scripting ... HB_CompileBuf
the window remains opened because it belongs to the operating system, not to the PRG
Try this:
local lExit := .F.
...
ACTIVATE WINDOW oWnd
StopUntil( { || lExit } )
From the window, change lExit to .T. to finally exit.
Wwoooowwww ! And that is working ! Very fine ! So all power of script we can ...
Try this:
local lExit := .F.
...
ACTIVATE WINDOW oWnd
StopUntil( { || lExit } )
From the window, change lExit to .T. to finally exit.
Wwoooowwww ! And that is working ! Very fine ! So all power of script we can ...
- Wed Mar 13, 2013 3:18 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Again about scripting ... HB_CompileBuf
- Replies: 28
- Views: 6106
Re: Again about scripting ... HB_CompileBuf
the window remains opened because it belongs to the operating system, not to the PRG ![Smile :-)](./images/smilies/icon_smile.gif)
Try this:
local lExit := .F.
...
ACTIVATE WINDOW oWnd
StopUntil( { || lExit } )
From the window, change lExit to .T. to finally exit.
![Smile :-)](./images/smilies/icon_smile.gif)
Try this:
local lExit := .F.
...
ACTIVATE WINDOW oWnd
StopUntil( { || lExit } )
From the window, change lExit to .T. to finally exit.
- Tue Dec 06, 2011 3:59 pm
- Forum: FiveLinux / FiveDroid (Android)
- Topic: Trabajando con gtk con fivelinux
- Replies: 2
- Views: 1209
Trabajando con gtk con fivelinux
... oDlg SIZE nAnchoDialogo, nAltoDialogo
@ nL, nC BUTTON oBtn PROMPT "OPCION-1" OF oDlg SIZE nLB*nAnchoLetra,nAltoLetra ACTION ( nSeleccion:=1, lExit := .T., oDlg:End() )
@nL, nC BUTTON oBtn2 PROMPT "OPCION-2" OF oDlg SIZE nLB*nAnchoLetra,nAltoLetra ACTION ( nSeleccion:=2, lExit := .T., oDlg:End ...
@ nL, nC BUTTON oBtn PROMPT "OPCION-1" OF oDlg SIZE nLB*nAnchoLetra,nAltoLetra ACTION ( nSeleccion:=1, lExit := .T., oDlg:End() )
@nL, nC BUTTON oBtn2 PROMPT "OPCION-2" OF oDlg SIZE nLB*nAnchoLetra,nAltoLetra ACTION ( nSeleccion:=2, lExit := .T., oDlg:End ...