Hi Nick, look the Declare Part
Code: Select all
Declare DrawText_FW(output_ID,
Font$,
font_flag,
output_x,
output_y,
output_width,
output_height,
text_color=#Black,
text_adjustment=0,
background_color=-1,
text$=" ",
padding_x=0,
padding_y=0,
resize_factor.f=1)
No, I don't use word, long or byte in the whole FontWizzard.
I also don't work here with pointers.
It is a very simple code.
Hi Paul,
no in the FontWizzard not a single goto is used.
In the whole GFX_Wizzard_BF 11 Goto are used with over 26 000 lines.
10 of these goto jump to error:
All for and inside the Progressbar_BF Procedure, this is a very complex function.
This procedure can create and remove coloured custom progressbars based on the PB progressbars.
When removing, everything is cleaned up and the function is then exited.
If an error occurs in the function, it simply jumps to this part at the end of the procedure, that's all.
A macro would do the same, but it bloats the code.
A separate procedure for this would have to be given all the necessary local parameters again,
without any further benefit, just ballast.
The remaining one Goto only repeats two very little nested for next loop.
It is simply a simple solution, which I could not solve otherwise by far so elegantly, not more.