Code: Select all
- Fix [Doc]: Rnd() and RndF() were both documented as being inclusive whereas they were exclusive in
reality; for RndF() the documentation was wrong since Hollywood 1.5, for Rnd() only Hollywood 7.1's
manual was wrong
Code: Select all
- Fix [Doc]: Rnd() and RndF() were both documented as being inclusive whereas they were exclusive in
reality; for RndF() the documentation was wrong since Hollywood 1.5, for Rnd() only Hollywood 7.1's
manual was wrong
Code: Select all
Function _handleMouseClickEvents(msg)
DebugPrint("msg.id", msg.id)
DebugPrint("msg.layername", msg.layername) ; this is not documented
; ...
EndFunction
mouseEventTable = {OnMouseUp = handleMouseClickEvents, OnMouseDown = handleMouseClickEvents}
MakeButton(Nil, #LAYERBUTTON, layername, True, True, mouseEventTable)
Code: Select all
- Fix [Doc]: MakeButton() didn't mention that buttons of type #LAYERBUTTON would receive two additional
message parameters named "Layer" and "LayerName" since Hollywood 4.5
Code: Select all
width = GetAttribute(#DISPLAY, 0, #ATTRWIDTH)
height = GetAttribute(#DISPLAY, 0, #ATTRHEIGHT)
id = GetAttribute(#DISPLAY, 0, #ATTRBGPIC)
CreateBrush(1, width, height)
SelectBrush(1)
DisplayBGPicPart(id, 0, 0, width, height, {Layers = TRUE})
EndSelect
Code: Select all
width = GetAttribute(#DISPLAY, 0, #ATTRWIDTH)
height = GetAttribute(#DISPLAY, 0, #ATTRHEIGHT)
id = GetAttribute(#DISPLAY, 0, #ATTRBGPIC)
CreateBrush(1, width, height)
SelectBrush(1)
DisplayBGPicPart(id, 0, 0, width, height, 0, 0, {Layers = TRUE})
EndSelect
Right, fixed.Juan Carlos wrote: ↑Sat Nov 21, 2020 8:10 pm With RndStrong also there is a problem with the documentation because the example:
num=RndStrong(49) show this Error in line: Not enough arguments!
When the correct is
num=RndStrong(#INTEGER, 49)
This is just a sequence of random bytes. Hollywood strings can contain binary data and this is what you get from RndStrong() with type #STRING. A sequence of strong random bytes.Juan Carlos wrote: ↑Sat Nov 21, 2020 8:10 pm Other question is with paramater #STRING it creates a non sense characters code like this:
Òðx¨0ÆPXdu¤EÚBåk+Ú!UîmnR:Öº¢§¿JdC³9
What is something like this for?
True, fixed.lazi wrote: ↑Sun May 23, 2021 8:31 pm DisplayBGPicPart() doc has an example which has old (pre 1.5) syntax and it fails in new versions.
The optional dx, dy parameters missing before the table.
No, the table must be in argument 8.
Read it again carefully:
The fourth argument is optional. It is a table that can be used to set further options for the loading operation. This table accepts all tags supported by the optional table of the SetFont() command as well as the following tags
Code: Select all
@database "HollywoodLibrary.guide"
@author "Lázi"
@$VER: Hollywood Library 1.0 (21.10.19)
@remark Created with golded 8.10 (15.9.7)
@index INDEX
@node MAIN "Hollywood Library"
---------------------------------------------------------------------------------------------------
## ## ###### ## ## ## ## ## ## ###### ###### #####
## ## ## ## ## ## #### ## # ## ## ## ## ## ## ##
##### ## ## ## ## ## ## # ## ## ## ## ## ## ##
## ## ## ## ## ## ## ## # ## ## ## ## ## ## ##
## ## ###### ##### ##### ## ####### ###### ###### #####
* * *** *** ** *** * *
* * * * * * * * * * * *
* * *** *** **** *** *
* * * * * * * * * * *
*** * *** * * * * * * *
@{b}All guides in one place@{ub}
---------------------------------------------------------------------------------------------------
@{" Hollywood Guide " link "Hollywood:Help/Hollywood.guide/MAIN"}
@{" MUI Royale " link "WorkBench:MUIRoyale/Docs/MUIRoyale.guide/MAIN"} @{" RapaGUI " link "WorkBench:RapaGUI/Docs/RapaGUI.guide/MAIN"}
@{" Polybios " link "WorkBench:Polybios/Docs/Polybios.guide/MAIN"} @{" GLGalore " link "WorkBench:GLGalore/Docs/GLGalore.guide/MAIN"}
@{" hURL " link "WorkBench:hURL/Docs/hURL.guide/MAIN"} @{" Malibu " link "WorkBench:Malibu/Docs/Malibu.guide/MAIN"}
@{" SDK " link "SDK/doc/SDK.guide/MAIN"} @{" Zip " link "Tool:Hollywood/Plugins/ZIP_Plugin/Docs/zip.guide/MAIN"}
@endnode
@node INDEX "Index"
Insert index here
@endnode
Code: Select all
.\Hollywood_Console.exe main.hws -compile main -exetype "win32|classic"