Is there any way we can get a border property for the controller. I am trying to do some interface design where the controller flows into the form seamlessly and there appears to be an 11 +/- pixel gap to the right of the controller and a 2-3 pixel gap on the left of the form.
Mind you I am new to Servoy and it is possible there is a way to currently do it, but I looked all over and couldn’t find anything.
I am talking about custom controller. See the attached image. What is on the left is a custom controller. That “chunk” of interface would be left out of the form and they SHOULD butt up against each other perfectly giving the illusion of what is on the “form”.
Hopefully this makes some sense now.
Sorry if I was not clear enough before. I am new to Servoy and perhaps need to choose my words more carefully so as not to confuse masses
Trying to break that graphic or text element across the top of the controller form and main form is going to be very difficult for you.
I would still like to see an example solution perhaps with just the two forms inside it as the combination of sizing the forms properly and minimising/emptying the borders should all but work.
You may also want to consider alternatives to using a custom controller.
One other method is to use a tabless, relationless tabpanel object that is placed onto your main form which would hold the current nav button set that you are displaying there.
Here is a sample Servoy file. Please take a look. The horizontal lines SHOULD look contunuous from the pink to the purple.
I know there are work arounds (and appreciate the input)…but this way seems most obvious and if there is not a good reason why we CAN’T do this, then I would like to see if it could be addressed.
Please take a look at the attached solutin file and see if you can make the horizontal lines meet between the CUSTOM controller and the form.
In the “for what it’s worth column” I haven’t been able to get the “gap” to go away eitherand I’ve tinkered Servoy UI design for a couple of years now.
However, I’ve largely moved away from using controllers for other reasons than just having to handle the gap. Did I ever mention that I like tab panels? I find it much easier to manage a solution using a UI preference table with one record in it. Base your main interface form on this table and then use tab panels to view all of your data. Judging by what I see, your solution would be perfect for this approach.
The ability to hide the tabs and manipulate which “window of data” you see through a tab panel programmatically at run-time (based on user interaction) is money.
I don’t know why that gap exists - that’s for the Servoyans - but it seems more margin based than border !?
Anyway, I resolved it by increasing the length and position of the lines in your example so that they went off the edge of the controller form and in the main form I set the form type as RecordView[Locked] which does get rid of the pixel gap at that side.
Whether this is a workable solution for you - only you know ?
But I do go along with what I said earlier and which David has mooted too about using tabpanels. They really are a more flexible tool than custom controller is at present as they allow you to have your nav bar areas anywhere on the form !