Jump to content

Images on Grids or on DataView !!!


dionel1969

Recommended Posts

Hello Farshad!!!

 

I just want to know if will be possible soon to draw images on grids (StringGrid or DBGrid) ??? Or DataView from ExtJS will be implemented???

 

I need to draw an image of state of POS (1-Inactive, 2-Active, Turned Off, 3-Active Turned On w/o Sale and 4- Active, Turned On w/ Sale) on a surface. This surface could be a Grid of DataView like an example of ExtJS (.../uniGUI/ext-3.3.0/examples/view/animated-dataview.html). I don't need the animation but it could be.

 

Best regards,

Link to comment
Share on other sites

Hello Farshad!!!

 

I just want to know if will be possible soon to draw images on grids (StringGrid or DBGrid) ??? Or DataView from ExtJS will be implemented???

 

I need to draw an image of state of POS (1-Inactive, 2-Active, Turned Off, 3-Active Turned On w/o Sale and 4- Active, Turned On w/ Sale) on a surface. This surface could be a Grid of DataView like an example of ExtJS (.../uniGUI/ext-3.3.0/examples/view/animated-dataview.html). I don't need the animation but it could be.

 

Best regards,

 

i add state images to my grid using calculated fields.

 

Like so :

 

aStatus := Uppercase(ISSUES_TISSUE_STATUS.Value);

If aStatus = 'CLOSED' then

ISSUES_TImageIcon.Value := '<img width=16 height=16 src="http://URL.com/images/tick.bmp"/>'

Else if aStatus = 'RESEARCHING' then

ISSUES_TImageIcon.Value := '<img width=16 height=16 src="http://URL.com/images/research.bmp"/>'

Else if aStatus = 'REPORTED' then

ISSUES_TImageIcon.Value := '<img width=16 height=16 src="http://URL.com/images/reported.bmp"/>'

Else if aStatus = 'CAN CLOSE' then

ISSUES_TImageIcon.Value := '<img width=16 height=16 src="http://reidspace.com/images/flag_green.bmp"/>'

Else

ISSUES_TImageIcon.Value := '<img width=16 height=16 src="http://URL.com/images/open.bmp"/>' ;

 

post-11-0-28180800-1314101368_thumb.png

Link to comment
Share on other sites

i add state images to my grid using calculated fields.

 

Like so :

 

aStatus := Uppercase(ISSUES_TISSUE_STATUS.Value);

If aStatus = 'CLOSED' then

ISSUES_TImageIcon.Value := '<img width=16 height=16 src="http://URL.com/images/tick.bmp"/>'

Else if aStatus = 'RESEARCHING' then

ISSUES_TImageIcon.Value := '<img width=16 height=16 src="http://URL.com/images/research.bmp"/>'

Else if aStatus = 'REPORTED' then

ISSUES_TImageIcon.Value := '<img width=16 height=16 src="http://URL.com/images/reported.bmp"/>'

Else if aStatus = 'CAN CLOSE' then

ISSUES_TImageIcon.Value := '<img width=16 height=16 src="http://reidspace.com/images/flag_green.bmp"/>'

Else

ISSUES_TImageIcon.Value := '<img width=16 height=16 src="http://URL.com/images/open.bmp"/>' ;

 

post-11-0-28180800-1314101368_thumb.png

 

Thank you. More or less what I need. One more question: images could be .png or .jpg??? I will test it any way now.

 

Thank you so much.

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...