Search found 6043 matches: nil

Searched query: nil

by D.Fernandez
Sun Feb 16, 2025 9:40 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda tPrinter (Estoy viejoooo)
Replies: 1
Views: 106

Ayuda tPrinter (Estoy viejoooo)

... 23
// PieSlotPagina()
//OtraSlotPagina()
basesl:Skip()
ELSE
basesl:Skip()
ENDIF
ENDDO


ENDPAGE

PAGE
ENDPAGE

ENDPRINT

oFont11:END()
oFont12:END()
oFont13:END()
oFont14:END()
oFont15:END()
oFont16:END()
oBrush:End()
oPen:End()
SysRefresh()


basesl:Close()

return(nil)
by sysctrl2
Sat Feb 15, 2025 5:49 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas con SkinButtons() FWH24.07
Replies: 3
Views: 222

Problemas con SkinButtons() FWH24.07

... SIZE 40, 12 OF oDlg ;
ACTION ( lVal := .t. , oDlg:end() ) PIXEL

@ 130, 120 BUTTON oBtn2 PROMPT "Cancelar" SIZE 40, 12 OF oDlg ;
ACTION ( lVal := .f. , oDlg:end() ) CANCEL PIXEL

oDlg:lhelpicon := .F.

ACTIVATE DIALOG oDlg CENTERED
RETURN (.T.)

INIT PROCEDURE Setup()
SkinButtons()
RETURN NIL

by Massimo Linossi
Fri Feb 14, 2025 3:47 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Odbc error on Linux
Replies: 2
Views: 127

Odbc error on Linux

... 125.15.13.12;Database=SQL_DATI;UID=admin;PWD=Max61;"

// Initialize the connection handle (hDbc) using SQLConnect
hDbc := SQLConnect( cConnString )

// Check if the connection was successful

IF hDbc == NIL
? "Connection failed!"
RETURN
ENDIF

Return nil


Thanks a lot for your attention.
Massimo
by Silvio.Falconi
Fri Feb 14, 2025 11:53 am
Forum: FiveWin for Harbour/xHarbour
Topic: set check menu opoup from btnbmp
Replies: 0
Views: 111

set check menu opoup from btnbmp

... aBtn[ 2 ] PROMPT "btnbmp" SIZE 100,40 PIXEL OF oDlg CENTER ;
ACTION ::ShowPopUp( PopupObject( Self ) )

ACTIVATE DIALOG oDlg CENTERED

return nil

function PopupObject(oBtn)

local oPop

MENU oPop POPUP
MENUITEM "One" ACTION test(oPop,oBtn);
CHECKED

MENUITEM "Two"
ENDMENU

return oPop ...
by Antonio Linares
Thu Feb 13, 2025 8:34 am
Forum: Artificial Intelligence examples
Topic: Class TGemini to use Google Gemini AI
Replies: 0
Views: 143

Class TGemini to use Google Gemini AI

... METHOD End() CLASS TGemini

curl_easy_cleanup( ::hCurl )
::hCurl = nil

return nil

//----------------------------------------------------------------------------//

METHOD GetValue() CLASS TGemini

local uValue := hb ...
by Silvio.Falconi
Wed Feb 12, 2025 11:16 pm
Forum: FiveWin for Harbour/xHarbour
Topic: activate an online button
Replies: 2
Views: 176

activate an online button

... 100,18 PIXEL OF oDlg action Hide_button(oDlg:oBar)

ACTIVATE DIALOG oDlg CENTER ;
ON INIT ( Btnbar(0,oBar,oDlg), Btnbar(1,oDlg:oBar,oDlg ))
RETURN NIL

//----------------------------------------------------------------------------//

Function Btnbar(nBar,oBar,oDlg) // ,aBtnBar

local aBtnBar ...
by Eroni
Wed Feb 12, 2025 1:03 pm
Forum: FiveWin for Harbour/xHarbour
Topic: FTP Best Options ?
Replies: 8
Views: 1980

Re: FTP Best Options ?

... hFTP, aFile[ 1 ], "c:\remanco\" + aFile[ 1 ] ,.t.,0,0,0 ) } )
ENDIF

else
// MsgAlert( "oFTP:hFTP is null" )
endif

oInternet:End()

return nil




