It is currently Sat Dec 14, 2019 12:39 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Prevent the FD from using the zero value
PostPosted: Thu Feb 07, 2019 4:36 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Feb 08, 2014 3:26 pm
Posts: 718
I have been using the FD for years and sometimes I have problems with fonts (a font does not change) or images that are shifted (it is not the right image that is loaded in the first image)
I may review the code line by line, but I never found out why. I think there is a place where the system misuses the value zero :?:

Failing to find out where, I found a trick for: Prevent the FD from using the value zero for each of the enumeration types by using this value for another constant (even if not used)
:!: As the FD code cannot be modified, I create enumerations called before the IncludeFile of forms
Code:
; Main Code

EnableExplicit

Enumeration FormWindow
    #Void
EndEnumeration

Enumeration FormGadget
    #Void
EndEnumeration

Enumeration FormMenu
    #Void
EndEnumeration

Enumeration FormImage
    #Void
EndEnumeration

Enumeration FormFont
    #Void
EndEnumeration

; And then call forms

XIncludeFile "..... .pbf"
XIncludeFile "..... .pbf"
XIncludeFile "..... .pbf"
And it works.

:wink:

_________________
(English is not my native language, I use an online translator)
Windows 10 Family x64 + Linux (Slackware, Debian on Oracle VirtualBox 6.0) + Raspberry Pi


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye