Search found 732 matches

by Allanon
Tue Nov 08, 2016 9:28 am
Forum: Showcase
Topic: My new documentation site and about where I'm heading :)
Replies: 82
Views: 87841

Re: My new documentation site and about where I'm heading :)

Hello all, Date & Time library is available with full docs, here is a brief list of what it offers: FUNCTIONS: DT.DateToDays(dd, mm, yy) DT.DaysToDate(days, format) DT.IsLeap(Year) DT.MillisecondsToTime(MS, decimal) DT.MinutesToTime(mins) DT.MonthToNumber(month) DT.NDate_AddDays(dd, mm, yy, days...
by Allanon
Fri Oct 21, 2016 7:40 pm
Forum: Showcase
Topic: My new documentation site and about where I'm heading :)
Replies: 82
Views: 87841

Re: My new documentation site and about where I'm heading :)

Here is a brief update of my recent work: ANSI Library (1.0) fully documented , download it from here Ansi.GetClearCharacters(chars) Ansi.GetCursorDown(lines) Ansi.GetCursorLeft(columns) Ansi.GetCursorMove(row, column) Ansi.GetCursorRight(columns) Ansi.GetCursorUp(lines) Ansi.GetDeleteLines(lines) A...
by Allanon
Thu Oct 20, 2016 11:56 am
Forum: Hollywood bugs
Topic: DownloadFile() not call callback function
Replies: 7
Views: 7403

Re: DownloadFile() not call callback function

I GOT IT!

Here is the error:

Code: Select all

DownloadFile(link$, {File = "RapaGUI_Win32.zip", p_CallbackFunc})
Must be:

Code: Select all

DownloadFile(link$, {File = "RapaGUI_Win32.zip" }, p_CallbackFunc)
Look at the closing curly bracket ;)
by Allanon
Thu Oct 20, 2016 10:41 am
Forum: Hollywood bugs
Topic: DownloadFile() not call callback function
Replies: 7
Views: 7403

Re: DownloadFile() not call callback function

Are you saying that putting the code this way does not work? ; update progress bar Function p_CallbackFunc(mess) level = mess.Count * 100 / mess.Total scui.Set("Gauge1", { Value = level }, 1) EndFunction ; download button pressed Function Download1() link$="http://www.hollywood-mal.co...
by Allanon
Thu Oct 20, 2016 1:40 am
Forum: Hollywood bugs
Topic: DownloadFile() not call callback function
Replies: 7
Views: 7403

Re: DownloadFile() not call callback function

Hi Lario69,

I think that it's because you have to define the function before the assignment, in your code you are assigning the variable p_CallbackFunc to the callback when it is not yet defined.

Just copy the function block before the Download() function and it should work :)
by Allanon
Wed Oct 19, 2016 1:48 am
Forum: Newbie questions
Topic: adapting a source script to a personnal code
Replies: 41
Views: 40517

Re: adapting a source script to a personnal code

Hi stefff285,
you don't need to thank so much :)
it was a pleasure to help ;)
thank you for the credits!
by Allanon
Tue Oct 18, 2016 12:59 am
Forum: Newbie questions
Topic: Save brush with transparency
Replies: 9
Views: 8366

Re: Save brush with transparency

Here is the fixed version :) Have a look at SelectBrush() documentation to check varius #SELMODE_COMBO modes Function p_Draw(W,H) ; Ad ogni redraw devi cancellare lo schermo SetFillStyle(#FILLCOLOR) Box(0, 0, w, h, #BLUE) FreeBrush(1) CreateBrush(1, W, H, #BLACK, { AlphaChannel = True, Clear = True ...
by Allanon
Mon Oct 17, 2016 6:25 pm
Forum: Newbie questions
Topic: Save brush with transparency
Replies: 9
Views: 8366

Re: Save brush with transparency

Hi Lerio69,
I've tried your script on my machine (Windows10) and every time I press [draw] a box and a circle are drawn...
Image
by Allanon
Sun Oct 16, 2016 12:12 pm
Forum: Newbie questions
Topic: Save brush with transparency
Replies: 9
Views: 8366

Re: Save brush with transparency

mmm...

Could you try to create you brush with:

Code: Select all

   CreateBrush(1, wX, hY, #BLACK, { AlphaChannel = True, Clear = True })
This way at creation time you enable the transparency channel and you also clear all the brush contents, making it full transparent.