Replacement display!

For general Flowcode discussion that does not belong in the other sections.
Post Reply
jgu1
Posts: 935
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 854 times
Been thanked: 205 times

Flowcode v11 Replacement display!

Post by jgu1 »

Hi!

I’ve tried using “replacement,” but it hasn’t worked for me. Can someone tell me what I’m doing wrong? In a project, I’d like to replace a ST7735S display with an ILI9341 display. Tried this: Added an ILI9341 display to the 2D screen, deleted it again > right-click on the ST7735 display > click on “replace” > I can see the ILI9341 display appear > select it and press OK. I can see that something happens, but it’s still the ST7735 display on the 2D screen. Have I forgotten something?

Thank´s in advance ;)

Jorgen
Attachments
Så sker dette.png
Så sker dette.png (51.28 KiB) Viewed 132 times
Klikker på det nye display.png
Klikker på det nye display.png (46.54 KiB) Viewed 132 times
Først hente nyt display.png
Først hente nyt display.png (64.1 KiB) Viewed 132 times

mnfisher
Valued Contributor
Posts: 2119
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 167 times
Been thanked: 978 times

Re: Replacement display!

Post by mnfisher »

Hi Jorgen,

I think the 'replace' needs a very close correlation between the two components...

I posted a rather more 'brute force' method at viewtopic.php?p=20867#p20867 - which would require a little tidying after use...

Martin

medelec35
Valued Contributor
Posts: 2361
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 742 times
Been thanked: 799 times

Re: Replacement display!

Post by medelec35 »

Replacing a component and keeping the Handle name correct

Hi Jorgen.
When you replace a component in Flowcode, the Handle (name) of the original component is retained by default — even though the underlying Type has changed. This can be confusing, since the component will still show its old name on the 2D panel, even though it's now a different component.

To make the Handle reflect the new (replacement) component properly, follow these steps:
  1. Add the component you want as the replacement.
  2. In Properties, select the replacement component's name so it's highlighted, then right-click → Copy.
  3. Delete the newly added replacement component.
  4. Select the original component on the 2D panel, right-click → Replace, choose the replacement component, then click OK.
  5. In Properties, select the Handle/name field of the now-replaced component so it's highlighted, then right-click → Paste, to overwrite it with the name you copied in step 2.
  6. Save - Reload the project, or change any property to a new value and back to its original value, for the correct name to display on the component.
The Type field in Properties always shows the actual underlying component, so you can use that to confirm what a component really is if you're ever unsure.

Note: the component Handle can be set to any name you like — it doesn't have to match the component type.
Martin

jgu1
Posts: 935
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 854 times
Been thanked: 205 times

Flowcode v11 Re: Replacement display!

Post by jgu1 »

Hello Martin and Martin!

Thank you for fast reply. I have just tested Martin´s (medelec) advice, it work, perfect :D is it a bug, no problem if I replace a LCD display?

Br Jorgen

medelec35
Valued Contributor
Posts: 2361
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 742 times
Been thanked: 799 times

Re: Replacement display!

Post by medelec35 »

jgu1 wrote:
Mon Aug 17, 2026 6:49 pm
I have just tested Martin´s (medelec) advice, it work, perfect :D
You're welcome, I'm glad it worked well for you.
Thanks for letting us know
jgu1 wrote:
Mon Aug 17, 2026 6:49 pm
is it a bug, no problem if I replace a LCD display?
Are you referring to Step 6?
Can you provide more details?
Martin

jgu1
Posts: 935
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 854 times
Been thanked: 205 times

Re: Replacement display!

Post by jgu1 »

Hi Martin!

I thought it was simply a matter of doing the “Replace” and that would be it. I didn’t realise that you also need to copy the new Handle into the replaced component, and that this was something Flowcode apparently doesn’t do automatically, (my thought of bug).

So, once again, you’ve taught me something new. Many thanks for your help and patience! :D

Best regards,
Jorgen

Post Reply