ProGUI V1.38 UI Library (Small Bug Fix)
Re: ProGUI V1.12! Professional Graphical User Interface Library
Is there any chance to get something like the ImageButtonEx with additional text in a future release of ProGUI?
Windows 7 x64, PureBasic 4.31 & 4.40b4 x86
Re: ProGUI V1.12! Professional Graphical User Interface Library
Hi Real!
I have a skin-able image button control planned along with skin-able tab control which will work similar to the PanelEx borders.
Cheers!
Chris.
YesIs there any chance to get something like the ImageButtonEx with additional text in a future release of ProGUI?

Cheers!
Chris.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
Re: ProGUI V1.12! Professional Graphical User Interface Library
Cannot wait again! 

- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
Re: ProGUI V1.12! Professional Graphical User Interface Library
demos are not showing well in PB 4.4... I suspect it is the drawing library... trying in 4.3
OK they look black UNTIL I resize the window... This may be because of number of windows open on my desktop...
Now 4.4 won't work though
tells me line 420 of the include file is SAME as external command???
OK they look black UNTIL I resize the window... This may be because of number of windows open on my desktop...
Now 4.4 won't work though
tells me line 420 of the include file is SAME as external command???
Re: ProGUI V1.12! Professional Graphical User Interface Library
Hi Rook!
Sounds like you're trying to compile the examples with the ProGUI include file un-commented out with the userlibrary file copied into the purebasic user library's folder? also make sure "xp-skins" is enabled in the compiler options - otherwise your exe will be compiled with an out-dated common controlls dll file which doesn't support alpha or any XP above effects!demos are not showing well in PB 4.4... I suspect it is the drawing library... trying in 4.3
OK they look black UNTIL I resize the window... This may be because of number of windows open on my desktop...
Now 4.4 won't work though
tells me line 420 of the include file is SAME as external command???
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
Re: ProGUI V1.12! Professional Graphical User Interface Library
Hi guys! please check out the new site for ProGUI : http://www.progui.co.uk
It includes a nice online help section which should come in handy
any feedback welcome 
Cheers!
Chris.
It includes a nice online help section which should come in handy


Cheers!
Chris.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
Re: ProGUI V1.12! Professional Graphical User Interface Library
How do! 
I'm thinking of adding a "software in devlopment/finished using ProGUI" links page to the ProGUI site. It would be cool to see whats being made using ProGUI
and it would increases traffic to your sites and mine (provided you add a link to ProGUI on your sites). Would anyone be interested or like to share their thoughts?
Cheers!
Chris.

I'm thinking of adding a "software in devlopment/finished using ProGUI" links page to the ProGUI site. It would be cool to see whats being made using ProGUI

