Draw pictures on the buttons

NeoBook tips, tricks, code samples and more...

Moderator: Neosoft Support

Locked
mishem
Posts: 581
Joined: Mon Oct 08, 2012 1:51 pm

Draw pictures on the buttons

Post by mishem »

Image

Plugins hpwImage, ksRectGradient, ksFunctions.

Drawings are created at startup and resize the window.
Thus buttons constantly occupy the entire width of the application.

Download a sample.
User avatar
CN_Iceman
Posts: 300
Joined: Tue Mar 01, 2011 11:04 am
Location: España
Contact:

Re: Draw pictures on the buttons

Post by CN_Iceman »

Nice buttons mishem.

There are problems with some hpwImageDrawLine commands. This command requires 9 parameters, and in some cases there is only 8. You must add "" in those lines.

For example:
hpwImageDrawLine "Image1" "0" "0" "[Image_Width]*3" "0" "$00695F4B" "" "psSolid" ""
hpwImageDrawLine "Image1" "0" "0" "[Image_Width]*3" "0" "$00695F4B" "" "psSolid"

Another way is doubleclick on each line and accept. The 9th parameter will be there automatically.

Anyway, thanks for the example, I like it very much.
Greetings/Saludos, Jose.
www.icemansoft.es
User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Re: Draw pictures on the buttons

Post by HPW »

He may use an older version of hpwImage.
When I remember right there was a change for hpwImageDrawLine which adds another one.

Regards
Hans-Peter
User avatar
CN_Iceman
Posts: 300
Joined: Tue Mar 01, 2011 11:04 am
Location: España
Contact:

Re: Draw pictures on the buttons

Post by CN_Iceman »

Now I understand.
Greetings/Saludos, Jose.
www.icemansoft.es
mishem
Posts: 581
Joined: Mon Oct 08, 2012 1:51 pm

Re: Draw pictures on the buttons

Post by mishem »

He may use an older version of hpwImage.
Absolutely. Missed the moment when the update came out.
I downloaded the new version added a good point.

Hans, do not help to understand?
Wanted to add the ability to make the shadow below, but could not understand how it's done. :(

A small example of these buttons?

In the example of the plugin like all just starting to do the buttons do not work. :(
User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Re: Draw pictures on the buttons

Post by HPW »

I thought the command wizard should explain the params of hpwImageDrawShadow.
You may also create a test Pub with the command and textentrys for each param.
Then you can play with the param and see how result Change.
Hans-Peter
mishem
Posts: 581
Joined: Mon Oct 08, 2012 1:51 pm

Re: Draw pictures on the buttons

Post by mishem »

I have created. Tried. I can not understand the type of shadow and Hole DarkHole. Google does not understandable translation.
Because of a misunderstanding I can not finish the translation plugin. Several teams can not understand.

Oh well. I'm probably too many things at once do. I just need to focus on than any one. :)

Did not think the opportunity to add to the plugin gradient? Drawing a circle, a triangle?
mishem
Posts: 581
Joined: Mon Oct 08, 2012 1:51 pm

Re: Draw pictures on the buttons

Post by mishem »

Did function and design to make it easier to select colors.
Description and you can download it here.
Locked