... modified it in order to read
the forum every now and then in order to read ALL prg's posted. They also come in a dbf for lookup.
So If I want a drag/drop implemention from Xbrowse I use these 2 parameters and I get samples from the forum. This is my most used program to find part of source and ...
Search found 40 matches: drag
Searched query: drag
- Mon Dec 30, 2024 7:40 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: AC4xBrowse
- Replies: 13
- Views: 884
- Thu Nov 07, 2024 4:25 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowse drag / drop (to Mr. Rao)
- Replies: 9
- Views: 943
Re: xbrowse drag / drop (to Mr. Rao)
The response to the main post of Mr.Ralph is that Drag and Drop feature is fully supported by FWin and no further changes are required.
This drag and drop support is not only inside xbrowse but also in between different controls/dialogs/windows.
This drag and drop support is not only inside xbrowse but also in between different controls/dialogs/windows.
- Wed Nov 06, 2024 9:10 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowse drag / drop (to Mr. Rao)
- Replies: 9
- Views: 943
Re: xbrowse drag / drop (to Mr. Rao)
Swapping Array .....
What I found looks like this :
@ 20,10 BTNBMP PROMPT "ToExcel" SIZE 100,30 FLAT PIXEL OF oDlg ;
ACTION ( aCols := {}, ;
AEval( oBrw:aArrayData, { |a| If( a[ 1 ], AAdd( aCols, oBrowse:aCols[ a[ 2 ] ] ), nil ) } ), ;
oBrowse:ToExcel( nil, nil, aCols ) ;
)
______
XBROWSER ...
What I found looks like this :
@ 20,10 BTNBMP PROMPT "ToExcel" SIZE 100,30 FLAT PIXEL OF oDlg ;
ACTION ( aCols := {}, ;
AEval( oBrw:aArrayData, { |a| If( a[ 1 ], AAdd( aCols, oBrowse:aCols[ a[ 2 ] ] ), nil ) } ), ;
oBrowse:ToExcel( nil, nil, aCols ) ;
)
______
XBROWSER ...
- Wed Nov 06, 2024 3:57 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowse drag / drop (to Mr. Rao)
- Replies: 9
- Views: 943
Re: xbrowse drag / drop (to Mr. Rao)
Thanks! Mr Rao. It works perfect!.
- Wed Nov 06, 2024 3:32 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowse drag / drop (to Mr. Rao)
- Replies: 9
- Views: 943
Re: xbrowse drag / drop (to Mr. Rao)
This also works
Btw
is a short-cut for
This short-cut is more optimal.
Also swapping arrays (actually pointers) is more optimal than ADel() and AIns()
Btw
Code: Select all | Expand
oBrw:SetPos( r, c, .t. )
Code: Select all | Expand
oBrw:LButtonDown( r,c )
oBrw:LButtonUp( r,c )
Also swapping arrays (actually pointers) is more optimal than ADel() and AIns()
- Tue Nov 05, 2024 8:16 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowse drag / drop (to Mr. Rao)
- Replies: 9
- Views: 943
Re: xbrowse drag / drop (to Mr. Rao)
... ch"
function main()
local oDlg, oBrw, oFont, oCur, aData[ 12 ]
AEval( aData, { |u,i| aData[ i ] := NtoCMonth( i ) } )
DEFINE CURSOR oCur DRAG
DEFINE FONT oFont NAME "VERDANA" SIZE 0,-16
DEFINE DIALOG oDlg SIZE 250,500 PIXEL FONT oFont
@ 10,10 XBROWSE oBrw SIZE -10,-10 PIXEL OF oDlg ...
function main()
local oDlg, oBrw, oFont, oCur, aData[ 12 ]
AEval( aData, { |u,i| aData[ i ] := NtoCMonth( i ) } )
DEFINE CURSOR oCur DRAG
DEFINE FONT oFont NAME "VERDANA" SIZE 0,-16
DEFINE DIALOG oDlg SIZE 250,500 PIXEL FONT oFont
@ 10,10 XBROWSE oBrw SIZE -10,-10 PIXEL OF oDlg ...
- Tue Nov 05, 2024 7:12 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowse drag / drop (to Mr. Rao)
- Replies: 9
- Views: 943
Re: xbrowse drag / drop (to Mr. Rao)
I would think (because of less experience) that
If I take 4 and drop on 2, the position in 4 is empty so resort would put the empty cell on top and make a new array starting from pos 2.
But I know that you have a much more elegant solution
If I take 4 and drop on 2, the position in 4 is empty so resort would put the empty cell on top and make a new array starting from pos 2.
But I know that you have a much more elegant solution
- Tue Nov 05, 2024 5:21 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowse drag / drop (to Mr. Rao)
- Replies: 9
- Views: 943
Re: xbrowse drag / drop (to Mr. Rao)
In case of arrays, if we sort again the very purpose of dropping is lost. Right?
- Tue Nov 05, 2024 4:24 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowse drag / drop (to Mr. Rao)
- Replies: 9
- Views: 943
Re: xbrowse drag / drop (to Mr. Rao)
Mr. Rao,
To insert the dropped item between the 2 target items where you want to drop means that we have to sort the items again ?
1
2
3
4
5
6
drop 6 on 3
1
2
3
6
4
5
How to do that ?
To insert the dropped item between the 2 target items where you want to drop means that we have to sort the items again ?
1
2
3
4
5
6
drop 6 on 3
1
2
3
6
4
5
How to do that ?
- Tue Nov 05, 2024 1:53 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowse drag / drop (to Mr. Rao)
- Replies: 9
- Views: 943
Re: xbrowse drag / drop (to Mr. Rao)
FWH already had full support for Drag and Drop feature, not only inside Xbrowse but across all controls.
This feature has been there from the time of creation of FiveWin.
So, nothing futuristic.
Simple sample:
#include "fivewin.ch"
function Main()
local aData, oCur
USE STATES SHARED NEW
aData ...
This feature has been there from the time of creation of FiveWin.
So, nothing futuristic.
Simple sample:
#include "fivewin.ch"
function Main()
local aData, oCur
USE STATES SHARED NEW
aData ...
- Mon Nov 04, 2024 10:17 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowse drag / drop (to Mr. Rao)
- Replies: 9
- Views: 943
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 2 ...
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 2 ...
- Tue Sep 24, 2024 6:09 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Demo version
- Replies: 29
- Views: 3486
Re: Demo version
... nPos )
Class TTaskPanel Method ChangeHeight( nHeight )
Fixed RibbonBar bug
TProgressWheel class,
samples\ListVie.prg using a TListBox and drag & drop files
function FWLoadStrings( cFileName )
Tled
and more more
maybe you are using the classes created by me and you didn't know it, you are ...
Class TTaskPanel Method ChangeHeight( nHeight )
Fixed RibbonBar bug
TProgressWheel class,
samples\ListVie.prg using a TListBox and drag & drop files
function FWLoadStrings( cFileName )
Tled
and more more
maybe you are using the classes created by me and you didn't know it, you are ...
- Wed Sep 11, 2024 7:04 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Switching from memo fields to files -
- Replies: 8
- Views: 1282
Re: Switching from memo fields to files -
... as we are now doing, are like a loose-leaf collection.
It is so expandable. I create a folder for each guest. We can then create subdirectories and drag & drop documents into the folders.
If it is shown in the DBF that there is a memo field for the address, you first have to open the FPT, calculate ...
It is so expandable. I create a folder for each guest. We can then create subdirectories and drag & drop documents into the folders.
If it is shown in the DBF that there is a memo field for the address, you first have to open the FPT, calculate ...
- Mon Sep 02, 2024 8:19 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: scrollbars on tFolderEx
- Replies: 26
- Views: 4321
Re: scrollbars on tFolderEx
... aDialogs[ n ] = oDlg
oDlg:cVarName := "Page" + AllTrim( Str( n ) )
oDlg:Hide()
// oDlg:lTransparent := .T.
next
now the scrollbars appear but if I shrink the window or move the splitter they still are not active, nor if I drag the thumbs neither if I scroll the mouse wheel
Roberto
oDlg:cVarName := "Page" + AllTrim( Str( n ) )
oDlg:Hide()
// oDlg:lTransparent := .T.
next
now the scrollbars appear but if I shrink the window or move the splitter they still are not active, nor if I drag the thumbs neither if I scroll the mouse wheel
Roberto
- Mon Jul 29, 2024 7:58 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Switching from memo fields to files -
- Replies: 8
- Views: 1282
Re: Switching from memo fields to files -
... where we can store any type of document in a separate folder for each customer.
For example, incoming emails are simply copied into the folder with drag & drop, as are outgoing letters.
Since I programmed an adapter for PHP to access DBF, I have dealt with the memo fields again. I think it is ...
For example, incoming emails are simply copied into the folder with drag & drop, as are outgoing letters.
Since I programmed an adapter for PHP to access DBF, I have dealt with the memo fields again. I think it is ...