Cheers!
Chris.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
Re: ProGUI V1.12! Professional Graphical User Interface Libr
Ok, I'm having trouble with adding a toolbar icon. Apparently I'm missing something. Here's how I'm attempting it:
This works on a menu though. Also I noticed that if you use #PB_Any with the load image, it doesn't work. What am I missing?
Edit: This also appears to not work with PNG files. Is this correct?
Thanks,
Corey
Code: Select all
Icon_Start = LoadImage(#Icon_Start, "Play.ico")
ToolBarImageButtonEx(#Tbb_Run, "Run", Icon_Start, 0, 0, 0)
This works on a menu though. Also I noticed that if you use #PB_Any with the load image, it doesn't work. What am I missing?
Edit: This also appears to not work with PNG files. Is this correct?
Thanks,
Corey
Re: ProGUI V1.12! Professional Graphical User Interface Libr
Hi Corey,
When using #PB_Any with loadimage you need an ImageID() command, all ProGUI commands manipulate image data using the raw Windows handle - this is for better compatability with the Windows API. Changing "ToolBarImageButtonEx(#Tbb_Run, "Run", Icon_Start, 0, 0, 0)" to "ToolBarImageButtonEx(#Tbb_Run, "Run", ImageID(Icon_Start), 0, 0, 0)" should work fine
I'll look into the PNG's not working with ToolBarEx bug too!
Hope that helps
Chris.
Have you checked that "Icon_Start" is not null after loadimage?mrjiles wrote:Ok, I'm having trouble with adding a toolbar icon. Apparently I'm missing something. Here's how I'm attempting it:
Code: Select all
Icon_Start = LoadImage(#Icon_Start, "Play.ico") ToolBarImageButtonEx(#Tbb_Run, "Run", Icon_Start, 0, 0, 0)
This works on a menu though. Also I noticed that if you use #PB_Any with the load image, it doesn't work. What am I missing?
Edit: This also appears to not work with PNG files. Is this correct?
Thanks,
Corey
When using #PB_Any with loadimage you need an ImageID() command, all ProGUI commands manipulate image data using the raw Windows handle - this is for better compatability with the Windows API. Changing "ToolBarImageButtonEx(#Tbb_Run, "Run", Icon_Start, 0, 0, 0)" to "ToolBarImageButtonEx(#Tbb_Run, "Run", ImageID(Icon_Start), 0, 0, 0)" should work fine

I'll look into the PNG's not working with ToolBarEx bug too!
Hope that helps

Chris.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
Re: ProGUI V1.12! Professional Graphical User Interface Libr
Weird stuff, but here's an example. Here's a complete example of mine. Be sure to point it at your own PNG file though.
Code: Select all
Image_For_Button.s = "C:\Play.png"
StartProGUI("", 0, 0, 0, 0, 0, 0)
UsePNGImageDecoder()
#Window = 1
#Toolbar = 2
#Button = 3
ButtonImage = LoadImage(#PB_Any, Image_For_Button.s)
OpenWindow(#Window, 0, 0, 500, 300, "Test")
CreateToolBarEx(#Toolbar, WindowID(#Window), 32, 32, 0)
ToolBarImageButtonEx(#Button, "Button", ImageID(ButtonImage), ImageID(ButtonImage), ImageID(ButtonImage), 0)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
CloseWindow(#Window)
End
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
Re: ProGUI V1.12! Professional Graphical User Interface Libr
Awaiting the skinnable button (non toolbar) with baited breath! 

Re: ProGUI V1.12! Professional Graphical User Interface Libr
I'll take a look and get back to you on it tomorrow Corey.Weird stuff, but here's an example. Here's a complete example of mine. Be sure to point it at your own PNG file though.
lol it's coming soon RookAwaiting the skinnable button (non toolbar) with baited breath!


Cheers!
Chris.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
Re: ProGUI V1.12! Professional Graphical User Interface Libr
Corey, I've found the bug for PNG images in ItemEx and the ToolbarEx (i must confess that i've always used Icons when testing these controls) - this will be fixed in the next release which should be ready soon.mrjiles wrote:Weird stuff, but here's an example. Here's a complete example of mine. Be sure to point it at your own PNG file though.
Code: Select all
Image_For_Button.s = "C:\Play.png" StartProGUI("", 0, 0, 0, 0, 0, 0) UsePNGImageDecoder() #Window = 1 #Toolbar = 2 #Button = 3 ButtonImage = LoadImage(#PB_Any, Image_For_Button.s) OpenWindow(#Window, 0, 0, 500, 300, "Test") CreateToolBarEx(#Toolbar, WindowID(#Window), 32, 32, 0) ToolBarImageButtonEx(#Button, "Button", ImageID(ButtonImage), ImageID(ButtonImage), ImageID(ButtonImage), 0) Repeat Until WaitWindowEvent() = #PB_Event_CloseWindow CloseWindow(#Window) End
In the meantime if you convert the PNG to a 32bit Icon it should work fine

Sorry for the inconvenience mate, i'll try and work as quickly as i can on getting the new release ready!

Cheers!
Chris.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
Re: ProGUI V1.12! Professional Graphical User Interface Libr
PrincieD - toolbar problem solved. This is actually funny. Not sure if this is "bug" potential, but sure drove me crazy!!
When I was working your library in, I created basic text toolbar buttons (ToolBarButtonEx) for placeholders. Now I'm adding the icons and am replacing them with ToolBarImageButtonEx..... BUT, if there is a text button BEFORE an image button, the image will not show up. Put the image button before the text button and it works!
Won't work:
Will work:
Also, thanks for the PNG to ICO tip.
When I was working your library in, I created basic text toolbar buttons (ToolBarButtonEx) for placeholders. Now I'm adding the icons and am replacing them with ToolBarImageButtonEx..... BUT, if there is a text button BEFORE an image button, the image will not show up. Put the image button before the text button and it works!
Won't work:
Code: Select all
ToolBarButtonEx(1, "Button 1", 0)
ToolBarImageButtonEx(2, "Button 2", ImageID(SOMEIMAGE), 0, 0, 0)
Will work:
Code: Select all
ToolBarImageButtonEx(2, "Button 2", ImageID(SOMEIMAGE), 0, 0, 0)
ToolBarButtonEx(1, "Button 1", 0)
Also, thanks for the PNG to ICO tip.
Re: ProGUI V1.12! Professional Graphical User Interface Libr
Hmm that is very strange, i'll make sure it's fixed in the next release though!mrjiles wrote:PrincieD - toolbar problem solved. This is actually funny. Not sure if this is "bug" potential, but sure drove me crazy!!
When I was working your library in, I created basic text toolbar buttons (ToolBarButtonEx) for placeholders. Now I'm adding the icons and am replacing them with ToolBarImageButtonEx..... BUT, if there is a text button BEFORE an image button, the image will not show up. Put the image button before the text button and it works!
No worriesAlso, thanks for the PNG to ICO tip.

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