xcgui-2.3.3 win32

Headers, Bindings, Libraries for use with FreeBASIC, Please include example of use to help ensure they are tested and usable.
Post Reply
D.J.Peters
Posts: 8616
Joined: May 28, 2005 3:28
Contact:

xcgui-2.3.3 win32

Post by D.J.Peters »

xcgui-2.3.3 a Windows x86 GUI with over 1200 commands.
http://www.xcgui.com

The included help is in Chinese but the code examples are readable.

I added a complete JavaScript and flash compatible Browser control.
https://github.com/CodyGuo/xcgui/tree/master/lib
based on a WebKit port: https://github.com/BlzFans/wke

download: fbxcgui-2.3.3.zip

Joshy
Last edited by D.J.Peters on Oct 12, 2022 18:30, edited 2 times in total.
D.J.Peters
Posts: 8616
Joined: May 28, 2005 3:28
Contact:

Re: xcgui-2.3.3 win32

Post by D.J.Peters »

Some screen shoots http://www.xcgui.com/show.php

Joshy
oyster
Posts: 275
Joined: Oct 11, 2005 10:46

Re: xcgui-2.3.3 win32

Post by oyster »

nice binding, you saved me a lot of time!

I think I'd better print your fb bi file and C header file side by side to learn
D.J.Peters
Posts: 8616
Joined: May 28, 2005 3:28
Contact:

Re: xcgui-2.3.3 win32

Post by D.J.Peters »

I changed ~1000 commands to use the FreeBASIC Unicode wString now !

for example for numbers replace Str() with wStr() like here: XAdTable_AddItemText(hAdapter, "Item-" & wStr(i))

Joshy
Image
file ComboBox.bas :

Code: Select all

#include once "xcgui.bi"
sub InitXCGUI constructor
  XInitXCGUI()
  ' disable debug file output: "xcgui_debug.txt"
  XC_EnableDebugFile(false)
end sub

sub ExitXCGUI destructor
 XExitXCGUI()
end sub

var xWin = XWnd_Create(0, 0, 300, 200, NULL, 0, XC_WINDOW_STYLE_DEFAULT)
XBtn_SetType(XBtn_Create(3,3,20,20,"X",xWin),button_type_close)
var hComboBox = XComboBox_Create(20, 40, 120, 20, xWin)
XRichEdit_SetText(hComboBox, "123")
var hAdapter = XAdTable_Create()
XComboBox_BindAdapter(hComboBox, hAdapter)

XAdTable_AddColumn(hAdapter, "name")
for i as integer = 0 to 999
  XAdTable_AddItemText(hAdapter, "Item-" & wstr(i))
next
XWnd_ShowWindow(xWin, SW_SHOW)
XRunXCGUI()
Last edited by D.J.Peters on Oct 12, 2022 18:30, edited 1 time in total.
oyster
Posts: 275
Joined: Oct 11, 2005 10:46

Re: xcgui-2.3.3 win32

Post by oyster »

is there a wke example?
D.J.Peters
Posts: 8616
Joined: May 28, 2005 3:28
Contact:

Re: xcgui-2.3.3 win32

Post by D.J.Peters »

Image

Code: Select all

#include once "wkeBrowser.bi"
sub InitXCGUI constructor
  XInitXCGUI()
  XC_EnableDebugFile(false)
  XWeb_Init()
  print "XWeb version: " & *XWeb_GetVersionString()
end sub
sub ExitXCGUI destructor
  XWeb_UnInit()
  XExitXCGUI()
end sub

var xWin = XWnd_Create(0,0,800,600,"Im a window title")
if (xWin) then
  var closeBtn = XBtn_Create(3,3,20,20,"X",xWin)  
  XBtn_SetType(closeBtn, button_type_close)
  
  var Browser = XWeb_Create(8,3*8,800-2*8,600-4*8, xWin)
  if Browser then XWeb_LoadUrl(Browser,"http://freebasic.net/forum")
  
  XWnd_ShowWindow(xWin, SW_SHOW)
  XRunXCGUI()
