DirectUI hwnd 1.1

Developed or developing a new product in PureBasic? Tell the world about it.
localmotion34
Enthusiast
Enthusiast
Posts: 665
Joined: Fri Sep 12, 2003 10:40 pm
Location: Tallahassee, Florida

DirectUI hwnd 1.1

Post by localmotion34 »

ok, thanks to Num3, with a little help on the "gradient" look, i have updated the code to include:

#DUI_classic look. grey gradient, square DUI hwnds

#dui_xpstyle look. Blue solid with rounded top corners

***you are able to switch displays at ANY time using changeDUIdisplay()****

so, the WHOLE DUI pane and its child DUIhwnds have either one or the other look, so no mixing and matching in panes themselves. MS doesnt allow this in win XP itself, so ive decided to stick with what is easier. either you have the classic look for a pane, or the XP look.

as for allowing individual color in each subwindow, i tried it and the time it to process each #wm_colorstatic message, get the #gwl_userdata for EACH textgadget, and draw individually really bogged down the code.

so, the links are the only thing you can choose the color youd like for.

consider this the final release for this gadget, unless someone posts some bugs found. ill fix bugs but i dont plan on adding more functionality for a bit. ive got other gadgets i want to get done.

this version is very stable as ive been able to test, so use it however you like. you are free to modify the source and use it or add to it, so long as you give me some credit somewhere.


http://www.penguinbyte.com/apps/pbwebst ... uiHwnd.zip

Code: Select all

!.WHILE status != dwPassedOut
! Invoke AllocateDrink, dwBeerAmount
!MOV Mug, Beer
!Invoke Drink, Mug, dwBeerAmount
!.endw
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Post by Henrik »

He.he Great :D
I will be probably using this lib alot, the size is okay.
Don't worry about support for other gadgets - " for now "- that is... :twisted:

It appears to be working smooth and nicely, i.e. no bugs'n stuff yet. 8)

Best regrads
Henrik.
xgp
Enthusiast
Enthusiast
Posts: 128
Joined: Mon Jun 13, 2005 6:03 pm

Post by xgp »

Hi!
I really enjoy this lib and it actually taught me some things in pb.
Maybe my post should be deleted but, i was searching for one thing and found this, it's relationated with this lib. It has source-code for it. Just see with your own eyes.
I just thought that some people would like to know about this, if they already don't know it. :wink:

http://www.codeproject.com/cs/miscctrl/XPTaskBar.asp
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

:) Thanks localmotion but i think that if you go, go all the way at least an icon display would be great.

but again great job! thanks.
localmotion34
Enthusiast
Enthusiast
Posts: 665
Joined: Fri Sep 12, 2003 10:40 pm
Location: Tallahassee, Florida

Post by localmotion34 »

OK. Version 1.2, and YES it support ICONS or 16x16 images.

NOTE: you --the coder, MUST resize them image ***yourself*** becore adding the DUI link, otherwise the static control housing the image will automatically resize to the image's original size. i did this so that the command can accept image HANDLES, and not numbers. that way, you can use images manipulated with API functions or bitblt_() commands.

if you are gonna use jpegs, you yourself have to use the jpeg decoder. again, size was a concern for this LIB. test it out, and report any bugs. but this one should work really well, and now you can use icons or whatever you want. happy writing.

http://www.penguinbyte.com/apps/pbwebst ... nd_1.2.zip

Code: Select all

!.WHILE status != dwPassedOut
! Invoke AllocateDrink, dwBeerAmount
!MOV Mug, Beer
!Invoke Drink, Mug, dwBeerAmount
!.endw
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

:shock: Sweeeeeeeeet, thanks! be sure i will check it out!

if i will find any bugs (hopefully not) i will post.

thanks again.
Post Reply