Source language: Translate to:

Image Plugin - Simple drawing pane

Questions about NeoBook PlugIns

Moderator: Neosoft Support

Postby Wrangler » Thu Dec 17, 2009 2:55 pm

Hi Hans,

Can you fix it so when you select a color, it returns a value neobook can use? Some work (white etc.) but some return something like $00C08080, which neobook can't display properly. Would be real handy if the plugin could convert this on the fly.

If not, could you tell me what format it is and how to convert it?
Wrangler
--------------
"You never know about a woman. Whether she'll laugh, cry or go for a gun." - Louis L'Amour

Windows 7 Ultimate SP1 64bit
16GB Ram
Asus GTX 950 OC Strix
Software made with NeoBook
http://highdesertsoftware.com
User avatar
Wrangler
 
Posts: 1505
Joined: Thu Mar 31, 2005 11:40 pm
Location: USA

Postby HPW » Wed Dec 30, 2009 4:02 am

Just upload a new hpwImage 2.40:

http://www.hpwsoft.de/anmeldung/html1/n ... book5.html

[hpwImageColorDialogOptions] can have the 2 option-flags cdFullOpen and cdPreventFullOpen.
[hpwImageColorDialogCustomColors] can/does contain a list of 16 custom-colors (ColorA .. .. .. ColorP).
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Tony Kroos » Sat Aug 13, 2011 2:13 am

"neobook actions to perform on popup hint event" doesn't work:

Code: Select all
hpwImageCreate "Rectangle1" ...
hpwImageLoadFromFile "Rectangle1" ...
hpwImageSetActions "Rectangle1" "" "" "" "" "" "" "AlertBox [#34][#34] [#34]popup hint event[#34]"
hpwImageSetHint "Rectangle1" "image hint" ""


there's no alertbox when hint appears...
and how "on popup display" event works?
Tony Kroos
 
Posts: 402
Joined: Thu Oct 15, 2009 3:43 pm

Postby HPW » Sat Aug 13, 2011 11:00 am

Hello,

You must first activate the popup:

Code: Select all
hpwImageActivatePopup "Rectangle13" ".....menu source....." "[PubDir]Pic0.bmp|[PubDir]Pic1.bmp|[PubDir]Pic2.bmp|[PubDir]Pic3.bmp|[PubDir]Pic4.bmp"


See sample pup page 4 the popup-button-action.
You can also define the action with the hpwImageCreate command.

The onpopupDisplay event is fired when the popup open first
The onpopupHint is fired when you move the cursor over an menu-item.
Then you might want to disply additional info in the statusbar etc.


Hans-Peter
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Tony Kroos » Tue Aug 16, 2011 5:38 am

Error in TextOutAngle Properties form -> font dialog box button:
" ist kein gultiger Integerwert
Tony Kroos
 
Posts: 402
Joined: Thu Oct 15, 2009 3:43 pm

Postby HPW » Tue Aug 16, 2011 6:57 am

Thanks for the report.
You have to make sure that an integer is in the 'Size of Text' field.
In the next release I will add a check for this situation.

Hans-Peter
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Tue Aug 16, 2011 11:42 pm

Just upload a new hpwImage 2.41:

http://www.hpwsoft.de/anmeldung/html1/n ... book5.html

hpwImageTextOut and hpwImageTextOutAngle bugfix for undefined text-size in command wizard on font-select-action.
hpwImageTextOut and hpwImageTextOutAngle now try to compensate textsize when system is set to PixelsPerInch <> 96 (100% zoom).
Hidden variable [*/*hpwImageDPI] now contains the system DPI setting on plugin-load.
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Sun May 27, 2012 11:48 pm

Just upload a new hpwImage 2.42:

http://www.hpwsoft.de/anmeldung/html1/n ... book5.html

Action: hpwImageSetPopupItem - Support for a new property 'TEXT|New item text' for a popup item.

This allow to change the popup-menu-text dynamicly during runtime without recreation.
The new text has to start with 'TEXT|' which is cut off.
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Sat Jun 09, 2012 5:35 am

Just upload a new hpwImage 2.43:

http://www.hpwsoft.de/anmeldung/html1/n ... book5.html

Action: hpwImageGetRectArea - Obtain a rect (inside hpwImage) area by using a rubberband-box.
Variable: [hpwImagePrepareGetRectArea] to prepare buffer for hpwImageGetRectArea
Variable: [RectangleName_GetAreaStartX] to store coordinates from hpwImageGetRectArea.
Variable: [RectangleName_GetAreaStartY] to store coordinates from hpwImageGetRectArea.
Variable: [RectangleName_GetAreaEndX] to store coordinates from hpwImageGetRectArea.
Variable: [RectangleName_GetAreaEndY] to store coordinates from hpwImageGetRectArea.
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Wed Jun 13, 2012 10:34 am

Just upload a new hpwImage 2.44:

http://www.hpwsoft.de/anmeldung/html1/n ... book5.html

Action: hpwImageConvToHSL - Convert a color to HSL values
Action: hpwImageDrawShadow has a new parameter 'DarkHole' to draw a gradient hole from a dark color.
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Fri Jun 15, 2012 2:49 pm

Just upload a new hpwImage 2.45:

http://www.hpwsoft.de/anmeldung/html1/n ... book5.html

Action: hpwImageColorCircle - Obtain a color using a custom circle color dialog box.

(I needed a color dialog with a better user experience and usable on tablet, and it also supports a color picker from screen)
(And it can be scaled bigger)
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Sat Jun 16, 2012 4:15 am

Just upload a new hpwImage 2.46:

http://www.hpwsoft.de/anmeldung/html1/n ... book5.html

Bugfix: hpwImageColorCircle - Picker was not setting always right value.

Variable: [hpwColorCircleButtonTextSize] - Textsize on buttons.
Variable: [hpwColorCircleButton1Visible] - Show additional custom button 1.
Variable: [hpwColorCircleButton2Visible] - Show additional custom button 2.
Variable: [hpwColorCirclePickButtonCaption] - Set caption text of pickbutton.
Variable: [hpwColorCircleButton1Caption] - Set caption text of custom button 1.
Variable: [hpwColorCircleButton2Caption] - Set caption text of custom button 2.
Variable: [hpwColorCircleOKButtonCaption] - Set caption text of OK button.
Variable: [hpwColorCircleCancelButtonCaption] - Set caption text of Cancel button.
Variable: [hpwColorCircleButton1Action] - Set action script for custom button 1.
Variable: [hpwColorCircleButton2Action] - Set action script for custom button 2.
Hans-Peter
User avatar
HPW
 
Posts: 2510
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Luiz Alfredo » Sat Jun 16, 2012 7:55 am

Great Work. Tranks Hans.
L.A.G.M.
Luiz Alfredo
 
Posts: 195
Joined: Thu Apr 19, 2007 6:58 am
Location: Brazil

Postby mig_cs2 » Mon Jun 18, 2012 10:04 am

Hey, Hans: great job!!
mig_cs2
 
Posts: 26
Joined: Fri Dec 31, 2010 1:33 pm
Location: México

Rubberband-box: Size

Postby mig_cs2 » Mon Jun 18, 2012 2:50 pm

Hi, Hans:
What is the maximum size that can be set to "hpwImageGetRectArea" because it reduces the size of the image created with "hpwImageCreate" if it is larger than about 623x396 points?
My rectangle is 1024x768 dots, but its image size is reduced to 623x396 points if I set actions "hpwImageGetRectArea".

Greetings:
Miquel
mig_cs2
 
Posts: 26
Joined: Fri Dec 31, 2010 1:33 pm
Location: México

PreviousNext

Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 1 guest