end if  
Last edited by D.J.Peters on Oct 12, 2022 18:31, edited 1 time in total.
D.J.Peters
Posts: 8616
Joined: May 28, 2005 3:28
Contact:

Re: xcgui-2.3.3 win32

Post by D.J.Peters »

Added: 150 callback prototypes and sorted in xcgui. the classes by getters and setters and cleaned many stuff.
Added wke.bi
Added: wkeBrowser.bas
Two lines shows the page in wkeBrowser :-)

Joshy

Code: Select all

var Browser = XWeb_Create(8,3*8,800-2*8,600-4*8, xWin)
if Browser then XWeb_LoadUrl(Browser,"http://freebasic.net/forum")
St_W
Posts: 1630
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: xcgui-2.3.3 win32

Post by St_W »

Is there any information on the license of that library? Unfortunately I'm quite lost on that webpage as it's all in Chinese.
srvaldez
Posts: 3542
Joined: Sep 25, 2005 21:54

Re: xcgui-2.3.3 win32

Post by srvaldez »

there's a text file in the doc folder at https://github.com/CodyGuo/xcgui , Google translation follows

Code: Select all

Colorful Interface Library User License Agreement

Introduction:
    Colorful interface library, C/C++ software interface development framework, independent research and development, using DirectUI design ideas, applied to the Windows operating system platform.
    The colorful interface library user agreement is hereinafter referred to as the agreement, the colorful interface library is referred to as the software.

all rights reserved:
    Copyright belongs to the author, referred to as the colorful interface library copyright, copyright owners own all rights to the software.

File protection:
    It is strictly forbidden to compile and modify the software.

Free version description:
    The free version is: "Colorful interface library dynamic library free version", this version is a dynamic library, does not contain static libraries, does not provide technical support services;
    Free licenses are valid for individual users, and corporate users do not enjoy free licenses.

Free rights terms:
    You must accept this Agreement to download and use the Software, and the User has the right to use it free of charge and to abide by this Agreement.

Free authorization method:
    Free license is limited to individual users. You need to add our friendship link to your website and upload your software screenshot to our forum.

Charge authorization method:
    Purchase a paid software version license.

Disclaimer:
    The copyright owner does not assume any responsibility for the economic loss caused by the use of the software.

Agreement modification:
    The copyright owner has the right to amend this agreement. Other matters not covered, the author reserves the right to interpret.

Other statements:
    The copyright owner has the final right to interpret the contents of the above terms.

Official website: www.xcgui.com
E-mail: 154460336@qq.com
St_W
Posts: 1630
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: xcgui-2.3.3 win32

Post by St_W »

Thanks srvaldez. That makes this thing a bit less interesting. So in short for the free version it prohibits commercial use and requires to refer to their website and post a screenshot of the application on their forums (which could be hard because it's also in chinese) (if I understood that translated license correctly).
oyster
Posts: 275
Joined: Oct 11, 2005 10:46

Re: xcgui-2.3.3 win32

Post by oyster »

Hello everyone, I contacted the author of XCGUI and helped him translating the license file into English. You can read the full one at http://www.xcgui.com/freeDown.php. I also upload the license files (Chinese and English) to https://github.com/retsyo/xcgui_lib

Since English is not my native language so please tell me if there is something not clear or wrong in the License.txt

On what you consider mostly, the answer is in section 2 and 3
2. License for free version
The 32 bits XCGUI dynamic library(XCGUI.DLL) is only free for personal user without any technology support. The free version does not apply to enterprise user.

3. Term of use for free version
You must supply a copy of this License with your application; or give prominent notice in the About/Help section to indicate that you are using XCGUI(http://ww.xcgui.com)

And you can purchase 64bits DLL, 32/64 bits static library, GUI Designer, Source code, support too, none of them are free.
oyster
Posts: 275
Joined: Oct 11, 2005 10:46

Re: xcgui-2.3.3 win32

Post by oyster »

I know nothing about web controls
I heard that many GUI applications looks like native looking, but they are exactly using web widgets to render HTML.

And I found http://tabulator.info which presents nice table, so can it be used with WKE?
Post Reply