English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 11 February 2024, 11:35   #1
Mafi
Registered User
 
Join Date: Jul 2022
Location: Australia
Posts: 49
GM_TEXTEDITOR_AddChangeListener

Has anyone managed to get this to work?

I register my instance of ChangeListener but every time the handlers are called the system crashes! Haven’t managed to find any documentation on this, so I’m kind of playing in the dark.

(Have tried in C and assembler; same outcome)

-M
Mafi is offline  
Old 11 February 2024, 14:14   #2
Nightfox
Registered User
 
Nightfox's Avatar
 
Join Date: Apr 2016
Location: Perth, Australia
Posts: 385
Unfortunately much of texteditor.gadget is still unimplemented. We can only hope Hyperion will keep adding to this gadget with future updates but I wouldn't count on it.

Unless someone has a better solution, since it is a BOOPSI object, you might be able to subclass it so that it can handle key presses to register a change.

Another solution would be for your code to periodically check the contents of the texteditor and see if it has changed since last time it checked.
Nightfox is offline  
Old 11 February 2024, 19:30   #3
boemann
Camilla, AmigaOS Dev.
 
Join Date: Mar 2020
Location: Frederiksberg
Posts: 328
Quote:
Originally Posted by Mafi View Post
Has anyone managed to get this to work?

I register my instance of ChangeListener but every time the handlers are called the system crashes! Haven’t managed to find any documentation on this, so I’m kind of playing in the dark.

(Have tried in C and assembler; same outcome)

-M
Please ask the question on the forum of developer.amigaos3.net I'd be glad to answer

It does work though
boemann is offline  
Old 12 February 2024, 03:47   #4
Nightfox
Registered User
 
Nightfox's Avatar
 
Join Date: Apr 2016
Location: Perth, Australia
Posts: 385
Quote:
Originally Posted by boemann View Post
Please ask the question on the forum of developer.amigaos3.net I'd be glad to answer

It does work though
why dont you want to answer here?
Nightfox is offline  
Old 12 February 2024, 04:37   #5
Mafi
Registered User
 
Join Date: Jul 2022
Location: Australia
Posts: 49
Quote:
Originally Posted by boemann View Post
Please ask the question on the forum of developer.amigaos3.net I'd be glad to answer

It does work though
All good, figured it out. I was passing the wrong address of the instance of ChangeListener. Works perfectly now!

Cheers,
-Matt
Mafi is offline  
Old 12 February 2024, 06:57   #6
Minuous
Coder/webmaster/gamer
 
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,640
Quote:
Originally Posted by Nightfox View Post
why dont you want to answer here?
There has been a lot of trolling about OS3.2/3.3 on this forum (I'm not referring to anyone who is in this thread); for that and other reasons we made the decision it would be better to handle support from our own forum.

Last edited by Minuous; 12 February 2024 at 12:28.
Minuous is offline  
Old 12 February 2024, 11:28   #7
Nightfox
Registered User
 
Nightfox's Avatar
 
Join Date: Apr 2016
Location: Perth, Australia
Posts: 385
Quote:
Originally Posted by Mafi View Post
All good, figured it out. I was passing the wrong address of the instance of ChangeListener. Works perfectly now!

Cheers,
-Matt
That's awesome. Would you mind posting a code snippet? I'd be interested to see how you did it
Nightfox is offline  
Old 13 February 2024, 15:19   #8
Nightfox
Registered User
 
Nightfox's Avatar
 
Join Date: Apr 2016
Location: Perth, Australia
Posts: 385
Quote:
Originally Posted by Minuous View Post
There has been a lot of trolling about OS3.2/3.3 on this forum (I'm not referring to anyone who is in this thread); for that and other reasons we made the decision it would be better to handle support from our own forum.
I'm totally happy to ask OS 3.2 sys questions in the new forum. Can I get some more context though about the specific trolling that was happening? I haven't seen it and would like to know where (like what thread(s)) this happened
Nightfox is offline  
 


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 18:41.

Top

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