English Amiga Board


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

 
 
Thread Tools
Old 22 October 2019, 13:12   #1
peceha
Registered User

peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 43
Posts: 208
[blitz] and gadtools cycle gadget

Hi,
I need this:
Quote:
GTCY_Labels (STRPTR *) - Pointer to NULL-terminated array of strings
looks like ordinary blitz's array is not working here.. just shows trash on the gadget
Code:
text$(0)="0"
text$(1)="1"
text$(2)="2"
text$(3)="3"
...
... GTCY_Labels, &text$(0)
Thanks in advance
peceha is offline  
Old 22 October 2019, 13:21   #2
Daedalus
Registered User

Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 4,352
Hmmm, it's a long time since I messed with GadTools in C, but I think it's an array of pointers that's needed (with a null after the last pointer), rather than an actual array of strings. In Blitz I usually just use the built-in command which takes a string containing the entries as an argument.
Daedalus is offline  
Old 22 October 2019, 13:26   #3
peceha
Registered User

peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 43
Posts: 208
Thanks for suggestion, I'll try it out.
peceha is offline  
Old 22 October 2019, 13:34   #4
peceha
Registered User

peceha's Avatar
 
Join Date: Dec 2017
Location: Poland
Age: 43
Posts: 208
You were right
just array to the pointers and 0 as last array's item

Thanks.
peceha is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove/hide any gadget from window (gadtools) peceha Coders. System 9 18 September 2019 09:45
Blitz + gadtools 3.x powrslave Coders. General 1 16 February 2017 23:15
Screen cycle gadget to Windows.... Michael Sykes request.UAE Wishlist 11 01 June 2014 15:06
gadtools zharn Coders. C/C++ 6 21 February 2014 21:26
Gadget/Layout.gadget V44 ruliovega support.Apps 6 02 January 2006 12:50

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 01:54.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.06196 seconds with 15 queries