GUI library for Windows \ Linux (window9)
Re: GUI library for Windows \ Linux (window9)
Some lines are missing in keywords.hhk.
Maybe you use an old version as get/set focus are 'new' keywords.
I have added what is needed : https://users.freebasic-portal.de/sarg/keywords.hhk
Edit : I forgot, index in Chm file is now ok.
Edit bis : the Chm file, https://users.freebasic-portal.de/sarg/Window9_help.chm
Maybe you use an old version as get/set focus are 'new' keywords.
I have added what is needed : https://users.freebasic-portal.de/sarg/keywords.hhk
Edit : I forgot, index in Chm file is now ok.
Edit bis : the Chm file, https://users.freebasic-portal.de/sarg/Window9_help.chm
Re: GUI library for Windows \ Linux (window9)
Could you possibly give me a link to the version of the Windows Html Help Compiler that you use. There are so many locations to download and they all say version 1.3, but yours is obviously more up to date.SARG wrote: ↑Aug 26, 2022 16:17 Some lines are missing in keywords.hhk.
Maybe you use an old version as get/set focus are 'new' keywords.
I have added what is needed : https://users.freebasic-portal.de/sarg/keywords.hhk
Edit : I forgot, index in Chm file is now ok.
Edit bis : the Chm file, https://users.freebasic-portal.de/sarg/Window9_help.chm
Re: GUI library for Windows \ Linux (window9)
I could but not sure it solves the problem.
The missing lines are in a file genarated by HelpNDoc as there are these lines at the beggining of keywords.hhk :
So I have added by hand what was necessary for get/set focus.
My version is 4.74. Anyway tell me and I'll give a link to download.
The missing lines are in a file genarated by HelpNDoc as there are these lines at the beggining of keywords.hhk :
Code: Select all
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta name="generator" content="HelpNDoc Professional Edition 8.0.0.187">
</head>
<body>
My version is 4.74. Anyway tell me and I'll give a link to download.
Re: GUI library for Windows \ Linux (window9)
@SARG
In the meantime, yes I would appreciate a link to the version you use to have a play and see how it differs from mine.
I've had a look at the files that HelpNDoc generate. It doesn't generate a Keywords.hhk file. Instead it generates a Keywords.json file. I've done a search on the .json file and GETFOCUS and SETFOCUS are missing. The version of the Windows HTML Help Compiler (HHW Workshop) has been obtained from a link in the HelpNDoc program. The Windows HTML Help Compiler is an essential part of HelpNDoc and it uses it to do the final compilation of a.CHM file. I shall take up this matter with them to see if they can help.I could but not sure it solves the problem.
The missing lines are in a file genarated by HelpNDoc as there are these lines at the beggining of keywords.hhk :
Code: Select all
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta name="generator" content="HelpNDoc Professional Edition 8.0.0.187">
</head>
<body>
So I have added by hand what was necessary for get/set focus.
My version is 4.74. Anyway tell me and I'll give a link to download.
In the meantime, yes I would appreciate a link to the version you use to have a play and see how it differs from mine.
Re: GUI library for Windows \ Linux (window9)
The link to the installer : https://users.freebasic-portal.de/sarg/htmlhelp.exe
Re: GUI library for Windows \ Linux (window9)
Thanks for the link. I'll download it and see what happens.SARG wrote: ↑Aug 27, 2022 15:08 The link to the installer : https://users.freebasic-portal.de/sarg/htmlhelp.exe
In the meantime, I've sent off a query to HelpNDoc, but I don't expect a response until Monday at the earliest.
Re: GUI library for Windows \ Linux (window9)
I've had a response from HelpNDoc.RNBW wrote: ↑Aug 27, 2022 16:12Thanks for the link. I'll download it and see what happens.SARG wrote: ↑Aug 27, 2022 15:08 The link to the installer : https://users.freebasic-portal.de/sarg/htmlhelp.exe
In the meantime, I've sent off a query to HelpNDoc, but I don't expect a response until Monday at the earliest.
It turns out I wasn't using the Editor correctly. I had been confused because when I compiled the file it generated an Index. However, this was not the way to do it. What I should have done was add a keyword for a topic (or a keyword within the text) as it was initially produced. This then generates correctly the Index list. Fortunately, I was able to add the two missing topics into the Index list in the Editor and then compile it. The file in this link should include the previously missing topics in the Index list https://www.dropbox.com/s/twarsdvz7ezvn ... 9.chm?dl=0.
Sorry for the mess-up. But it's something else I've learnt.
Re: GUI library for Windows \ Linux (window9)
Always good to know what is the reason for an issue.
Not sure but it seems that the chm file generated with my version of HTML compiler is smaller than with your version (about 500ko).
Could you check ?
Not sure but it seems that the chm file generated with my version of HTML compiler is smaller than with your version (about 500ko).
Could you check ?
Re: GUI library for Windows \ Linux (window9)
I won't have time for a few days. It is probably because you have done a straight compile using the Microsoft HTML Help Compiler. HelpNDoc has probably got some overheads on top of that.
-
- Posts: 237
- Joined: Jul 15, 2021 7:23
- Location: Greece
- Contact:
Re: GUI library for Windows \ Linux (window9)
hello,
i test windows9 lib in Debian 13 Trixie testing with no success.
1) in windows9.bi at line 583 i change it to
#inclib "webkitgtk-6.0"
from
#inclib "webkitgtk-1.0"
2) i compiled a project example with success,
but when i run it from console nothing happens...
it is executed but i get nothing, no error, no window
this is the code i tried
i test windows9 lib in Debian 13 Trixie testing with no success.
1) in windows9.bi at line 583 i change it to
#inclib "webkitgtk-6.0"
from
#inclib "webkitgtk-1.0"
2) i compiled a project example with success,
but when i run it from console nothing happens...
it is executed but i get nothing, no error, no window
this is the code i tried
Code: Select all
#include Once "windows9/window9.bi"
Function Messbox(sCaption As String , sText As String , flag As Long = MB_OK , ParentWin As Hwnd = 0) As Long Export
Dim Box As HWND
If flag = MB_OK Then
Box = gtk_message_dialog_new(Cast(Any Ptr,ParentWin), GTK_DIALOG_MODAL, _
GTK_MESSAGE_INFO, GTK_BUTTONS_OK, g_locale_to_utf8(sText,Len(sText) ,0,0,0) )
Elseif flag = MB_YESNO Then
Box = gtk_message_dialog_new(Cast(Any Ptr,ParentWin), GTK_DIALOG_MODAL, _
GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, g_locale_to_utf8(sText,Len(sText) ,0,0,0) )
Elseif flag = MB_YESNOCANCEL Then
Box = gtk_message_dialog_new(Cast(Any Ptr,ParentWin), GTK_DIALOG_MODAL, _
GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, g_locale_to_utf8(sText,Len(sText) ,0,0,0) )
gtk_dialog_add_buttons(GTK_DIALOG(Box),_
GTK_STOCK_YES,_
GTK_RESPONSE_YES,_
GTK_STOCK_NO,_
GTK_RESPONSE_NO,_
GTK_STOCK_CANCEL,_
GTK_RESPONSE_CANCEL,_
NULL)
gtk_dialog_set_default_response (GTK_DIALOG(Box),GTK_RESPONSE_YES)
Endif
gtk_window_set_title(GTK_WINDOW(Box), g_locale_to_utf8(sCaption,Len(sCaption),0,0,0))
Dim As gint result = gtk_dialog_run(GTK_DIALOG(Box))
If flag = MB_YESNO Orelse flag = MB_YESNOCANCEL Then
If result = GTK_RESPONSE_NO Then
Messbox = IDNO
Elseif result = GTK_RESPONSE_YES Then
Messbox = IDYES
Else
Messbox = IDCANCEL
Endif
Else
Messbox = IDOK
Endif
gtk_widget_destroy(Box)
End Function
-
- Posts: 237
- Joined: Jul 15, 2021 7:23
- Location: Greece
- Contact:
Re: GUI library for Windows \ Linux (window9)
i made another test with success this time
all are fine, no problem
Code: Select all
#include Once "windows9/window9.bi"
MessBox("Message may not be used ","Error")
-
- Posts: 237
- Joined: Jul 15, 2021 7:23
- Location: Greece
- Contact:
Re: GUI library for Windows \ Linux (window9)
one issue only...
The width of MessageBox is very short and the title is not been shown...
The width of MessageBox is very short and the title is not been shown...
-
- Posts: 237
- Joined: Jul 15, 2021 7:23
- Location: Greece
- Contact:
Re: GUI library for Windows \ Linux (window9)
ahhh...this is the src code for MessageBox of windows9....demosthenesk wrote: ↑Aug 06, 2023 9:59 hello,
i test windows9 lib in Debian 13 Trixie testing with no success.
1) in windows9.bi at line 583 i change it to
#inclib "webkitgtk-6.0"
from
#inclib "webkitgtk-1.0"
2) i compiled a project example with success,
but when i run it from console nothing happens...
it is executed but i get nothing, no error, no window
this is the code i triedCode: Select all
#include Once "windows9/window9.bi" Function Messbox(sCaption As String , sText As String , flag As Long = MB_OK , ParentWin As Hwnd = 0) As Long Export Dim Box As HWND If flag = MB_OK Then Box = gtk_message_dialog_new(Cast(Any Ptr,ParentWin), GTK_DIALOG_MODAL, _ GTK_MESSAGE_INFO, GTK_BUTTONS_OK, g_locale_to_utf8(sText,Len(sText) ,0,0,0) ) Elseif flag = MB_YESNO Then Box = gtk_message_dialog_new(Cast(Any Ptr,ParentWin), GTK_DIALOG_MODAL, _ GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, g_locale_to_utf8(sText,Len(sText) ,0,0,0) ) Elseif flag = MB_YESNOCANCEL Then Box = gtk_message_dialog_new(Cast(Any Ptr,ParentWin), GTK_DIALOG_MODAL, _ GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, g_locale_to_utf8(sText,Len(sText) ,0,0,0) ) gtk_dialog_add_buttons(GTK_DIALOG(Box),_ GTK_STOCK_YES,_ GTK_RESPONSE_YES,_ GTK_STOCK_NO,_ GTK_RESPONSE_NO,_ GTK_STOCK_CANCEL,_ GTK_RESPONSE_CANCEL,_ NULL) gtk_dialog_set_default_response (GTK_DIALOG(Box),GTK_RESPONSE_YES) Endif gtk_window_set_title(GTK_WINDOW(Box), g_locale_to_utf8(sCaption,Len(sCaption),0,0,0)) Dim As gint result = gtk_dialog_run(GTK_DIALOG(Box)) If flag = MB_YESNO Orelse flag = MB_YESNOCANCEL Then If result = GTK_RESPONSE_NO Then Messbox = IDNO Elseif result = GTK_RESPONSE_YES Then Messbox = IDYES Else Messbox = IDCANCEL Endif Else Messbox = IDOK Endif gtk_widget_destroy(Box) End Function
sorry my mistake...
Re: GUI library for Windows \ Linux (window9)
Hi!demosthenesk wrote: ↑Aug 06, 2023 9:59 hello,
i test windows9 lib in Debian 13 Trixie testing with no success.
1) in windows9.bi at line 583 i change it to
#inclib "webkitgtk-6.0"
from
#inclib "webkitgtk-1.0"
For GTK2, only webkitgtk-1.0 should be used (this is the latest version for GTK2)
For GTK3, whatever library (libwebkit2gtk-3.0 , libwebkit2gtk-4.0 , ...) you have on your system should be used.
Important! For GTK3, uncomment the #define __USE_GTK3__ line and use the appropriate binary library libwindow9.a for GTK3.
-
- Posts: 237
- Joined: Jul 15, 2021 7:23
- Location: Greece
- Contact:
Re: GUI library for Windows \ Linux (window9)
in my distro Debian 13 i have gtk2, gtk3, gtk4 but for gtk2 there is no webkitgtk-1.0 availableVANYA wrote: ↑Aug 06, 2023 13:06Hi!demosthenesk wrote: ↑Aug 06, 2023 9:59 hello,
i test windows9 lib in Debian 13 Trixie testing with no success.
1) in windows9.bi at line 583 i change it to
#inclib "webkitgtk-6.0"
from
#inclib "webkitgtk-1.0"
For GTK2, only webkitgtk-1.0 should be used (this is the latest version for GTK2)
For GTK3, whatever library (libwebkit2gtk-3.0 , libwebkit2gtk-4.0 , ...) you have on your system should be used.
Important! For GTK3, uncomment the #define __USE_GTK3__ line and use the appropriate binary library libwindow9.a for GTK3.