ColorInfo

So you have written that new, must have program. Let us see it here.
Post Reply
Diverod
Posts: 28
Joined: Friday 12th November 2021 1:31am
Location: North Central Florida

ColorInfo

Post by Diverod » Wednesday 22nd December 2021 8:14pm

A simple utility for getting the color attributes of a pixel from a palette, fractal or desktop. Also, an attempt at auto-scroll with desktop image selected. Color attributes are displayed in real time mouse movements within a copy-able text area with the color displayed in a tag-along small picture box that follows the cursor. Expandable form for larger images.

This environment is new to me so any suggestions are appreciated. This does what I want for my present needs, just don’t know if there may be a better way to do it. Thanks for the Forum, RodG.

Image
Attachments
ColorInfo.tar.gz
(950.92 KiB) Downloaded 102 times

User avatar
cogier
Site Admin
Posts: 896
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: ColorInfo

Post by cogier » Saturday 25th December 2021 8:54pm

This is an interesting program, so much so I had to mess with it!

I have made some changes that include: -
  • Form is now fully expandable
    There is a Splitter incorporated. You can now resize the left and right sides of the Form
    The TextArea has been replaced with a Gridview
    I got rid of the 'Scroll' feature and 4 timers
    There is now a special cursor when inside the PictureBox which replaces the 'pcbAlt', the colour is now displayed in the GridView
I hope you find it of some help.

Image
ColorInfo_CO-0.1.tar.gz
(486.08 KiB) Downloaded 100 times

Diverod
Posts: 28
Joined: Friday 12th November 2021 1:31am
Location: North Central Florida

Re: ColorInfo

Post by Diverod » Sunday 26th December 2021 3:45pm

Thanks Cogier, that’s a nice present for the holidays.

I have to say that I still struggle with the expanding forms a bit. I basically see how you are doing it when I look at your examples but when I’m doing it on my own I have difficulties starting with the proper foundation or fully grasping the nuances of the properties of the control being used. I’ll eventually get there, it’ll just be a while before I get full voltage to that light bulb.

Thanks again for taking a look at this, RodG.

BruceSteers
Posts: 841
Joined: Thursday 23rd July 2020 5:20pm

Re: ColorInfo

Post by BruceSteers » Sunday 26th December 2021 4:16pm

Diverod wrote:
Sunday 26th December 2021 3:45pm
Thanks Cogier, that’s a nice present for the holidays.

I have to say that I still struggle with the expanding forms a bit. I basically see how you are doing it when I look at your examples but when I’m doing it on my own I have difficulties starting with the proper foundation or fully grasping the nuances of the properties of the control being used. I’ll eventually get there, it’ll just be a while before I get full voltage to that light bulb.

Thanks again for taking a look at this, RodG.
You'll get used to it fella, i was rubbish at layouts when i first came here.
It comes with experience, just keep playing/experimenting with the Panel, HBox, VBox, Spliiter etc containers and creative use of the Arrangement properties for the containers and using either Expand or AutoResize on some of the controls.

Handy things to know..
When experimenting with layouts you can right click an object then select "Place into container" then right click the new container and select "Change into" to make it what you need.

a HBox control in a vertically arranged panel will by default expand horizontally but not vertically and objects inside set to expand will only expand horizontally (and the opposite for a VBox)

AutoResize can be weird on some containers especially scrollviews (scrollviews can be a real headache lol)

Have fun :)

Diverod
Posts: 28
Joined: Friday 12th November 2021 1:31am
Location: North Central Florida

Re: ColorInfo

Post by Diverod » Sunday 26th December 2021 6:20pm

BruceSteers wrote:
Sunday 26th December 2021 4:16pm

Handy things to know..
When experimenting with layouts you can right click an object then select "Place into container" then right click the new container and select "Change into" to make it what you need.
Oh, now that's handy info!
I had figured out the first part of that but couldn't understand why there wasn't an option for the type of container to put it into. Thanks much for that tidbit!

Post Reply