Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
144 user(s) are online (114 user(s) are browsing Forums)

Members: 4
Guests: 140

pjs, white, 328gts, balaton, more...

Headlines

 
  Register To Post  

ListBrowser's WrapText
Not too shy to talk
Not too shy to talk


See User information
I'm trying to get my text string word wrapped.. but I'm not having any luck .. any one that have mastered this?


LAYOUT_AddChild,            GUIObjectsGID_Status ] = IIntuition->NewObjectListBrowserClassNULL,
        
LISTBROWSER_ColumnInfo,    & StatusColumnInfo,
        
LISTBROWSER_Labels,        & StatusList,
        
LISTBROWSER_Striping,    LBS_ROWS,
        
LISTBROWSER_AutoFit,    TRUE,
        
LISTBROWSER_WrapText,    TRUE,
    
End,

IListBrowser->AllocListBrowserNode3,
        
LBNA_Column0,
            
LBNCA_Textmsg->cl_Time,
        
LBNA_Column1,
            
LBNCA_Textstr,
        
LBNA_Column2,
            
LBNCA_Textmsg->cl_String,
            
LBNCA_WordWrapTRUE,
        
TAG_END
    
);

“The best thing about a boolean is even if you are wrong, you are only off by a bit.”
Go to top
Re: ListBrowser's WrapText
Just can't stay away
Just can't stay away


See User information
@rwo

I just tested with ReAction demos LB_Example.c and acts a little weird, when I resize window maybe it needs "2 resizes" to text get wrapped on 2 (3) lines.

node IListBrowser->AllocListBrowserNode(1,
LBNA_Generation1,
    
LBNA_Column0,
    
LBNCA_CopyTextTRUE,
    
LBNCA_Text"Demo of ListBrowserNode features",
LBNCA_WordWrapTRUE,
    
TAG_DONE))


Then when I shrink window width, text gets cutted, I shrink a little again an then I get:
Demo of ListBrowserNode
features

and same to get:
Demo of
ListBrowserNode
features

Go to top
Re: ListBrowser's WrapText
Not too shy to talk
Not too shy to talk


See User information
@jabirulo

Thanks for the feedback. I found my problem, when I was adding the List to the ListBrowser, I also had AutoFit and that broke it.

“The best thing about a boolean is even if you are wrong, you are only off by a bit.”
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project