English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 30 July 2018, 02:40   #1
peceha
Registered User
 
peceha's Avatar
 
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
peceha is online now  
Old 31 July 2018, 01:54   #2
peceha
Registered User
 
peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
This is how I tried to make a list :

Is it the right way?
peceha is online now  
Old 31 July 2018, 09:46   #3
thomas
Registered User
 
thomas's Avatar
 
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.
thomas is offline  
Old 31 July 2018, 12:52   #4
peceha
Registered User
 
peceha's Avatar
 
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.
peceha is online now  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:01.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07865 seconds with 14 queries