ProGUI V1.38 UI Library (Small Bug Fix)

Developed or developing a new product in PureBasic? Tell the world about it.
AndyMK
Enthusiast
Enthusiast
Posts: 582
Joined: Wed Jul 12, 2006 4:38 pm
Location: UK

Re: ProGUI V1.18! User Interface Library (New PanelEx Scroll

Post by AndyMK »

PrincieD wrote:
AndyMK wrote:It is possible to position a toolbar anywhere in the window?
Yes I think if you pass the following common control style constant to the style parameter of CreateToolBarEx() the toolbar should then be positional with movewindow_():

Code: Select all

&~#CCS_TOP
Also take a look at at the other common control styles at http://msdn.microsoft.com/en-us/library ... S.85).aspx

Chris.
Do you have an example i could look at? i tried this

Code: Select all

toolbar2 = CreateToolBarEx(#TOOLBAR_1, WindowID(#Window_0), 32, 32, #TBSTYLE_HIDECLIPPEDBUTTONS|#UISTYLE_OFFICE2007|#CCS_TOP)
 MoveWindow_(toolbar2,0,150,720,50,1)
The old toolbar is overlapping the new one, i think :S
Poshu
Enthusiast
Enthusiast
Posts: 459
Joined: Tue Jan 25, 2005 7:01 pm
Location: Canada

Re: ProGUI V1.18! User Interface Library (New PanelEx Scroll

Post by Poshu »

PrincieD wrote: If you go onto the compiler settings in PureBasic for your project and click on the resources tab you can add files to your compiled exe. In our case the file could be an icon with lots of different dimensioned versions of itself inside the .ico file (including a 16x16 pixel version). The above line would then load the requested file in the correct dimension (16, 16) from the .ico file stored in the compiled exe (it's resource). The benefits are all the files needed for the app are included into the exe.

Hope that makes it a bit clearer!

Chris.
That's pretty much what I understood, but I still can't get it to work (probably a name issue) still, I usually prefer to includebinary (cause I've developed some tools to speed up the process). I don't know why, but whenever I add an *.ico file in my exe's resources, all of my png (included with includebinary) used in proGUI's menu stop being transparent °_°; Is there anyway to load an ico with the loadimage_() api function with includebinary?
AndyMK
Enthusiast
Enthusiast
Posts: 582
Joined: Wed Jul 12, 2006 4:38 pm
Location: UK

Re: ProGUI V1.18! User Interface Library (New PanelEx Scroll

Post by AndyMK »

Is there a way to change the font for the buttons in the toolbar?
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: ProGUI V1.18! User Interface Library (New PanelEx Scroll

Post by PrincieD »

AndyMK wrote: Do you have an example i could look at? i tried this

Code: Select all

toolbar2 = CreateToolBarEx(#TOOLBAR_1, WindowID(#Window_0), 32, 32, #TBSTYLE_HIDECLIPPEDBUTTONS|#UISTYLE_OFFICE2007|#CCS_TOP)
 MoveWindow_(toolbar2,0,150,720,50,1)
The old toolbar is overlapping the new one, i think :S
Sorry Andy :oops: , I gave you the wrong constant, try this one: #CCS_NOPARENTALIGN :)
Is there a way to change the font for the buttons in the toolbar?
Not yet unfortunately, that was one of the things on my mind that needed doing to the ToolBarEx, I'll add support for it in the next release though :)

Chris.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: ProGUI V1.18! User Interface Library (New PanelEx Scroll

Post by PrincieD »

Poshu wrote: That's pretty much what I understood, but I still can't get it to work (probably a name issue) still, I usually prefer to includebinary (cause I've developed some tools to speed up the process). I don't know why, but whenever I add an *.ico file in my exe's resources, all of my png (included with includebinary) used in proGUI's menu stop being transparent °_°; Is there anyway to load an ico with the loadimage_() api function with includebinary?
Hey man, sorry I don't know of a way to use loadimage_() with includebinary :/ with the resources though make sure you don't use any spaces with the resource name as i think the loader uses a simple hash.

Chris.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: ProGUI V1.18! User Interface Library (New PanelEx Scroll

Post by PrincieD »

Hey guys,

I've almost finished writing a huge build script that automates all the source modification, compiling, archiving, site updating and uploading for new ProGUI releases.
Before I started writing the script it was starting to take too long getting new releases ready (nearly 2 hours!) so I thought it was a good idea to get it done now before things start to get really complicated (and mistakes made!). When it's done though I should be able to get fixes and new releases out a lot more quickly and effortlessly :)

Chris.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: ProGUI V1.18! User Interface Library (New PanelEx Scroll

Post by DoubleDutch »

I do that now for my programs, I also put the changes in a list at the bottom of the source code. This list is parsed and uploaded to a database, so users can see what changes from one version to another. After the script has run I delete the list ready for the next update.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: ProGUI V1.18! User Interface Library (New PanelEx Scroll

Post by PrincieD »

DoubleDutch wrote:I do that now for my programs, I also put the changes in a list at the bottom of the source code. This list is parsed and uploaded to a database, so users can see what changes from one version to another. After the script has run I delete the list ready for the next update.
Thats a good idea! :)
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: ProGUI V1.18! User Interface Library (New PanelEx Scroll

Post by PrincieD »

I've improved/updated the site, now has automatic multi-language support :)

http://www.progui.co.uk

Chris.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
User avatar
X0r
Enthusiast
Enthusiast
Posts: 138
Joined: Tue May 01, 2007 3:49 am
Location: Germany

Re: ProGUI V1.18! User Interface Library (New PanelEx Scroll

Post by X0r »

Hi Chris,
I have been using ProGUI in a RCon tool I developed for a Armed Assault 2 Community (without being familiar with this game itself since it was a contract): http://dev-heaven.net/projects/rcon/files
As the protocol was not public this tool proved to be the first stable RCon GUI. However some administrators report that our tool sometimes crashes at random when starting it (process starts and seems to run but there does not appear any GUI). And today it also crashed on my system (Windows 7 32 bit) when I was about to release a new version. I figured out that the problem can be traced to ProGUI itself since the tool works great when replacing all commands of your lib.
In former times I had exactly the same problem in another application. Is there anything one should pay attention to when using your lib in unicode mode?

Thanks! Hope I will be able to use your great lib again!
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: ProGUI V1.18! User Interface Library (New PanelEx Scroll

Post by PrincieD »

Forge wrote:Hi Chris,
I have been using ProGUI in a RCon tool I developed for a Armed Assault 2 Community (without being familiar with this game itself since it was a contract): http://dev-heaven.net/projects/rcon/files
As the protocol was not public this tool proved to be the first stable RCon GUI. However some administrators report that our tool sometimes crashes at random when starting it (process starts and seems to run but there does not appear any GUI). And today it also crashed on my system (Windows 7 32 bit) when I was about to release a new version. I figured out that the problem can be traced to ProGUI itself since the tool works great when replacing all commands of your lib.
In former times I had exactly the same problem in another application. Is there anything one should pay attention to when using your lib in unicode mode?

Thanks! Hope I will be able to use your great lib again!
Hey Soner!

I checked out "ArmA 2 RCon GUI 1.5" it looks like your using a fairly old version of ProGUI, can you try re-compiling with the latest version of ProGUI (V1.18) and let me know if the problem still occurs. Also, a good idea when theres a strange crash in ProGUI is to include the ProGUI.pb source code directly into your code with the following constants set to:

Code: Select all

#LIBRARY = 1  ; 1 = compile for PureBasic Library
#DISABLEPROTECTION = 1  ; 1 = disable
#DEBUGENABLED = -1 ; -1 = enable debug
use the following at the top of your code:

Code: Select all

IncludeFile "ProGUI.pb"
ProGUI_Init()
StartProGUI("", 0, 0, 0, 0, 0, 0, 0)
and before your program terminates add "ProGUI_End()". Doing this will allow you to see in the ProGUI source code where the crash occurs and then you can let me know what line number and I can fix it then :)

Hope that helps mate! (and glad you're still loving the lib! :))

Chris.

P.S I'm working on a new skin subsystem and skinable buttonex at the moment (not much left to do!) :)
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: ProGUI V1.18! User Interface Library (New PanelEx Scroll

Post by DoubleDutch »

P.S I'm working on a new skin subsystem and skinable buttonex at the moment (not much left to do!)
:)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: ProGUI V1.18! User Interface Library (New PanelEx Scroll

Post by PrincieD »

DoubleDutch wrote:
P.S I'm working on a new skin subsystem and skinable buttonex at the moment (not much left to do!)
:)
I think you're gunna like the new API :D
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
Peyman
Enthusiast
Enthusiast
Posts: 203
Joined: Mon Dec 24, 2007 4:15 pm
Location: Iran

New Version!

Post by Peyman »

before PrincieD that announce new version i must say new version released 1.19 8) but no new help file, i download it and see

Code: Select all

Debug ProGUIVersion() ; 1.19000005722046
Sorry for my bad english.
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: New Version!

Post by PrincieD »

Peyman wrote:before PrincieD that announce new version i must say new version released 1.19 8) but no new help file, i download it and see

Code: Select all

Debug ProGUIVersion() ; 1.19000005722046
hehe whoops! technically thats correct, I must have forgot to put the version number back to 1.18 while I was testing out the new build script (which is complete :)) but it is correct though, it's a later build than 1.18 and will have a few new bug fixes in there.

Chris.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
Locked