How would one go about subclassing the SimpleHTML Datatype? As it doesn't come with any public include file, I'm wondering how to obtain a data buffer from it. For example, with the Text Datatype you can use GetDTAttrs() to query about TDTA_Buffer and then process the buffer data in your subclass. I need something similar - a buffer with unprocessed data - but looking at the source code in A-EON's repository I'm not sure SimpleHTML is designed for subclassing at all.
Is there a way to change content in SimpleHTML DT (Aeon version or the original one) on the fly ? If I save html content to file and then create a new object with NewDTObject("filename"...) then the object displays html fine. But trying to remove it and adding it back to layout gadget (BOOPSI GUI) makes the software to crash. Trying to create the object without any filename and trying to change the content with DTST_MEMORY doesn't display any changes. Is there a way to force datatypes to use a certain datatype ? I tried to create/obtain a struct Datatype but that didn't help.
I need to know what the current TZID is for generating TZID in VTIMEZONE ical sub elements.
timezone.library returns a good deal of useful info, but as far as I can tell not this bit...
I can get the short 3 character timezone name but not the longer IANA name.
The info must at some level be availabe to the OS as the advanced TimeZonePrefs tab can set the TZ variable to this value.
Any ideas of the best way to get this info? Best this case for me is most OS friendly using API cals an not by parsing the Locale:TimeZone files direct...
in my program I use Asl file requester both through IASL->AslRequestTags and through getfile.gadget functions. I noticed that for some reason, both ways lead to crash if I give non-existing volume name to either ASLFR_InitialDrawer or entering such in the file requester Drawer field. If entering only non-existing drawer name (without volume name like Test:) causes fr to ask whether one should create a new drawer, as it should.
I need to create Datatype descriptor which relies on a function to indentify the file being opened.
DTDesc from teh DevCD DSIs for me (when loading an existing descriptor anyway).
I doenloaded dtmake from aminet and those tools can read "disassemble" and create the new descriptor, but I'm unsure of how to compile the function element so that it works.
On OS4 can it be PPC or 68k code or either?
The original I'm upgrading was 68k so I compiled the fixed (I hope) code with m68k-amigaos- ggc but the resultant descriptor crashes.
I'd like to know how to handle the keyboard under an MUI application.
I want to use the function keys, the arrow keys, and also other keys
if possible, and be able to check the qualifiers (Alt, Shift, Ctrl).
Where is it possible to find at an example of code?