English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 26 February 2024, 07:41   #1
Mafi
Registered User
 
Join Date: Jul 2022
Location: Australia
Posts: 49
Integer gadget class arrows not triggering hook

Hello again!

I've got an integer gadget in my Reaction app; I've configured STRINGA_EditHook to look for changes etc. If I'm playing around in the actual editor box things work fine. However, clicking on the arrows doesn't trigger the hook even though the value is changing. Is this a bug with the integer.class?

Cheers,
-Matt
Mafi is offline  
Old 26 February 2024, 19:17   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,001
I would not call it a bug, more an oversight.

The EditHook is a function of intuition's builtin STRGCLASS. Both string.gadget and integer.gadget are built around that one. STRGCLASS does not have arrows, therefore Intuition does not call the edit hook for arrow presses. Integer.gadget would have to call the exit outside of intuition. I don't know if this can be expected.
thomas is offline  
Old 26 February 2024, 23:14   #3
Mafi
Registered User
 
Join Date: Jul 2022
Location: Australia
Posts: 49
Quote:
Originally Posted by thomas View Post
I would not call it a bug, more an oversight.

The EditHook is a function of intuition's builtin STRGCLASS. Both string.gadget and integer.gadget are built around that one. STRGCLASS does not have arrows, therefore Intuition does not call the edit hook for arrow presses. Integer.gadget would have to call the exit outside of intuition. I don't know if this can be expected.
The buttons are updating the STRGCLASS buffer though. The global hook for STRGCLASS should ideally be observing the buffer and firing off that no? I'd expect that would be the class to fix, not integer.gadget.

-M
Mafi 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
Arrows to next issue are now missing. redblade AMR data problems 0 19 February 2021 23:06
Audio: Re-triggering a note losso Coders. Asm / Hardware 7 24 January 2014 18:07
Triggering the WinUAE Debugger? h0ffman Coders. General 2 03 June 2011 14:52
Triggering a Level 7 NMI Interrupt in WinUAE psw support.WinUAE 2 07 December 2010 15:14
Gadget/Layout.gadget V44 ruliovega support.Apps 6 02 January 2006 11: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 15:52.

Top

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