Hello all,
I have an application which browses an array , and on double click calls a function to amend
the array data, using the ON DBLCLICK in the TsBrowse definition
I'm using HMG Extended version 2.0.1
Is there a way to turn off the sorting of the array columns ? My dblclick function doesn't seem to get called ...
TsBrowse of Array - Sorting
Moderator: Rathinagiri
- danielmaximiliano
- Posts: 2763
- Joined: Fri Apr 09, 2010 4:53 pm
- DBs Used: DBF
- Location: Argentina
- Contact:
Re: TsBrowse of Array - Sorting
Hi Spelman wave: You can post an example of what you need?
so much better
so much better
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
Re: TsBrowse of Array - Sorting
// Define the array browse for menu choices on screen 1
DEFINE TBROWSE obrw_MenuChoices AT DR1+260,DC1 ;
OF Form_1 WIDTH 300 HEIGHT 95 CELLED BACKCOLOR YELLOW2
SELECTOR .T. on dblclick ChangeMenuArray()
oBrw_MenuChoices:SetArray( aMenuChoices )
oBrw_MenuChoices:lNoHScroll := .T.
oBrw_MenuChoices:Setcolor( { 5, 6 }, { CLR_WHITE, CLR_BLUE } )
oBrw_MenuChoices:Setcolor( { 11, 12 }, { CLR_WHITE, CLR_BLUE } )
ADD COLUMN TO TBROWSE oBrw_MenuChoices DATA ARRAY ELEMENT 2;
TITLE "Menu" ;
ALIGN DT_LEFT, DT_LEFT,DT_LEFT;
SIZE 220 ;
MOVE DT_MOVE_NEXT
ADD COLUMN TO TBROWSE obrw_MenuChoices DATA ARRAY ELEMENT 1;
TITLE "No." ;
SIZE 60;
MOVE DT_MOVE_NEXT;
ALIGN DT_RIGHT, DT_RIGHT
END TBROWSE
This is the function which defines the browse on an array. ChangeMenuArray() calls an InputWindow() to allow the user to change the items in the array.
The on dblclick clause used to call my function ChangeMenuArray() until I put a new release
of the minigui onto the computer.Now what seems to happen is that the dblclick doesn't seem
to have any effect, but clicking on the browse sorts the array.
I notice in the release notes for version 1.8 that the TsBrowse on an array has the ability
to sort the columns - which is great, but I just wondered why the dblclick doesn't seem
to call a function
DEFINE TBROWSE obrw_MenuChoices AT DR1+260,DC1 ;
OF Form_1 WIDTH 300 HEIGHT 95 CELLED BACKCOLOR YELLOW2
SELECTOR .T. on dblclick ChangeMenuArray()
oBrw_MenuChoices:SetArray( aMenuChoices )
oBrw_MenuChoices:lNoHScroll := .T.
oBrw_MenuChoices:Setcolor( { 5, 6 }, { CLR_WHITE, CLR_BLUE } )
oBrw_MenuChoices:Setcolor( { 11, 12 }, { CLR_WHITE, CLR_BLUE } )
ADD COLUMN TO TBROWSE oBrw_MenuChoices DATA ARRAY ELEMENT 2;
TITLE "Menu" ;
ALIGN DT_LEFT, DT_LEFT,DT_LEFT;
SIZE 220 ;
MOVE DT_MOVE_NEXT
ADD COLUMN TO TBROWSE obrw_MenuChoices DATA ARRAY ELEMENT 1;
TITLE "No." ;
SIZE 60;
MOVE DT_MOVE_NEXT;
ALIGN DT_RIGHT, DT_RIGHT
END TBROWSE
This is the function which defines the browse on an array. ChangeMenuArray() calls an InputWindow() to allow the user to change the items in the array.
The on dblclick clause used to call my function ChangeMenuArray() until I put a new release
of the minigui onto the computer.Now what seems to happen is that the dblclick doesn't seem
to have any effect, but clicking on the browse sorts the array.
I notice in the release notes for version 1.8 that the TsBrowse on an array has the ability
to sort the columns - which is great, but I just wondered why the dblclick doesn't seem
to call a function