Controller Border

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.

set to controller form to: formview (locked)
also set the right form to: formview (locked)

Now your 2-3 pixels are gone!

Also check the form properties and look to the ‘border type’

If you set this to ‘empty’ with ‘O’ pixels for left, right, top, bottom then you should get rid of any other ‘gaps’

Play around with the border type property to get your optimum setting to complement your GUI design

Cheers
Harry

I tried both suggestions and the gap is still there (no change).

Any other suggestions? Does anyone have an example of doing this? If not could we look into adding this feature?

Thanks for the input guys.

Why not post an example solution which illustrates your problem or a screen shot - example solution would be preferable ! :-)

It may give us the ammunition to fire off an answer !

Cheers
Harry

Whoa, wait - you said 'controller and I think that we interpreted that as ‘custom controller’ !!!

Is it the standard controller ?

I’ll wait and see what you send back !

Cheers
Harry

Harry Catharell:
Whoa, wait - you said 'controller and I think that we interpreted that as ‘custom controller’ !!!

Is it the standard controller ?

I’ll wait and see what you send back !

Cheers
Harry

That’s what I thought too! :)

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 :-)

The custom controller does not chunk-off the piece of your right form.
It is just added at the left side, and the right side is moved up.

So what I can see, is that on your right form, (if you go to design-mode) there is also the white space!!! (maybe the white space is in your picture?)

or else place a picture of your right form in design-mode, so we can see.

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.

See this thread : http://forum.servoy.com/viewtopic.php?t=1670

Jan has added an example solution which demonstrates the principle.

Cheers
Harry

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.

Thanks for your help.

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.

As a bonus, you don’t have to worry about the gap :)

  • David

P.S. Glad the 3rd hurricane missed you this time!

OK I cheated a little !

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 !