ProGUI V1.38 UI Library (Small Bug Fix)

Developed or developing a new product in PureBasic? Tell the world about it.
real
User
User
Posts: 49
Joined: Fri Oct 08, 2004 5:17 am

Re: ProGUI V1.12! Professional Graphical User Interface Library

Post by real »

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
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: ProGUI V1.12! Professional Graphical User Interface Library

Post by PrincieD »

Hi Real!
Is there any chance to get something like the ImageButtonEx with additional text in a future release of ProGUI?
Yes :) 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.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: ProGUI V1.12! Professional Graphical User Interface Library

Post by Rook Zimbabwe »

Cannot wait again! :mrgreen:
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: ProGUI V1.12! Professional Graphical User Interface Library

Post by Rook Zimbabwe »

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???
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: ProGUI V1.12! Professional Graphical User Interface Library

Post by PrincieD »

Hi Rook!
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???
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!
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.12! Professional Graphical User Interface Library

Post by PrincieD »

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.
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.12! Professional Graphical User Interface Library

Post by PrincieD »

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.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
mrjiles
Enthusiast
Enthusiast
Posts: 238
Joined: Fri Aug 18, 2006 7:21 pm
Location: IL

Re: ProGUI V1.12! Professional Graphical User Interface Libr

Post by mrjiles »

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
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: ProGUI V1.12! Professional Graphical User Interface Libr

Post by PrincieD »

Hi Corey,
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
Have you checked that "Icon_Start" is not null after loadimage?

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
mrjiles
Enthusiast
Enthusiast
Posts: 238
Joined: Fri Aug 18, 2006 7:21 pm
Location: IL

Re: ProGUI V1.12! Professional Graphical User Interface Libr

Post by mrjiles »

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

Re: ProGUI V1.12! Professional Graphical User Interface Libr

Post by Rook Zimbabwe »

Awaiting the skinnable button (non toolbar) with baited breath! 8)
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: ProGUI V1.12! Professional Graphical User Interface Libr

Post by PrincieD »

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.
I'll take a look and get back to you on it tomorrow Corey.
Awaiting the skinnable button (non toolbar) with baited breath!
lol it's coming soon Rook :) I'm currently working on adding scrolling support to panelExPages with autoscroll which is almost complete now :) tooltip escape code support will also be added to the TextControlEx amongst other odds and ends!

Cheers!

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.12! Professional Graphical User Interface Libr

Post by PrincieD »

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
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.
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
mrjiles
Enthusiast
Enthusiast
Posts: 238
Joined: Fri Aug 18, 2006 7:21 pm
Location: IL

Re: ProGUI V1.12! Professional Graphical User Interface Libr

Post by mrjiles »

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:

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.
PrincieD
Addict
Addict
Posts: 858
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: ProGUI V1.12! Professional Graphical User Interface Libr

Post by PrincieD »

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!
Hmm that is very strange, i'll make sure it's fixed in the next release though!
Also, thanks for the PNG to ICO tip.
No worries :)

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