30 July 2018, 02:40 | #1 |
Registered User
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
|
Bltzbasic and Creategadgeta_
Hi,
I am trying to create a listview gadget using that command from the title. One of the arguments must be the exec list: ... GTLV_Labels (struct List *) An Exec list whose nodes' ln_Name fields are to be displayed as items in the scrolling list ... How can I make such a list in blitz? Thanks |
31 July 2018, 01:54 | #2 |
Registered User
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
|
This is how I tried to make a list :
Is it the right way? |
31 July 2018, 09:46 | #3 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,001
|
I don't speak Blitzbasic, but judging from the syntax in lista\lh_Head = &lista\lh_Tail I would suppose that you have to use AddHead_(&lista,&node00) because AddHead needs pointers to a list and a node, not the list and the node itself.
And instead of AddHead_ and Insert_ you can use AddTail_ in all three places. It's not your job to remember which was the last node you inserted. That's why the list structure is so complicated, it contains this information for your convenience. IMHO you don't need to initialize the Type and Pri fields because they have no meaning for a listview gadget. |
31 July 2018, 12:52 | #4 |
Registered User
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
|
Will try that ASAP
It really makes me nervous already since nothing shows up in the gadget (and I tried many combinations of pointers and.. "not pointers") Thank you for clarification and verification about creating the list and nodes itself. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|