sgx - includefile for screen gagdets

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Post by #NULL »

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.
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: sgx - includefile for screen gagdets

Post by #NULL »

i adapted the code to PB4.41 and fixed a perfomance issue with gridded tables.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: sgx - includefile for screen gagdets

Post by Kaeru Gaman »

wow, this must be frustrating. condolence.
finishing the adaption one day before the release of the next beta...
oh... and have a nice day.
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: sgx - includefile for screen gagdets

Post by #NULL »

:P 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.
X
Enthusiast
Enthusiast
Posts: 311
Joined: Tue Apr 04, 2006 6:27 am

Re: sgx - includefile for screen gagdets

Post by X »

Hello, any update on this project yet?
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: sgx - includefile for screen gagdets

Post by #NULL »

if you have an idea what to update i will see what i can do. 8)
User avatar
Comtois
Addict
Addict
Posts: 1429
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Re: sgx - includefile for screen gagdets

Post by Comtois »

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/
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4326
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: sgx - includefile for screen gagdets

Post by Rook Zimbabwe »

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
---------------------------
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! 8) STILL A FANTASTIC piece of work all around!
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
PMV
Enthusiast
Enthusiast
Posts: 727
Joined: Sat Feb 24, 2007 3:15 pm
Location: Germany

Re: sgx - includefile for screen gagdets

Post by PMV »

doesn't come it as include?
Isn't it open source?
Compile it yourself :wink:
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: sgx - includefile for screen gagdets

Post by #NULL »

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.
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: sgx - includefile for screen gagdets

Post by #NULL »

updated (after 8 years :P )

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
DontTalkToMe
Enthusiast
Enthusiast
Posts: 334
Joined: Mon Feb 04, 2013 5:28 pm

Re: sgx - includefile for screen gagdets

Post by DontTalkToMe »

A lot of work went in this. Congrats. :shock:
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.
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: sgx - includefile for screen gagdets

Post by #NULL »

you did it in reverse. 'testing' is the last directory you should look into, if at all :lol:
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?
DontTalkToMe
Enthusiast
Enthusiast
Posts: 334
Joined: Mon Feb 04, 2013 5:28 pm

Re: sgx - includefile for screen gagdets

Post by DontTalkToMe »

#NULL wrote:you did it in reverse. 'testing' is the last directory you should look into, if at all :lol:
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 :)

ok then !

#NULL wrote: the other thing i can't reproduce. are you using a 32bit system?
Nope but I tried it with the 32 bit compiler. It looks like in sgx.pbi this

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          
should be changed to

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
btw it seem the new 5.5 version and the new commands added had nothing to do with it, the symbols are still there.
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: sgx - includefile for screen gagdets

Post by #NULL »

ah, ok thanks. i fixed it (updated)
Post Reply