Page 11 of 71

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

Posted: Thu Nov 26, 2009 12:05 am
by real
Is there any chance to get something like the ImageButtonEx with additional text in a future release of ProGUI?

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

Posted: Thu Nov 26, 2009 1:19 am
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.

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

Posted: Wed Jan 20, 2010 8:41 pm
by Rook Zimbabwe
Cannot wait again! :mrgreen:

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

Posted: Wed Jan 20, 2010 8:56 pm
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???

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

Posted: Thu Jan 21, 2010 3:32 am
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!

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

Posted: Fri Mar 05, 2010 7:12 pm
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.

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

Posted: Mon Mar 08, 2010 6:35 pm
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.

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

Posted: Tue Apr 06, 2010 8:29 pm
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

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

Posted: Tue Apr 06, 2010 9:38 pm
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.

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

Posted: Tue Apr 06, 2010 9:57 pm
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

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

Posted: Tue Apr 06, 2010 10:49 pm
by Rook Zimbabwe
Awaiting the skinnable button (non toolbar) with baited breath! 8)

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

Posted: Wed Apr 07, 2010 12:53 am
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.

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

Posted: Wed Apr 07, 2010 8:38 pm
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.

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

Posted: Thu Apr 08, 2010 4:36 pm
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.

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

Posted: Thu Apr 08, 2010 5:17 pm
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.