TFolder -> TFolderEx Difference

TFolder -> TFolderEx Difference

Postby Jimmy » Tue Jan 31, 2023 1:28 am

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
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: TFolder -> TFolderEx Difference

Postby cnavarro » Tue Jan 31, 2023 4:09 am

Not method implemented
Try with
Code: Select all  Expand view

   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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: TFolder -> TFolderEx Difference

Postby hua » Tue Jan 31, 2023 4:13 am

If you want to change all the prompts, try
Code: Select all  Expand view

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


If you just want to change a specific prompt, try
Code: Select all  Expand view

  oFolder:aPrompts[oFolder:nOption] := "MyPrompt"
  oFolder:refresh()
 


Based on Cristobal's answer from
viewtopic.php?f=3&t=42441&sid=855d3f4c4e5b62d461e2de57a5a07bcd#p255209
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: TFolder -> TFolderEx Difference

Postby Jimmy » Tue Jan 31, 2023 6:11 am

hi,
hua wrote:If you want to change all the prompts, try
Code: Select all  Expand view

  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 view
     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 view
   DATA aSizes

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

---

METHOD PaintLR() have
Code: Select all  Expand view
  nTextW = GetTextWidth()

but PaintTB() not ...

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

CLASS TFolder() have DelItem() and DelItemPos(nPos) ...
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: TFolder -> TFolderEx Difference

Postby cnavarro » Tue Jan 31, 2023 1:42 pm

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 view

   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
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: TFolder -> TFolderEx Difference

Postby Jimmy » Wed Feb 01, 2023 10:29 pm

hi
cnavarro wrote:Call of Method
Code: Select all  Expand view

   oFld:Default()
 


Yes, that work :D
thx
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 65 guests