Search found 132 matches

by jPV
Thu Jun 14, 2018 7:30 am
Forum: Newbie questions
Topic: MakeButton #SIMPLEBUTTON Vacant ID is userdata: 000FE...
Replies: 3
Views: 40

Re: MakeButton #SIMPLEBUTTON Vacant ID is userdata: 000FE...

It should work, but are you sure you gave correct userdata to the DeleteButton? For example that "OnMouseOver=DebugPrint" in your example prints the message userdata, not the button id userdata. Maybe this example would make things more clear to think: ids={} for local i=0 to 5 ids[i]=MakeButton(Nil...
by jPV
Tue Jun 12, 2018 12:27 pm
Forum: Newbie questions
Topic: why does setlayerstyle not accept createlayer ID?
Replies: 4
Views: 38

Re: why does setlayerstyle not accept createlayer ID?

DisplayTextObject(n, 100, 100)
SetLayerName(0, "mytextlayer")

ID 0 in SetLayerName modifies the last added layer.
by jPV
Tue Jun 05, 2018 9:48 pm
Forum: Newbie questions
Topic: Compress file with XAD or ZIP
Replies: 5
Views: 83

Re: Compress file with XAD or ZIP

XAD is for unarchiving only, you can't compress with it.
by jPV
Mon May 21, 2018 4:51 pm
Forum: Polybios
Topic: ScaleBrush doesn't work for brushes from PDF
Replies: 3
Views: 100

Re: ScaleBrush doesn't work for brushes from PDF

I also have a problem when I tried to add PDF support to RNOComics, it seems I get crashes with DisplayBrush() if I use Width/Height options in the table... and give values different to original dimensions. For some reason I haven't been able to reproduce it in a simple example... so I'm not sure if...
by jPV
Sun May 20, 2018 10:11 am
Forum: Polybios
Topic: ScaleBrush doesn't work for brushes from PDF
Replies: 3
Views: 100

ScaleBrush doesn't work for brushes from PDF

@REQUIRE "polybios" Repeat f$=FileRequest("Select a PDF file") If Not f$ Then End pdf.OpenDocument(1, f$) pdf.GetBrush(1, 1, 1) DebugPrint("Orig dimensions:", GetAttribute(#BRUSH,1,#ATTRWIDTH), GetAttribute(#BRUSH,1,#ATTRHEIGHT)) ScaleBrush(1,"200%",#KEEPASPRAT) ; <- Any kind of scaling results an ...
by jPV
Fri May 18, 2018 5:44 pm
Forum: Polybios
Topic: Request: IsPDF function
Replies: 6
Views: 103

Re: Request: IsPDF function

Maybe it could also return number of pages in the PDF, to get that more straightforward way? Or possibly some other information too...
by jPV
Fri May 18, 2018 5:37 pm
Forum: Showcase
Topic: RNOWidgets
Replies: 12
Views: 651

Re: RNOWidgets

But maybe I could add a command that allows to you manually close the audio device so that you have better control over it. That would be really nice. I now changed the program to use the Play shell command on MorphOS, but on other platforms there might not be suitable commands out of the box and w...
by jPV
Thu May 17, 2018 7:46 pm
Forum: Polybios
Topic: Request: IsPDF function
Replies: 6
Views: 103

Re: Request: IsPDF function

I'm adding PDF support to RNOComics, but I have to rewrite some stuff and it probably will be a bit hack&patch style solution, because it doesn't suit directly to the structure I've made for earlier purposes :) But I'm expecting that it will be OK to use RNOComics as a generic PDF reader too, and no...
by jPV
Thu May 17, 2018 5:52 pm
Forum: Polybios
Topic: Request: IsPDF function
Replies: 6
Views: 103

Request: IsPDF function

Would it be possible to make an IsPDF function to check if PDF is recognized and can be opened? I have some PDF files which fail to open and would be nice to be able to check them in a clean way rather than writing a custom error handling routine.
by jPV
Wed May 16, 2018 7:32 pm
Forum: Showcase
Topic: RNOWidgets
Replies: 12
Views: 651

Re: RNOWidgets

Hope you can find a way to fix it. For now, it seems to be all ok with the quick fix from above. I'll report if I notice anything else. It is nice to have those widgets in Ambient's desktop. Thank you! Yeah, please let me know if you find anything else. I'll try to fix this audio issue ASAP (=next ...