Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
240 user(s) are online (162 user(s) are browsing Forums)

Members: 2
Guests: 238

sailor, walkero, more...

Headlines

Forum Index


Board index » All Posts (mritter0)




Re: Syntax highlighting -- need these?
Just popping in
Just popping in


@davebraco

Yes, I saw that.

The last one I need/want is AMOS/AMOS2. I haven't found anything easy to work with.

Go to top


Re: Mouse pointer images
Just popping in
Just popping in


@broadblues

Nice. Works just fine. And will be easier to add more colors now.

Would you happen to have the textpointer instead of hand for the fallback bitmap?


Thanks!

Go to top


Re: Mouse pointer images
Just popping in
Just popping in


OK. I got icons to load. It was the lack of the fallback image.

Trying your code for images (I was taking it too far and making a NewObject(BitMapClass, and trying to use that) but I don't know where you are getting sizeof(ARGB32).

Workbench Explorer - A better way to browse drawers
Go to top


Re: Mouse pointer images
Just popping in
Just popping in


I can't get anything except the original icon to load. I used the 32bit editor from above to change the color to white; just get a garbage pointer.

You can't use PNGs directly like you can with everything else (gadgets, menus, toolbars). It has to be a generic bitmap.

Is there anything wrong with this code that doesn't like editted icons?

Pulling my hair out (what's left of it).


SAK_LoadPointer((STRPTR)"PROGDIR:Images/def_textpointer",ActiveScreen);



struct DiskObject                   *SAK_MouseDiskObject=NULL;
Object                              *SAK_MousePointerObject=NULL;


VOID
SAK_LoadPointer
(STRPTR name,struct Screen *Scr)
{
    
uint8                            *image=0;
    
int32                            w=0h=0;
    
STRPTR                            xoffset_toolyoffset_tool;
    
int32                            xoffset=0yoffset=0;

    
SAK_MousePointerObject=NULL;

    if ((
SAK_MouseDiskObject=IIcon->GetIconTags(name,
        
ICONGETA_FailIfUnavailable,                TRUE,
    
TAG_DONE)))
    {
IDOS->Printf("1\n");
        
IIcon->LayoutIcon(SAK_MouseDiskObject,Scr,TAG_DONE);
        
IIcon->IconControl(SAK_MouseDiskObject,
            
ICONCTRLA_GetImageData1,                &image,
            
ICONCTRLA_GetWidth,                        &w,
            
ICONCTRLA_GetHeight,                    &h,
        
TAG_DONE);

        if ((
xoffset_tool=IIcon->FindToolType((SAK_MouseDiskObject)->do_ToolTypes,"XOFFSET")))
        {
            
xoffset=atoi(xoffset_tool);
        }

        if ((
yoffset_tool=IIcon->FindToolType((SAK_MouseDiskObject)->do_ToolTypes,"YOFFSET")))
        {
            
yoffset=atoi(yoffset_tool);
        }

        if (
image)
        {
IDOS->Printf("2\n");
            
SAK_MousePointerObject=IIntuition->NewObject(NULL,"pointerclass",
//                POINTERA_BitMap,                        fallbackPointer,
                
POINTERA_ImageData,                        image,
                
POINTERA_Width,                            w,
                
POINTERA_Height,                        h,
                
POINTERA_XOffset,                        -xoffset,
                
POINTERA_YOffset,                        -yoffset,
//      POINTERA_WordWidth,   (ULONG)(w+15)/16,
//      POINTERA_XResolution, (ULONG)POINTERXRESN_SCREENRES,
//      POINTERA_YResolution, (ULONG)POINTERYRESN_SCREENRESASPECT,
            
TAG_DONE);
        }
    }
}

Go to top


Re: Mouse pointer images
Just popping in
Just popping in


@broadblues

Just using an image makes more sense. I was getting to that point since I am just pulling the image out of the icon anyway....


@jabirulo

Thanks. Hopefully won't be needed.

Workbench Explorer - A better way to browse drawers
Go to top


Re: Mouse pointer images
Just popping in
Just popping in


Why does the Icon Editor not save correctly?!

Can someone make a working white (not black) version of:

def_textpointer.info


Please and thank you.

mritter0 at gamil.com


Edited by mritter0 on 2019/7/15 3:09:42
Workbench Explorer - A better way to browse drawers
Go to top


Mouse pointer images
Just popping in
Just popping in


Are the mouse pointer images somewhere on disk or are they in Intuition itself? SYS:Prefs/Presets/Pointers are just the main pointer image.

I want to copy POINTERTYPE_TEXT and make a slight change to it and set the new image myself.

If it's on disk, can the Prefs->Pointer editor change them?

Go to top


Re: expat.library abort scanning
Just popping in
Just popping in


Thank you.

Workbench Explorer - A better way to browse drawers
Go to top


expat.library abort scanning
Just popping in
Just popping in


Let's say in the StartElement or CharacterElement of the scanning process there is an error (not enough memory). How do I abort the scanning process?

Go to top


Re: Syntax highlighting -- need these?
Just popping in
Just popping in


@Kamelito

Perfect! That is what I need for each language!

Go to top


Re: Syntax highlighting -- need these?
Just popping in
Just popping in


Is anyone interested in ARM Assembly?

Workbench Explorer - A better way to browse drawers
Go to top


Re: Syntax highlighting -- need these?
Just popping in
Just popping in


@Kamelito

No, not really. I found a list of functions and registers, but need more info.

PM sent.

Go to top


Re: Syntax highlighting -- need these?
Just popping in
Just popping in


Hollywood and Z80 done.

AMOS and PPC (what are you referring to?) still needed.

Workbench Explorer - A better way to browse drawers
Go to top


Re: Syntax highlighting -- need these?
Just popping in
Just popping in


I have all of the requested languages done (plus a few more) except for these:

AMOS
Hollywood
Z80
PPC

Can someone point me to sites with a list of the functions (so I can copy/paste) and other syntax details (ie, comment style) for these?

Thanks

Workbench Explorer - A better way to browse drawers
Go to top


Re: expat.library element length
Just popping in
Just popping in


@trixie

I have re-worked my files to be "the old way" I was doing things, <Keyword>xxx</Keyword>, for each entry. It isn't killing me, but more setup work.

ezXML was my second choice over expat. It worked fine with the long lines....at first. It is also a tree-based parser. But it has no error checking for bad elements.

Does libroxml verify the document like expat?

But yes, I will take a look at it. I like that it can write files, too. Send it to my email.

Thanks

Workbench Explorer - A better way to browse drawers
Go to top


Re: expat.library element length
Just popping in
Just popping in


@broadblues

Your second post is what I am trying to get away from. It is fine for most languages, but some have hundreds or even thousands of keywords (PHP, Python, C#....). It's not a deal breaker if I *have* to, just not my first choice.

I don't give up that easy. I will figure something out.

Workbench Explorer - A better way to browse drawers
Go to top


Re: expat.library element length
Just popping in
Just popping in


@billyfish

That makes sense, but I only get 1 call to CharacterElement() for the item I am parsing. I can tell because I put some Printf() calls in there and it only shows once.

On the other hand, it doesn't make sense. Just tell me the total length of expat's internal buffer and I copy it to my buffer of same length.


//////////////////////////////////////////////////


I wasn't totally clear on problem #2. If the keywords aren't on the same line as <ReservedWords> it will fail to recognize them.

Go to top


expat.library element length
Just popping in
Just popping in


I am using expat.library to parse my language syntax highlighting files. All is going well, expect I get a max of 1024 characters for the elements.

......
<Keywords>
<ReservedWords>
byte int long printf
</ReservedWords>
</Keywords>
.......

For C/C++ the line length is about 1400 characters, but I only get the first 1024.

IExpat->XML_SetCharacterDataHandler(Parser,CharacterElement);

VOID
CharacterElement(void *x, const XML_Char *t, int len)

Am I stuck or is there a way to increase the length? I would think it would be "infinite". Allocate a buffer of len size and copy it from t.

////////////////////////////////////////////

Problem 2 is:

The way I have it above does not work. This does:

<ReservedWords>byte int long printf</ReservedWords>

Why? It doesn't like leading tabs and line feeds.
If the words are not on the same line as <ReservedWords> it will not be recognized.



Edited by mritter0 on 2019/7/8 22:50:54
Edited by mritter0 on 2019/7/9 3:33:51
Go to top


Re: Syntax highlighting -- need these?
Just popping in
Just popping in


@jabirulo
Thanks for that info on Notepad++. That gave me some ideas on how to simplify my syntax files. (Not that they are complicated.)

You know you will be getting betas from me.

Go to top


Re: Syntax highlighting -- need these?
Just popping in
Just popping in


@broadblues
That's what I thought.

@Kamelito
Thanks.

@all
I am looking for sites that tell me a lot of details about the language. Or if you have some code examples that editors like NotePad++ or Amiga's gvim has highlighting for so I can see what it should look like. (Functions, comments, numbers, etc.)


Workbench Explorer - A better way to browse drawers
Go to top



TopTop
« 1 (2) 3 4 5 ... 11 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project