Search found 48 matches: lexit

Searched query: lexit

by karinha
Sat Mar 02, 2024 1:00 pm
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
>

Albeiroval, intenta asi por favor:


#Define aPubGrad {| lInvert | If( lInvert, ;
{ { 1 ...
by albeiroval
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
>
by fridgar
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 ...
by Antonio Linares
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.
by José Luis Sánchez
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&#40;&#41; CLASS TAlbum&nbsp; &nbsp;local hWndMain&nbsp; &nbsp;::CreateWindow&#40;&#41;&nbsp; &nbsp;::CreateControls&#40;&#41;&nbsp; &nbsp;::SetVScroll&#40;&#41;&nbsp; &nbsp;::oWnd:bResized := &#123; |t,w ...
by Antonio Linares
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&#40;&#41; CLASS TAlbum ::CreateWindow&#40;&#41; ::CreateControls&#40;&#41; ::SetVScroll&#40;&#41; ::oWnd:bResized := &#123; |t,w,h| ::Resize&#40; t, w, h &#41; &#125; if ::oWnd ...
by Silvio.Falconi
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 ...
by jvtecheto
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
by Otto
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&#58;//mybergland ...
by Antonio Linares
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() )
by Compuin
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 ...
by ukoenig
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 :)
by Rimantas
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 ...
by Antonio Linares
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 :-)

Try this:

local lExit := .F.

...

ACTIVATE WINDOW oWnd

StopUntil( { || lExit } )

From the window, change lExit to .T. to finally exit.
by jgayoso
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 ...