Search found 15 matches

by ralph
Wed Nov 06, 2024 3:57 am
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse drag / drop (to Mr. Rao)
Replies: 9
Views: 934

Re: xbrowse drag / drop (to Mr. Rao)

Thanks! Mr Rao. It works perfect!.
by ralph
Mon Nov 04, 2024 10:17 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse drag / drop (to Mr. Rao)
Replies: 9
Views: 934

xbrowse drag / drop (to Mr. Rao)

I asked Copilot to build a program to allow reorder rows in a list using drag & drop and xBrowse
This is the result:


#include "FiveWin.ch"
function Main()
local oDlg, oBrw, aData

aData := { ;
{ "Item 1", "Codigo 1", "Producto 1", 10, "Uni 1", 100, 5, 95 }, ;
{ "Item 2", "Codigo 2", "Producto ...
by ralph
Fri Oct 18, 2024 6:19 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Edit cell IN xBrowse for nEditType EDIT_GET_BUTTON
Replies: 5
Views: 546

Re: Edit cell IN xBrowse for nEditType EDIT_GET_BUTTON


3) Is it possible to show the bitmap in a column ONLY when the cell is editable ?
In my sample, the field is only editable when i add a new row and field->codprd is empty.


i modified the Method PaintCell() of the class this way:
original code ...
by ralph
Fri Oct 18, 2024 3:41 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Edit cell IN xBrowse for nEditType EDIT_GET_BUTTON
Replies: 5
Views: 546

Re: Edit cell IN xBrowse for nEditType EDIT_GET_BUTTON

2) Is it posible to trigger the :bEditBlock when F2 is pressed and only when the cell is editable ?

if nEditType is EDIT_GET_BUTTON, then when F2 is pressed, the Get is invoked.
if nEditType is EDIT_BUTTON, then when F2 is pressed the ButtonAction is invoked.
For your requirement use EDIT_BUTTON ...
by ralph
Fri Oct 18, 2024 3:25 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Edit cell IN xBrowse for nEditType EDIT_GET_BUTTON
Replies: 5
Views: 546

Re: Edit cell IN xBrowse for nEditType EDIT_GET_BUTTON

1) when the F2 key is pressed the cell is edited even if :bEditWhen is FALSE

Please modify this like this:
case nKey == VK_F2 .and. ::lF2KeyToEdit .and. ! ::lReadOnly
if ! ::lEditMode
WITH OBJECT ::SelectedCol()
if :lEditable //! :lReadOnly
:Edit()
endif
END
endif


Yes, it works perfect ...
by ralph
Thu Oct 17, 2024 8:51 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Edit cell IN xBrowse for nEditType EDIT_GET_BUTTON
Replies: 5
Views: 546

Edit cell IN xBrowse for nEditType EDIT_GET_BUTTON

[*]Dear master Nages, a few questions:


...
WITH OBJECT oBrw
:nEditTypes := EDIT_GET
:lFastEdit := .t.
:lF2KeyToEdit := .t.
:bPastEof := { || iif(!empty(field->codprd),dbappend(), ), oBrw:RefreshCurrent() }
WITH OBJECT :aCols[ 1 ]
:nEditType := EDIT_GET_BUTTON
:nBtnBmp := :AddBitmap ...
by ralph
Tue Aug 20, 2024 5:25 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Propuesta para que hagan un curso virtual FW
Replies: 302
Views: 44760

Re: Propuesta para que hagan un curso virtual FW

Buen día:
Voto por el 9, 10 y 11 Set
by ralph
Wed Aug 07, 2024 2:25 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Propuesta para que hagan un curso virtual FW
Replies: 302
Views: 44760

Re: Propuesta para que hagan un curso virtual FW

Listo. Aquí el pago por mi inscripcion al curso.
Image
by ralph
Fri Jul 19, 2024 1:17 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Propuesta para que hagan un curso virtual FW
Replies: 302
Views: 44760

Re: Propuesta para que hagan un curso virtual FW

Buenos días:
Aunque ya dí los primeros pasos con MySql y mod_harbour, hay algunos puntos del temario que me parecen interesantes, por lo que también estaría interesado en participar.
Ya sea virtual o presencial.

Estaré a la espera de novedades.
by ralph
Sat Jul 22, 2023 3:59 pm
Forum: FiveWin para Harbour/xHarbour
Topic: I Harbour Lan party en Marbella
Replies: 13
Views: 1681

Re: I Harbour Lan party en Marbella

Me interesa participar.
Si es el próximo mes, es muy pronto para organizarme...
by ralph
Tue Jul 18, 2023 12:30 am
Forum: FiveWin for Harbour/xHarbour
Topic: Webview question
Replies: 36
Views: 6908

Re: Webview question

I tested this sample successfully. May be this can help someone:

#include "FiveWin.ch"

static oWebView

function Main()

local oWnd, cFile

DEFINE WINDOW oWnd TITLE "Consulta de Comprobantes" MENU BuildMenu()

oWnd:Center()
oWebView = TWebView():New(1, oWnd:hWnd )

oWebView:Navigate( "https ...
by ralph
Mon Jul 17, 2023 6:09 am
Forum: FiveWin for Harbour/xHarbour
Topic: Webview question
Replies: 36
Views: 6908

Re: Webview question

Is it posible to insert a value to an input using oWebView:InjectJavascript()?
I tried with no success.



#include "FiveWin.ch"

static oWebView

function Main()

local oWnd

DEFINE WINDOW oWnd TITLE "Consulta de Comprobantes"

oWnd:Center()
oWebView = TWebView():New(, oWnd:hWnd )

oWebView ...
by ralph
Sat Jul 15, 2023 3:28 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Error in class tget fwh2304
Replies: 3
Views: 510

Re: Error in class tget fwh2304

Thanks Rao, now is working fine
by ralph
Fri Jul 14, 2023 12:16 am
Forum: FiveWin for Harbour/xHarbour
Topic: Error in class tget fwh2304
Replies: 3
Views: 510

Error in class tget fwh2304

I just updated to fwh2304
I got this error:
Error description: Error BASE/1102 Argument error: UPPER
Args:
[ 1] = N 0

Stack Calls
===========
Called from: => UPPER( 0 )
Called from: .\source\classes\TGET.PRG => TGET:INITIATE( 1316 )
Called from: => __OBJSENDMSG( 0 )
Called from: => HB ...
by ralph
Tue Nov 08, 2022 3:51 am
Forum: FiveWin para Harbour/xHarbour
Topic: Algun comentario sobre Libreria LibXL para crear EXCELs
Replies: 10
Views: 1397

Re: Algun comentario sobre Libreria LibXL para crear EXCELs

Hola Lubin:
Yo uso esa librería y te puedo comentar que estoy satisfecho.
En mi caso, genero archivos con mas de 65535 líneas y las otras opciones no resultaban practicas por su lentitud.
Esta librería es muy rápida y no requiere tener instalado Excel en el equipo.

Saludos