Source language: Translate to:

Draw pictures on the buttons

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

Moderator: Neosoft Support

Draw pictures on the buttons

Postby mishem » Mon Feb 24, 2014 3:35 am

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.
mishem
 
Posts: 574
Joined: Mon Oct 08, 2012 1:51 pm

Re: Draw pictures on the buttons

Postby CN_Iceman » Tue Feb 25, 2014 3:38 am

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
CN_Iceman
 
Posts: 297
Joined: Tue Mar 01, 2011 11:04 am
Location: España

Re: Draw pictures on the buttons

Postby HPW » Tue Feb 25, 2014 3:42 am

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
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: Draw pictures on the buttons

Postby CN_Iceman » Tue Feb 25, 2014 4:08 am

Now I understand.
Greetings/Saludos, Jose.
www.icemansoft.es
User avatar
CN_Iceman
 
Posts: 297
Joined: Tue Mar 01, 2011 11:04 am
Location: España

Re: Draw pictures on the buttons

Postby mishem » Tue Feb 25, 2014 9:17 am

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. :(
mishem
 
Posts: 574
Joined: Mon Oct 08, 2012 1:51 pm

Re: Draw pictures on the buttons

Postby HPW » Tue Feb 25, 2014 11:15 am

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
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: Draw pictures on the buttons

Postby mishem » Tue Feb 25, 2014 12:03 pm

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: 574
Joined: Mon Oct 08, 2012 1:51 pm

Re: Draw pictures on the buttons

Postby mishem » Wed Feb 26, 2014 9:55 am

Did function and design to make it easier to select colors.
Description and you can download it here.
mishem
 
Posts: 574
Joined: Mon Oct 08, 2012 1:51 pm


Return to NeoBook Knowledgebase

Who is online

Users browsing this forum: No registered users and 1 guest

cron