Jump to content

How to fill in many colors in one cell?


charles13115255

Recommended Posts

50 minutes ago, Sherzod said:

Well, first you need to clarify the problem statement.

Then, we will try to analyze.

Okay, I want to show:
During a day, the production trajectory of a certain machine...
For example:
2024/03/06(Wednesday)
Work 08:00~10:00 (120 minutes),
Rest 10:00~10:10 (10 minutes),
Work 10:10~13:00 (170 minutes),
Maintenance 13:00~13:30 (30 minutes),
Work 13:30~17:00 (10 minutes),
Rest 17:00~18:00 (60 minutes),
Work 18:00~21:00 (180 minutes)

----------------------------------------------------------------------
I need to use long bars of different colors in a cell to represent the situations listed above.

Link to comment
Share on other sites

On 3/28/2024 at 6:59 AM, charles13115255 said:

UniStringGrid

Well, as you know basically the cells of a StringGrid component can contain string values.

On 3/27/2024 at 12:08 PM, charles13115255 said:

I need to use long bars of different colors in a cell to represent the situations listed above.

Sorry, this also does not give me a complete understanding of the problem statement.

 

2 hours ago, charles13115255 said:

Do you have any feasible ideas?

I think you should use UniDBGrid with widgets.

Demo: \FMSoft\Framework\uniGUI\Demos\Desktop\Grid - WidgetColumn

image.thumb.png.af9b954911603b1899df77e63f36867d.png

Link to comment
Share on other sites

4 hours ago, Sherzod said:

Sorry, this also does not give me a complete understanding of the problem statement.

Well,  let me state the question again~

Question:

During a day, the production trajectory of a certain machine...
For example:
2024/03/06(三)
Work 08:00~10:00 (120 minutes),
Rest 10:00~10:10 (10 minutes),
Work 10:10~13:00 (170 minutes),
Maintenance 13:00~13:30 (30 minutes),
Work 13:30~17:00 (10 minutes),
Rest 17:00~18:00 (60 minutes),
Work 18:00~21:00 (180 minutes)

Let’s describe the above example and turn it into the following figure:

dbgridQ1.png

red color: work time

blue color: rest time

orange color: maintenace time

 

Link to comment
Share on other sites

2 hours ago, charles13115255 said:

do you understand my description of the above problem

Yes, but not completely.

As I understand it, this is a lookup field, right?

It would be nice if you could give some examples of records that have this lookup field.

 

Link to comment
Share on other sites

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...