Færdiggjort

A TPanel component that displays a PNG glyph from TImageCollection

Write in Delphi 10.4 or compatible a TCustomPanel descendant that supports drawing of a PNG glyph inside the panel, with the glyph aligned left within the panel.

The control shall have these custom properties:

ImageCollection : TImageCollection; - Defines the source from which the panel reads the PNG glyph

GlyphName : String; - Defines the name of the image inside TImageCollection that the control draws to its canvas.

GlyphLeftMargin : Integer; - Defines the distance between the left edge of the control and the PNG glyph drawn. For example, if GlyphLeftMargin = 5, there will be empty space of 5 units between the left edge of the control and the left edge of the PNG glyph.

GlyphTopPadding : Integer; - Defines a minimum space required to be empty between the top of the PNG Glyph and the edge of the control.

GlyphResizing : Boolean; - Defines whether the glyph can be resized. Note: If set to true, the resizing shall not ever change the ratio of height and width of the glyph.

The PNG Glyph shall be drawn to the left side of the control, vertically centered.

The control must automatically choose the best size image from the TImageCollection of the matching GlyphName.

For example, should the linked TImageCollection contain picture named "tool_icon" in sizes of 32x32, 48x48, 64x64 and 128x128 pixels, and the size of the control is 100x100, GlyphLeftMargin = 10 and GlyphTopPadding = 5, GlyphResizing = false, the PNG Glyph from TImageCollection named "tool_icon" of size 64x64 will be drawn at position of left 10 pixels and vertically centered. The glyph is not resized, but drawn as it is, in the best matching (largest possible) size, i.e. 64x64.

If in the above case, the GlyphResizing = true and GlyphLeftMargin = 0, then "tool_icon" size 128x128 is selected and resized to be 100x100, filling the entire canvas of the panel.

If in the above case, the GlyphResizing = true and GlyphLeftMargin = 10, then "tool_icon" size 128x128 is selected and resized to be 90x90, and drawn to the canvas vertically centered, 10 units from the left edge of the control.

If in the above case, the GlyphResizing = true and GlyphTopPadding = 5, then "tool_icon" size 128x128 is selected and resized to be 95x95, and drawn to the canvas vertically centered, 0 units from the left edge of the control.

Evner: Delphi

Se mere: find a writer in south africa to help write a book, hire a pinellas county word press guru to write my website, a&b component, i am sick for a year and i want write a letter to a leader of a company for money how should i write this letter, look for a job adverisment of your own an write acovering letter accompaned by your cv to applyfor the advertised post, my junior sister ill i want write to make a well on her how can i write, can a screen writer take any book and write a script, for a good seo score webmasters need to write a minimum 300 words unique content this text content has 3 sentences and 20 words, freelance writer will write long form narrative and reported travel pieces for a hotel review & travel website looking for write, if i want to write a letterf for somebody he or she want to buy a car or taxi what i must write, im have a good ideas for a book but i need someone to write it out for me, i need a phd research proposal writer who can write 3 4 research proposals on potential phd research topics in the following are, is it a good idea to get someone to write a book for you, to get in the military i have to write a excepts letter i need someone to write it for me, where can i buy premade illustrations for a childrens book so that i can write the story around the pictures, you have recently visited a place of interest in your country write an article for a school, how to write a joomla component, create a aem component with custom dialogs, write a script which displays documentation of python's input function in python 3, write a script which displays documentation of python's input function.

Om arbejdsgiveren:
( 664 bedømmelser ) Chiang Mai, Thailand

Projekt ID: #28293503

Tildelt til:

(113 bedømmelser)
5.7