CPI - Custom Property Inspector- Black Friday Sale

why x4?

g.width is only half the size of the listbox.
g.width x2 would get you an image which is exactly the width of the listbox at @1x

I guess you could use the listbox width and go x 2

dim sectiontitle as new picture(  me.width *2,    g.height * 2,32)

Shouldnt be a problem if it scales down smoothly.

G.width should NOT be used to draw the banner image… ME.WIDTH should be as the banner needs to span the entire width of the listbox and the two columns are NOT necessarly the same width (column 0 autofits to the supplied captions, with some padding)

yep.
It was quick and dirty code, and assumptions stated.
Hence

[quote]I guess you could use the listbox width and go x 2

dim sectiontitle as new picture( me.width *2, g.height * 2,32)
[/quote]

Big picture (pun intended) is that the thing you draw from needs lots more pixels than the 2 cells have between them.
I know you know that.
The code above was something I tried in a couple of minutes and yes… it looked sharper.

I will try some version of this later today… got errands to run :slight_smile:

thanks

A demo copy of CPI is available at
www.rdS.com/cpi/cpi.zip

The CPI control class is encrypted in the demo
It will only run in the IDE…
This allows you to experiment with various aspects to see if it might fit you current/future needs
Please provide any feedback directly to me at ivebeenthinkning@cox.net
The “Buy” button right now doesn’t go anywhere (it will later today)
Documentation is currently limited (I’m creating a user manual webpage)
It has only been tested under macOS (Sierra), as my Win machine is currently offline
Unencrypted Source Code will be available for $29.95 later this week…

EDIT : It was pointed out to me, that I forgot to include the images required… a new zip will be available shortly

for some reason the forum didn’t save when I changed the link
www.rdS.com/cpi/cpi.zip

Hi Dave, the project cannot run within the Windows IDE.
Error: “There is more than one item with this name and it’s not clear which this refers.”

Ah … it’s worse … did you test yourself… It cannot run on MAC IDE either due to the same error. Sorry Dave…

[quote=358931:@Joost Rongen]Hi Dave, the project cannot run within the Windows IDE.
Error: “There is more than one item with this name and it’s not clear which this refers.”[/quote]
I have no idea what to say…
I just tested in under macOS, and it ran fine.
and Tim just tested it under windows as well
:frowning:

and that including downloading a fresh copy to insure it was the same

It’s running fine for me in Xojo 2015 on the mac.
maybe some keyword clash on newer Xojo versions?

Question:
Given a populated inspector, whats the best way of getting the data back to save it?

Works on both Mac and Windows IDEs running 2017r2.1

Joost, which version of the IDE are you using, and which, if any, plugins are installed?

Joost.

I tested using Xojo2016r4.1 under macOS
Tim tested it under both macOS and Win using Xojo2017r2.1
what verson are you using?

Jeff…
Use the GET function , I will have full documentation out as soon as I can

Public Sub get(propKEY as pair,byref value as Boolean)
Public Sub get(propKEY as pair,byref value as Color)
Public Sub get(propKEY as pair,byref value as Date)
Public Sub get(propKEY as pair,byref value as Double)
Public Sub get(propKEY as pair,byref value as FolderItem)
Public Sub get(propKEY as pair,byref value as Integer)
Public Sub get(propKEY as pair,byref value as Single)
Public Sub get(propKEY as pair,byref value as String)

you need the propKey from the Datachanged Event or what you used when it was loaded

for example (from LOAD_INSPECTOR)

		pi.AddSection("USER":"User Defined")
		pi.AddProperty("color1":"Color",&cff0000,True)               // typeCOLOR

the propKey would be “USER”:“color1”

This relates to a beta - please discuss this only on the beta channel

I am using 2017R2.1 on Mac and Windows … on both I seem to have no option to get it working Dave.
Same message when trying to run on Mac and trying to run with Windows IDE.

I have some plugins loaded, most MBS, but don’t thinks that causes the issue.

This relates to a beta - please discuss this only on the beta channel

This relates to a beta - please discuss this only on the beta channel

[quote=358995:@Beatrix Willius]I’m getting a really strange error when loading the xml project into the latest beta:

This file appears to have been corrupted or is not a valid Xojo file. Data will be recovered as much as possible.

The file itself loads fine. macOS High Sierra also latest beta.[/quote]

i got the same error while loading but run fine.

@Dave S - I would like to buy the sources as soon as available, up till now I have no option how to run the project in 2017R2.1 (Mac and Windows) See error message above.

Post edited regarding beta - please discuss this only on the beta channel

Nice kit. Runs fine on my 2017 R2.

Question: Is there a way via API to reduce size of fonts or is that a custom modification once source is purchased?