Search found 15 matches
- 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!.
- 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 ...
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 ...
- 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: 553
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 ...
- 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: 553
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 ...
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 ...
- 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: 553
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 ...
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 ...
- 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: 553
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 ...
...
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 ...
- Tue Aug 20, 2024 5:25 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Propuesta para que hagan un curso virtual FW
- Replies: 302
- Views: 45143
Re: Propuesta para que hagan un curso virtual FW
Buen día:
Voto por el 9, 10 y 11 Set
Voto por el 9, 10 y 11 Set
- Wed Aug 07, 2024 2:25 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Propuesta para que hagan un curso virtual FW
- Replies: 302
- Views: 45143
- Fri Jul 19, 2024 1:17 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Propuesta para que hagan un curso virtual FW
- Replies: 302
- Views: 45143
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.
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.
- Sat Jul 22, 2023 3:59 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: I Harbour Lan party en Marbella
- Replies: 13
- Views: 1695
Re: I Harbour Lan party en Marbella
Me interesa participar.
Si es el próximo mes, es muy pronto para organizarme...
Si es el próximo mes, es muy pronto para organizarme...
- Tue Jul 18, 2023 12:30 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Webview question
- Replies: 36
- Views: 6918
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 ...
#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 ...
- Mon Jul 17, 2023 6:09 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Webview question
- Replies: 36
- Views: 6918
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 ...
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 ...
- Sat Jul 15, 2023 3:28 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Error in class tget fwh2304
- Replies: 3
- Views: 512
Re: Error in class tget fwh2304
Thanks Rao, now is working fine
- Fri Jul 14, 2023 12:16 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Error in class tget fwh2304
- Replies: 3
- Views: 512
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 ...
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 ...
- Tue Nov 08, 2022 3:51 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Algun comentario sobre Libreria LibXL para crear EXCELs
- Replies: 10
- Views: 1405
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
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