Update:
A very small but useful fix. Previously, there was no navigation to gadgets (use the TAB key) that are disabled. Everything should be fine now.
GUI library for Windows \ Linux (window9)
-
- Posts: 255
- Joined: Jul 15, 2021 7:23
- Location: Greece
- Contact:
Re: GUI library for Windows \ Linux (window9)
Hello i think i came across a bug:
i get errors:
Building Project: SetComboBoxItemText......
c:/users/demos/bin/freebasic-1.10.1-winlibs-gcc-9.3.0/fbc64.exe -x "SetComboBoxItemText.exe" -m "SetComboBoxItemText" -b "SetComboBoxItemText.bas" -i "C:/Users/demos/Bin/FreeBASIC-1.10.0-winlibs-gcc-9.3.0/inc" -p "C:/Users/demos/Bin/FreeBASIC-1.10.0-winlibs-gcc-9.3.0/lib/win64" -s gui
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(23) error 4: Duplicated definition, __STRINGIFY in '#define __STRINGIFY(x) #x'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(24) error 4: Duplicated definition, __MINGW64_STRINGIFY in '#define __MINGW64_STRINGIFY(x) __STRINGIFY(x)'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(38) error 4: Duplicated definition, __MINGW_IMP_SYMBOL in '#define __MINGW_IMP_SYMBOL(sym) _imp__##sym'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(39) error 4: Duplicated definition, __MINGW_IMP_LSYMBOL in '#define __MINGW_IMP_LSYMBOL(sym) __imp__##sym'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(40) error 4: Duplicated definition, __MINGW_USYMBOL in '#define __MINGW_USYMBOL(sym) _##sym'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(41) error 4: Duplicated definition, __MINGW_LSYMBOL in '#define __MINGW_LSYMBOL(sym) sym'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(46) error 4: Duplicated definition, __MSABI_LONG in '#define __MSABI_LONG(x) x##l'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(78) error 4: Duplicated definition, _CRT_INSECURE_DEPRECATE_MEMORY in '#define _CRT_INSECURE_DEPRECATE_MEMORY(_Replacement)'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(79) error 4: Duplicated definition, _CRT_INSECURE_DEPRECATE_GLOBALS in '#define _CRT_INSECURE_DEPRECATE_GLOBALS(_Replacement)'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(81) error 4: Duplicated definition, _CRT_OBSOLETE in '#define _CRT_OBSOLETE(_NewItem)'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(81) error 133: Too many errors, exiting
Compile Error...
Code: Select all
#Include "window9.bi"
#Ifdef __FB_WIN32__
Var h = 80
#Else
Var h = 30
#EndIf
OpenWindow("",10,10,300,100)
ComboBoxGadget(1,10,10,100,h)
AddComboBoxItem(1,"Hello0",-1)
AddComboBoxItem(1,"Hello1",-1)
AddComboBoxItem(1,"Hello2",-1)
ButtonGadget(2,150,10,100,25,"Replace")
Do
var event=WaitEvent()
If event=eventclose Then End
If event=eventgadget Then
If eventnumber()=2 Then
SetComboBoxItemText(1,"New Text",1)
EndIf
EndIf
Loop
Building Project: SetComboBoxItemText......
c:/users/demos/bin/freebasic-1.10.1-winlibs-gcc-9.3.0/fbc64.exe -x "SetComboBoxItemText.exe" -m "SetComboBoxItemText" -b "SetComboBoxItemText.bas" -i "C:/Users/demos/Bin/FreeBASIC-1.10.0-winlibs-gcc-9.3.0/inc" -p "C:/Users/demos/Bin/FreeBASIC-1.10.0-winlibs-gcc-9.3.0/lib/win64" -s gui
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(23) error 4: Duplicated definition, __STRINGIFY in '#define __STRINGIFY(x) #x'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(24) error 4: Duplicated definition, __MINGW64_STRINGIFY in '#define __MINGW64_STRINGIFY(x) __STRINGIFY(x)'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(38) error 4: Duplicated definition, __MINGW_IMP_SYMBOL in '#define __MINGW_IMP_SYMBOL(sym) _imp__##sym'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(39) error 4: Duplicated definition, __MINGW_IMP_LSYMBOL in '#define __MINGW_IMP_LSYMBOL(sym) __imp__##sym'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(40) error 4: Duplicated definition, __MINGW_USYMBOL in '#define __MINGW_USYMBOL(sym) _##sym'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(41) error 4: Duplicated definition, __MINGW_LSYMBOL in '#define __MINGW_LSYMBOL(sym) sym'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(46) error 4: Duplicated definition, __MSABI_LONG in '#define __MSABI_LONG(x) x##l'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(78) error 4: Duplicated definition, _CRT_INSECURE_DEPRECATE_MEMORY in '#define _CRT_INSECURE_DEPRECATE_MEMORY(_Replacement)'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(79) error 4: Duplicated definition, _CRT_INSECURE_DEPRECATE_GLOBALS in '#define _CRT_INSECURE_DEPRECATE_GLOBALS(_Replacement)'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(81) error 4: Duplicated definition, _CRT_OBSOLETE in '#define _CRT_OBSOLETE(_NewItem)'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(81) error 133: Too many errors, exiting
Compile Error...
-
- Posts: 255
- Joined: Jul 15, 2021 7:23
- Location: Greece
- Contact:
Re: GUI library for Windows \ Linux (window9)
well i recreate the project in poseidon and it compiles correctly...demosthenesk wrote: ↑Aug 13, 2024 7:00 Hello i think i came across a bug:
i get errors:Code: Select all
#Include "window9.bi" #Ifdef __FB_WIN32__ Var h = 80 #Else Var h = 30 #EndIf OpenWindow("",10,10,300,100) ComboBoxGadget(1,10,10,100,h) AddComboBoxItem(1,"Hello0",-1) AddComboBoxItem(1,"Hello1",-1) AddComboBoxItem(1,"Hello2",-1) ButtonGadget(2,150,10,100,25,"Replace") Do var event=WaitEvent() If event=eventclose Then End If event=eventgadget Then If eventnumber()=2 Then SetComboBoxItemText(1,"New Text",1) EndIf EndIf Loop
Building Project: SetComboBoxItemText......
c:/users/demos/bin/freebasic-1.10.1-winlibs-gcc-9.3.0/fbc64.exe -x "SetComboBoxItemText.exe" -m "SetComboBoxItemText" -b "SetComboBoxItemText.bas" -i "C:/Users/demos/Bin/FreeBASIC-1.10.0-winlibs-gcc-9.3.0/inc" -p "C:/Users/demos/Bin/FreeBASIC-1.10.0-winlibs-gcc-9.3.0/lib/win64" -s gui
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(23) error 4: Duplicated definition, __STRINGIFY in '#define __STRINGIFY(x) #x'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(24) error 4: Duplicated definition, __MINGW64_STRINGIFY in '#define __MINGW64_STRINGIFY(x) __STRINGIFY(x)'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(38) error 4: Duplicated definition, __MINGW_IMP_SYMBOL in '#define __MINGW_IMP_SYMBOL(sym) _imp__##sym'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(39) error 4: Duplicated definition, __MINGW_IMP_LSYMBOL in '#define __MINGW_IMP_LSYMBOL(sym) __imp__##sym'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(40) error 4: Duplicated definition, __MINGW_USYMBOL in '#define __MINGW_USYMBOL(sym) _##sym'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(41) error 4: Duplicated definition, __MINGW_LSYMBOL in '#define __MINGW_LSYMBOL(sym) sym'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(46) error 4: Duplicated definition, __MSABI_LONG in '#define __MSABI_LONG(x) x##l'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(78) error 4: Duplicated definition, _CRT_INSECURE_DEPRECATE_MEMORY in '#define _CRT_INSECURE_DEPRECATE_MEMORY(_Replacement)'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(79) error 4: Duplicated definition, _CRT_INSECURE_DEPRECATE_GLOBALS in '#define _CRT_INSECURE_DEPRECATE_GLOBALS(_Replacement)'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(81) error 4: Duplicated definition, _CRT_OBSOLETE in '#define _CRT_OBSOLETE(_NewItem)'
C:\Users\demos\Bin\FreeBASIC-1.10.0-winlibs-gcc-9.3.0\inc\win\_mingw.bi(81) error 133: Too many errors, exiting
Compile Error...
i dont know what it was
Re: GUI library for Windows \ Linux (window9)
Hi, I use "window9" to create fairly simple control programs as GUIs.
I need to create a rather simple terminal emulator within an existing window9 project.
I need a scrollable text pane which I can do nicely using "editText" with "readonly" set.
I also need a single line box for user input that supports simple editing (cursor,insert,home/end) and returns when "enter" is pressed but I am struggling to figure out how to do this in window9.
What is the best way to do this?? perhaps with an example?
Regards,
Dave
I need to create a rather simple terminal emulator within an existing window9 project.
I need a scrollable text pane which I can do nicely using "editText" with "readonly" set.
I also need a single line box for user input that supports simple editing (cursor,insert,home/end) and returns when "enter" is pressed but I am struggling to figure out how to do this in window9.
What is the best way to do this?? perhaps with an example?
Regards,
Dave