changes.txt wrote:- sgxEdit() fixed (typing didn't work correctly)
- sgxSetSate() fixed for scrollbar and trackbar.
- sgxText() got new parameter for text aligment flags: #sgxAlignTextLeft, #sgxAlignTextRight, #sgxAlignTextCenter
- sgxText() got new parameter for automatic word wrap.
sgx - includefile for screen gagdets
Re: sgx - includefile for screen gagdets
i adapted the code to PB4.41 and fixed a perfomance issue with gridded tables.
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Re: sgx - includefile for screen gagdets
wow, this must be frustrating. condolence.
finishing the adaption one day before the release of the next beta...
finishing the adaption one day before the release of the next beta...
oh... and have a nice day.
Re: sgx - includefile for screen gagdets
not so much, in that case i'm lucky. the adaption was just to make the data types of some Declares matching the procedure definitions (it didn't bother previous pb versions). what took some time to fix was something that seemed to be there before anyway but i just didn't recognize it yet for some reason. anyway, everything seems to run fine with beta 2 and i guess there will be also sometime left for the new pb final.
Re: sgx - includefile for screen gagdets
Hello, any update on this project yet?
Re: sgx - includefile for screen gagdets
if you have an idea what to update i will see what i can do.
Re: sgx - includefile for screen gagdets
I get this message with PB 4.51 x64
---------------------------
PureBasic - Linker error
---------------------------
POLINK: error: Unresolved external symbol '_PB_Screen_Height'.
POLINK: error: Unresolved external symbol '_PB_Screen_Width'.
POLINK: fatal error: 2 unresolved external(s).
---------------------------
OK
---------------------------
Please correct my english
http://purebasic.developpez.com/
http://purebasic.developpez.com/
- Rook Zimbabwe
- Addict
- Posts: 4326
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
Re: sgx - includefile for screen gagdets
They changed those in 4.5+ I am thinking... I use 4.41 for this so far... will upgrade when/if new unit comes out! STILL A FANTASTIC piece of work all around!Comtois wrote:I get this message with PB 4.51 x64
---------------------------
PureBasic - Linker error
---------------------------
POLINK: error: Unresolved external symbol '_PB_Screen_Height'.
POLINK: error: Unresolved external symbol '_PB_Screen_Width'.
POLINK: fatal error: 2 unresolved external(s).
---------------------------
OK
---------------------------
Re: sgx - includefile for screen gagdets
doesn't come it as include?
Isn't it open source?
Compile it yourself
Isn't it open source?
Compile it yourself
Re: sgx - includefile for screen gagdets
for those particular functions see here:
http://www.forums.purebasic.com/english ... 2c#p328936
but in general for a 64bit version of sgx you're on your own for now, sorry, because i don't have any 64bit windows.
http://www.forums.purebasic.com/english ... 2c#p328936
but in general for a 64bit version of sgx you're on your own for now, sorry, because i don't have any 64bit windows.
Re: sgx - includefile for screen gagdets
updated (after 8 years )
the major changes are:
- updated for PB version 5.42 / 5.50b1
- updated for 64bit
- full alpha channel support
- improved window animations
- documentation improved
- some new features
- some bugs fixed (and probably some introduced)
i did not realy test the 32bit version yet.
maybe you could report if the mousewheel (sgxEdit, sgxScrollbar/sgxTrackbar) is working for you in a windowed screen?
also i never asked if the qwerty keyboardlayout is actually working (was created blind). qwerty is now the default layout, instead of qwertz. so if you from germany you might want to change the layout (see doc for sgxSetKeyboardLayout()). also i have no clue about a french keyboard layout, i would need help if some needs this. if you want to modify a layout or add one, search for 'Global Dim sgx_keyLay' after which two layouts are defined.
the major changes are:
- updated for PB version 5.42 / 5.50b1
- updated for 64bit
- full alpha channel support
- improved window animations
- documentation improved
- some new features
- some bugs fixed (and probably some introduced)
i did not realy test the 32bit version yet.
maybe you could report if the mousewheel (sgxEdit, sgxScrollbar/sgxTrackbar) is working for you in a windowed screen?
also i never asked if the qwerty keyboardlayout is actually working (was created blind). qwerty is now the default layout, instead of qwertz. so if you from germany you might want to change the layout (see doc for sgxSetKeyboardLayout()). also i have no clue about a french keyboard layout, i would need help if some needs this. if you want to modify a layout or add one, search for 'Global Dim sgx_keyLay' after which two layouts are defined.
changelog wrote: jun 10, 2016
- adapted code to 64bit/32bit
- full alpha channel support (also changed to png image files)
- added window states and configurable window animations and animations are timebased now.
- sgxPresentWin(), sgxMinimizeWin(), sgxRestoreWin(), sgxCloseWin()
- sgxSetWinAnimStyle(), sgxAnimTime
- compiletime reduced considerably (for compilations with debugger enabled)
- sgxArea() element type added
- sgxSetDisabled() added
- sgxResize() added
- sgxSetResizable() and sgxSetMinSize() added to manually resize elements via mouse
- sgxSetScrollMax() added to change the range of a scrollbar/trackbar
- buttons support multiline text now (always drawn centered)
- sgxText: added 2 modes for justified text alignment
- new event fields 'resized' and 'refreshed'
- the new 'passive' field can be set to make the element behave differently. usefull for background sprites.
- default for sgxSetKeyboardLayout() (used by sgxEdit) is now qwerty
- some changes to visuals (i.e. toggle buttons now have a reversed brightning as opposed to normal buttons, and no more that simple offset wobbling on pushed+hover)
- avoiding redundant uses of CreateSprites on element redraw
- EACHSGX() renamed to sgxEach()
- sgxGetTopWindow() renamed to sgxGetElementAt()
- lefthold event is timebased now
- initial state for bars / toggle buttons / checkboxes can be specified on creation
- added part for checked checkboxes to the 'parts' image of designs
- sgxEdit: improved performance (especially for bigger text)
- sgxEdit: now scrollable by mousewheel and cursor can be positioned by mouseclick
- sgxEdit: capslock works now
- new demo and examples
- lots of documentation added, including many comments in the code
-
- Enthusiast
- Posts: 334
- Joined: Mon Feb 04, 2013 5:28 pm
Re: sgx - includefile for screen gagdets
A lot of work went in this. Congrats.
Pretty impressive. Sooner or later I'll have to do something similar (if I'm good enough which it's not certain), I'm interested in experiment with immediate mode GUIs. We'll see.
If you are interested some paths in the testing directory needs to be adjusted ( ../ for what I saw) and it doesn't work out of the box with 5.5 because probably the exported symbols for the warning and error commands have been replaced by the new commands.
Pretty impressive. Sooner or later I'll have to do something similar (if I'm good enough which it's not certain), I'm interested in experiment with immediate mode GUIs. We'll see.
If you are interested some paths in the testing directory needs to be adjusted ( ../ for what I saw) and it doesn't work out of the box with 5.5 because probably the exported symbols for the warning and error commands have been replaced by the new commands.
Re: sgx - includefile for screen gagdets
you did it in reverse. 'testing' is the last directory you should look into, if at all
the files in there only get updated when they are needed to test a specific case.
the other thing i can't reproduce. are you using a 32bit system?
the files in there only get updated when they are needed to test a specific case.
the other thing i can't reproduce. are you using a 32bit system?
-
- Enthusiast
- Posts: 334
- Joined: Mon Feb 04, 2013 5:28 pm
Re: sgx - includefile for screen gagdets
oh, I read it now in the readme, looking just at the folder names "testings" sounded more promising then "sglxDoc" to find some test/example program#NULL wrote:you did it in reverse. 'testing' is the last directory you should look into, if at all
ok then !
Nope but I tried it with the 32 bit compiler. It looks like in sgx.pbi this#NULL wrote: the other thing i can't reproduce. are you using a 32bit system?
Code: Select all
Import "Debugger.lib"
CompilerIf #PB_Compiler_Processor = #PB_Processor_x86
sgx_err(error.p-ascii) As "_PB_DEBUGGER_SendError"
CompilerElse
sgx_err(error.p-ascii) As "PB_DEBUGGER_SendError"
CompilerEndIf
EndImport
Code: Select all
Import "Debugger.lib"
CompilerIf #PB_Compiler_Processor = #PB_Processor_x86
sgx_err(error.p-ascii) As "_PB_DEBUGGER_SendError@4"
CompilerElse
sgx_err(error.p-ascii) As "PB_DEBUGGER_SendError"
CompilerEndIf
EndImport
Re: sgx - includefile for screen gagdets
ah, ok thanks. i fixed it (updated)