TFolder -> TFolderEx Difference

Post Reply
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

TFolder -> TFolderEx Difference

Post by Jimmy »

hi,

to "set" new TAB Header i use SetPrompts() from CLASS TFolder()
but what to use with CLASS TFolderEx() :?:

p.s. CLASS TFolderEx() is not document in Help File
greeting,
Jimmy
User avatar
cnavarro
Posts: 6558
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: TFolder -> TFolderEx Difference

Post by cnavarro »

Not method implemented
Try with

Code: Select all | Expand

   oFld:aPrompts := aMyPrompts
//   oFld:Default()       // If is neccesary
 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
hua
Posts: 1077
Joined: Fri Oct 28, 2005 2:27 am
Has thanked: 1 time
Been thanked: 1 time

Re: TFolder -> TFolderEx Difference

Post by hua »

If you want to change all the prompts, try

Code: Select all | Expand

  aPrompts := {"TAB1", "TAB2"}
  oFolder:aPrompts := aclone(aPrompts)
  oFolder:refresh()
 
If you just want to change a specific prompt, try

Code: Select all | Expand

  oFolder:aPrompts[oFolder:nOption] := "MyPrompt"
  oFolder:refresh()
 
Based on Cristobal's answer from
https://forums.fivetechsupport.com/view ... cd#p255209
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: TFolder -> TFolderEx Difference

Post by Jimmy »

hi,
hua wrote:If you want to change all the prompts, try

Code: Select all | Expand

  aPrompts := {"TAB1", "TAB2"}
  oFolder:aPrompts := aclone(aPrompts)
  oFolder:refresh()
 
thx for Answer

when assign a new Text into TAB it does not "fit" when Text is much longer than before

Code: Select all | Expand

      aToken := AtInside( ´\´, cPath )
      aPrompts := ACLONE( oTab:aPrompts )
      aPrompts[ nDim ] := UPPER( aToken[ LEN( aToken ) - 1 ] )
#ifdef Use_TFolder
      oTab:SetPrompts( aPrompts )
#else
      oTab:aPrompts := ACLONE( aPrompts )
      oTab:Refresh()
#endif
 
i can use ::lStretch but that is "too much" ... just want that hole Text "fit"
p.s. "where" is the CODE for it

---

CLASS TFolderEx() have

Code: Select all | Expand

   DATA aSizes
but i can not "see" Value assign to aSizes :=

---

METHOD PaintLR() have

Code: Select all | Expand

   nTextW = GetTextWidth()
but PaintTB() not ...

---
does METHOD DelItem(nPos) work correct :?:

CLASS TFolder() have DelItem() and DelItemPos(nPos) ...
greeting,
Jimmy
User avatar
cnavarro
Posts: 6558
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: TFolder -> TFolderEx Difference

Post by cnavarro »

Jimmy wrote:hi,

when assign a new Text into TAB it does not "fit" when Text is much longer than before

i can use ::lStretch but that is "too much" ... just want that hole Text "fit"
Call of Method

Code: Select all | Expand

   oFld:Default()
 
and try
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: TFolder -> TFolderEx Difference

Post by Jimmy »

hi
cnavarro wrote: Call of Method

Code: Select all | Expand

   oFld:Default()
 
Yes, that work :D
thx
greeting,
Jimmy
Post Reply