function f_senden( cDatei )
local oInternet := TInternet():New()
local oFTP := TFTP():New( "ftp.test.info", oInternet, "salettainfo ...
by Antonio Linares
Wed Feb 12, 2025 9:29 am
Forum: FiveWin for Harbour/xHarbour
Topic: Using Ollama + Microsoft Phi4 AI from [x]Harbour+FWH
Replies: 1
Views: 164

Using Ollama + Microsoft Phi4 AI from [x]Harbour+FWH

... Send" SIZE 40, 15 ACTION SendPrompt( cPrompt, oOutput, oBtn, oPrompt ) DEFAULT

ACTIVATE DIALOG oDlg CENTERED

oChat:End()
oFont:End()

return nil

function SendPrompt( cPrompt, oOutput, oBtn, oPrompt )

local cToken

nStartTime = Seconds()
nTokenCount = 0

oBtn:Disable()
oChat ...
by Silvio.Falconi
Wed Feb 12, 2025 9:12 am
Forum: FiveWin for Harbour/xHarbour
Topic: error in time format Resolved
Replies: 1
Views: 121

error in time format Resolved

... EPOCH TO year( date() ) - 20
SET MULTIPLE OFF
SetGetColorFocus(nRGB( 203, 225, 252 ))
SetMGetColorFocus(nRGB( 203, 225, 252 ))

test()

return nil


Function test()
local cUser

cUser:="silvio"

? Calcola_TempoAccesso(cUser)

return nil


Function Calcola_TempoAccesso(cUser)
Local oUtenti ...
by leandro
Mon Feb 10, 2025 9:17 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Ajustar tamaño caja toast
Replies: 7
Views: 1338

Re: Ajustar tamaño caja toast

... Chr( 0x98 ) + Chr( 0xFE ) + ;
Chr( 0x4D ) + Chr( 0x1A ) + Chr( 0x3A ) + Chr( 0xD4 )
RoGetActivationFactory( pString, cIID, @pToastFactory )
WindowsDeleteString( pString )

// ... (rest of the code remains the same)

WinRTMethod( pNotifier, "Show", pNotification )

RoUninitialize()

return nil
by JoséQuintas
Mon Feb 10, 2025 1:46 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Text scroll and time graph
Replies: 2
Views: 314

Text scroll and time graph

... LOCAL nSecondsNow, nSecondsRemaining, nSecondsElapsed, nCont, nPos, cTxt, cCorAnt
LOCAL nPercent, cTexto, mSetDevice

xContNow := iif( xContNow == NIL, "", xContNow )
IF Empty( aStatic[ GRAF_TXT_BAR ] )
aStatic[ GRAF_TXT_BAR ] := Replicate( ".", MaxCol() )
FOR nCont = 1 to 10
nPos := Int( Len ...
by FiveWiDi
Sun Feb 09, 2025 7:07 pm
Forum: FiveWin para Harbour/xHarbour
Topic: QR en portapapeles
Replies: 18
Views: 18567

Re: QR en portapapeles

... bug mejor.

Seguimos,

/* ****************************************************************** */
LOCAL oDlg, hBmp
LOCAL cTxt4QR := ""
Local oBtn := Nil
Local oImg := Nil


cTxt4QR := VF_URL_QR( AMPAARRA, ;
AllTrim( cNIF ), ;
AllTrim( cVFCODFAC ), ;
dDataFact, ;
nImpoTota ;
)

hBmp := FW ...
by FiveWiDi
Sat Feb 08, 2025 10:07 pm
Forum: FiveWin para Harbour/xHarbour
Topic: QR en portapapeles
Replies: 18
Views: 18567

Re: QR en portapapeles

... todo en negro:
#include "FiveWin.ch"

function Main()

FW_CopyToClipBoard( bmp2Alpha( FW_BarCodeBmp( "Hola", "QRCODE", 400.0, 400.0 ) ) )

return nil

Function bmp2alpha( hBmp1 )
local hBmp, oBmp
oBmp := GdiBmp():New()
oBmp:CreateFromRes( hBmp1, 0 )
oBmp:Conver24to32Alpha( .F. )
hBmp := oBmp ...
by Antonio Linares
Sat Feb 08, 2025 9:35 pm
Forum: FiveWin para Harbour/xHarbour
Topic: QR en portapapeles
Replies: 18
Views: 18567

Re: QR en portapapeles

... todo en negro:
#include "FiveWin.ch"

function Main()

FW_CopyToClipBoard( bmp2Alpha( FW_BarCodeBmp( "Hola", "QRCODE", 400.0, 400.0 ) ) )

return nil

Function bmp2alpha( hBmp1 )
local hBmp, oBmp
oBmp := GdiBmp():New()
oBmp:CreateFromRes( hBmp1, 0 )
oBmp:Conver24to32Alpha( .F. )
hBmp := oBmp ...
by FiveWiDi
Sat Feb 08, 2025 9:13 pm
Forum: FiveWin para Harbour/xHarbour
Topic: QR en portapapeles
Replies: 18
Views: 18567

Re: QR en portapapeles


Carlos,

Has probado asi ?

FW_BarCodeBmp( cText, "QRCODE", 129, 129, Nil, CLR_WHITE )

No encuentro el código de Bmp2Alpha(), donde está ? :)


Sigue apareciendo el marco negro alrededor. QR no identificable.

Function bmp2alpha( hBmp1 )
local hBmp, oBmp
oBmp := GdiBmp():New()
oBmp ...