First of all, good work Freddix. There are some very interesting functions. I have just some questions. I didn't find any answers in the forum or in your future updates.
1/ XFont Setup Font BitmapFontFile$, BitmapFontNumber, Size, Firstchar, Flag
What is the Flag parameter ?
2/ When we are using the chat system, only bitmap fonts seem to be displayed. Plus, when I am not using bitmap fonts, we only have capitale letters in the chat box. I experimented this in the following example :
Sync On
SCORE = IMG Load Image( "graphics\Score.jpg" )
CHATGRAFX = IMG Load Image( "graphics\ChatInput.jpg" )
aa= XGUI SETUP( "AncientBlue.skin" ) = 1
XGUI CREATE WINDOW 1 , 320 , 240 , 0
XGUI POSITION WINDOW 1 , 0 , 0
XGui Set Window Title 1, "XGui Chat Window Output"
XGUI ADD GADGET TEXT 1 , 1 , 4 , 4 , 304, 188, ""
XGui Set Dialog Gadget 1
XGui Add Gadget Combi 1, 2, 0, 208, 304, 16, CHATGRAFX, ""
XGui Set Chat Gadget 2
XGui Set Chat ScanCode 15
XGui Send Dialog "DarkBASIC Professional Extends Pack"
XGui Send Dialog "Chat System demonstration"
XGui Send Dialog "Use TAB key to enter dialog in chat"
XGui Send Dialog "Use SpaceKey to quit"
XGui Send Dialog " "
Repeat
XGUI UPDATE
Sync
Until SpaceKey() = 1
Function Useless()
NULL = EXT Initialized()
NULL = BMP Initialized()
NULL = SPR Initialized() : NULL = STR Initialized()
REM X = Memblock Exist( 1 )
If Bitmap Exist( 0 ) = 1 Then Null = 0
If File Exist("") = 1 Then Null = 0
If Object Exist(1) = 1 Then Null = 0
If Image Exist(1) = 1 Then Null = 0
If Sprite Exist(1) = 1 Then Null = 0
d=mouseclick()
EndFunction
3/ As XGUI GET WINDOW XPOS/YPos functions exist, XGUI GET WINDOW HEIGHT/WIDTH can be useful when we strech a window for example.
4/ I don't understand the behaviour with the function "useless". We
initialize the plugin according to the DLL dependancies. But why do we need this :
If Bitmap Exist( 0 ) = 1 Then Null = 0
If File Exist("") = 1 Then Null = 0
If Object Exist(1) = 1 Then Null = 0
If Image Exist(1) = 1 Then Null = 0
If Sprite Exist(1) = 1 Then Null = 0
d=mouseclick()
Without this piece of code, the plugin crashes. Plus, this function is not called by the program. So I don't understand this logic.
Thanks.
Coding is dangerous for health ...