Dear friends, how to hide a TFolder page?
Thanks in advance.
EMG
Marco Turco wrote:Hello Enrico,
I use this turn-around to do it.
Imagine to have a folder oFld with 3 pages: "Folder1","folder2","folder3"
then you can "hide" the folder2 at runtime with:
oFld:SetPrompt("Folder1","","Folder3")
oFld:aEnable[2]:=.f.
Antonio Linares wrote:Enrico,
We need to implement a new method for it, as the dialog for the folder page to hide should be removed from oFld:aDialogs.
We can't simply hide it, as the folder uses the hide and show to select them.
Also, the prompts have to be modified.
FUNCTION FLDHIDEITEM( oFld, nItem )
LOCAL oDlg := oFld:aDialogs[ nItem ]
ADEL( oFld:aPrompts, nItem, .T. )
ADEL( oFld:aDialogs, nItem )
oFld:aDialogs[ LEN( oFld:aDialogs ) ] = oDlg
RETURN NIL
James Bott wrote:I am assuming the third parameter shinks the array?
James Bott wrote:If so, don't you also want to shrink aDialogs?
James Bott wrote:This function is more like a FldDeleteItem() since you can't decide to later show it again.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 71 guests