TFolder class

TFolder class

Postby CharlesPratt » Thu Mar 29, 2007 8:38 pm

I noticed that there is #define TCS_MULTILINE 512 in the prg file for the TFolder class. Does this mean there is a way to code multiline folders? If so, how is it done?

Regards,
Charles Pratt
Charles Pratt
CharlesPratt
 
Posts: 38
Joined: Tue Jan 09, 2007 2:31 am
Location: Winston-Salem, NC

Postby Antonio Linares » Thu Mar 29, 2007 9:48 pm

Charles,

Do you plan to create them from source code or from resources ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42100
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby CharlesPratt » Fri Mar 30, 2007 12:43 pm

Hi Antonio -

From resources.

Regards,
Charles
Charles Pratt
CharlesPratt
 
Posts: 38
Joined: Tue Jan 09, 2007 2:31 am
Location: Winston-Salem, NC

Postby CharlesPratt » Tue Apr 03, 2007 1:03 pm

Antonio -
Do you have any ideas about creating multiline folders with tfolder? I use Resource workshop to create folders and enter "SysTabControl32" rather than tfolder as the class. Then I save the dll to a RC file and compile it with my exe.
I use the tfolder coding in my prg.

Any help will be greatly appreciated.

Charles
Charles Pratt
CharlesPratt
 
Posts: 38
Joined: Tue Jan 09, 2007 2:31 am
Location: Winston-Salem, NC

Postby Maurilio Viana » Tue Apr 03, 2007 4:21 pm

Charles,

Are you saying about this folder style?
http://fivetechsoft.com/forums/viewtopic.php?t=3556&highlight=folder

You can download TFolder modified class from
http://geocities.yahoo.com.br/qiinformatica2000/FOLDER.ZIP

Modifications was made by Rossine

Regards!
Maurilio
User avatar
Maurilio Viana
 
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil

Postby CharlesPratt » Tue Apr 03, 2007 5:07 pm

Maurilio -
Thanks very much for your help. I shall check it out.

Charles
Charles Pratt
CharlesPratt
 
Posts: 38
Joined: Tue Jan 09, 2007 2:31 am
Location: Winston-Salem, NC

Postby Francisco Horta » Sun Apr 15, 2007 8:32 pm

Maurilio,

this folder works under Harbour?
regards
Paco
Francisco Horta
 
Posts: 845
Joined: Sun Oct 09, 2005 5:36 pm
Location: la laguna, mexico.

Postby Maurilio Viana » Mon Apr 16, 2007 11:02 am

Francisco,

I didn't tested it under Harbour (only xHarbour) but I think it work fine too.

Regards,
Maurilio
User avatar
Maurilio Viana
 
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil

Postby CharlesPratt » Tue Apr 17, 2007 2:21 pm

Maurilio -
I have worked with this (with xHarbour) and had some limited success. However, you only get the multiline folders with the NEW method. Since I realy need to do it with resources, I have modified the redefine method to include the multiline. This gives me all of the folders, but half of them are out of view and accessable only by clicking a small button that appears at the top right of the folder and scrolls them in view. I noticed this same thing with the source code sample provided and there appears to be no difference in code between the multiline example and the scrolling example. Is there some automatic adjustment made by windows that depends on something like size?

Regards,

Charles
Charles Pratt
CharlesPratt
 
Posts: 38
Joined: Tue Jan 09, 2007 2:31 am
Location: Winston-Salem, NC

Postby Maurilio Viana » Tue Apr 17, 2007 5:13 pm

Charles,

I will ask Rossine about it. He was who made the changes in original TFolder class...

Regards
Maurilio
User avatar
Maurilio Viana
 
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil

Postby CharlesPratt » Tue Apr 17, 2007 6:14 pm

Maurilio -

I was mistaken in my last post. There are some differences in the way teh examples are coded in the testfld5.prg sample. I completely missed the BUTTON and BUT_MULT commands. My old eyes are giving me problems! I should be abel to get it working now. Thanks for your help.

Regards,
Charles
Charles Pratt
CharlesPratt
 
Posts: 38
Joined: Tue Jan 09, 2007 2:31 am
Location: Winston-Salem, NC

Postby CharlesPratt » Tue Apr 17, 2007 7:45 pm

Maurilio-
I got the multiline folders working fine from resources. The trick is that the style has to come from the resource file and all I did was to put TCS_MULTILINE directly into the RC file as part of the Style description. Resource Workshop won't accept it, but adding it directly to the RC at the same time I put in the xpmanifest stuff works fine.

Thanks, again,

Charles
Charles Pratt
CharlesPratt
 
Posts: 38
Joined: Tue Jan 09, 2007 2:31 am
Location: Winston-Salem, NC

Postby Maurilio Viana » Tue Apr 17, 2007 8:35 pm

Charles,

I'm happy to know it worked fine to you!

Regards
Maurilio
User avatar
Maurilio Viana
 
Posts: 252
Joined: Tue Oct 25, 2005 2:48 pm
Location: Garça/Garza/Heron City - Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 96 guests