Page 1 of 1

Graphical objets on the form

Posted: Tue Nov 15, 2022 12:57 pm
by hame
Hi, Kev1n,

is it possible to place some graphical objets on the form e.g. coloured squares, lines, ... to make it structured more clearly ?
THX !!

Harald

Re: Graphical objets on the form

Posted: Tue Nov 15, 2022 1:03 pm
by kev1n
Hi Harald

Use an HTML object to place any html code in it:

https://www.w3schools.com/howto/howto_css_shapes.asp

Re: Graphical objets on the form

Posted: Tue Nov 15, 2022 1:23 pm
by hame
Hi Kev1n,

I'll give it a try :-) Are there plans for visual editing of such objects ?

THX again!

Re: Graphical objets on the form

Posted: Tue Nov 15, 2022 1:44 pm
by kev1n
No, there aren't any plans. You can always resort to other tools like Clip Path Generator
and then use the generated css like the following example:

Code: Select all

<style>
.rectangle {
  clip-path: polygon(10% 10%, 90% 10%, 90% 90%, 10% 90%);
  background-color: #477beb;
  height:450px;
  width:250px;
}
</style>

<div class="rectangle">

</div>

Re: Graphical objets on the form

Posted: Tue Nov 15, 2022 1:47 pm
by hame
Hi Kev1n,
thanks. Where do I insert the css code/html code in the form ? I tried the user defindet css in the form properties, but nothing happened :-(

Re: Graphical objets on the form

Posted: Tue Nov 15, 2022 1:49 pm
by kev1n
kev1n wrote: Tue Nov 15, 2022 1:03 pm Hi Harald

Use an HTML object to place any html code in it:

https://www.w3schools.com/howto/howto_css_shapes.asp
Create a new object of type HTML .

Re: Graphical objets on the form

Posted: Tue Nov 15, 2022 3:07 pm
by hame
Dear Kev1n,
I managed it. I gave those objects the same size than in the code and so a nearly WISIWYG editing is possible :-).
If I want the labels of the objects ABOVE and not left of the data, how can I manage that ?
THX again
Harald

Re: Graphical objets on the form

Posted: Tue Nov 15, 2022 3:16 pm
by kev1n
In the form's Custom Code, call

Code: Select all

nuLabelOnTop()