charles13115255 Posted March 27 Share Posted March 27 Hi~ experts: I have a question as shown in the attached picture... Like this, how to have multiple colors in one cell? Please Help! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 27 Share Posted March 27 Hello, I think one of the possible solutions is you should use the html context, using say several spans with different styles... Quote Link to comment Share on other sites More sharing options...
charles13115255 Posted March 27 Author Share Posted March 27 7 minutes ago, Sherzod said: Hello, I think one of the possible solutions is you should use the html context, using say several spans with different styles... Hi~~ How to implement it specifically? thank you~ Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 27 Share Posted March 27 1 minute ago, charles13115255 said: How to implement it specifically? Well, first you need to clarify the problem statement. Then, we will try to analyze. Quote Link to comment Share on other sites More sharing options...
charles13115255 Posted March 27 Author Share Posted March 27 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 27 Share Posted March 27 I think you're better off using UniChart. Quote Link to comment Share on other sites More sharing options...
charles13115255 Posted March 27 Author Share Posted March 27 35 minutes ago, Sherzod said: I think you're better off using UniChart. using UniChart in cell ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 27 Share Posted March 27 3 minutes ago, charles13115255 said: using UniChart in cell ? No, separately. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 27 Share Posted March 27 By the way, what component are you using? UniStringGrid or UniDBGrid? Quote Link to comment Share on other sites More sharing options...
charles13115255 Posted March 28 Author Share Posted March 28 15 hours ago, Sherzod said: By the way, what component are you using? UniStringGrid or UniDBGrid? UniStringGrid Quote Link to comment Share on other sites More sharing options...
charles13115255 Posted March 29 Author Share Posted March 29 Hello sir, Do you have any feasible ideas? Sorry to trouble you 😅 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 29 Share Posted March 29 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 Quote Link to comment Share on other sites More sharing options...
charles13115255 Posted March 29 Author Share Posted March 29 3 hours ago, Sherzod said: I think you should use UniDBGrid with widgets. Demo: \FMSoft\Framework\uniGUI\Demos\Desktop\Grid - WidgetColumn Can it be changed to the red box in the picture below? Quote Link to comment Share on other sites More sharing options...
charles13115255 Posted March 29 Author Share Posted March 29 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: red color: work time blue color: rest time orange color: maintenace time Quote Link to comment Share on other sites More sharing options...
charles13115255 Posted April 2 Author Share Posted April 2 @Sherzod Hello~ Excuse me, do you understand my description of the above problem 😅? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 2 Share Posted April 2 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.