TOPIC: Layout questions
#379
Layout questions 3 Years, 11 Months ago
Greetings

I have an "L" shaped layout (with an image in the top right) I'd like to align all the text entry fields together. What I am finding is that the first group of labels are aligned properly with the text but the bottom entry area is not. Is it possible to specify the width for a Prompt on a field ? Belows the pseudo code
Code:


(Access mytable
(vert 
  (horz
    (vert patientname patientdob)
    patientpicture
  )
  patientcomments
)
)
Field_patientcomments is 
Prompt: "Enter Comments"
Controls: (Editor)



Also with the AccessControl is there a nice way to hide all the buttons ? Or replace them with a limited set ?

Thanks for any ideas...
 
 
#384
Re:Layout questions 3 Years, 11 Months ago
zippy wrote:
[...] Is it possible to specify the width for a Prompt on a field ? You could insert spaces in the 'Prompt' field element. Example:
Code:

Prompt: "          Enter Comments"


[...]Also with the AccessControl is there a nice way to hide all the buttons ? Or replace them with a limited set ? There is not an easy way to do this. You have to modify the AccessControl code to hide the unwanted buttons or add yourself new arguments to the AccessControl to hide only the unwanted buttons. Anyway, if you have some programming experience, it is not too difficult to mod the stdlib code
 
 
Mauro
 
#385
Re:Layout questions 3 Years, 11 Months ago
You can use a FormControl to line up your fields.

Code:

(Access mytable
(Form
    (patientname, group: 0) (patientpicture, group: 1) nl
    (patientdob, group: 0) nl
    (patientcomments, group: 0)
))



Post edited by: jennebelle, at: 2006/09/27 13:56
 
 
#389
Re:Layout questions 3 Years, 11 Months ago
That would almost do it but I would like to have the last field to span across both groups. I guess I could add a span attribute to the controls and modify the FormControl accordningly...

Thanks
Z
 
 
#390
Re:Layout questions 3 Years, 11 Months ago
Hi,
Have you tried AccessNav Control? You can modify the buttons using the protect rule.
ajith
 
 
#391
Re:Layout questions 3 Years, 11 Months ago
Form does allow fields to be "span". It doesn't force controls into a grid.

For example:

Code:

   first: [        ] second: [       ]
the third: [                                 ]



where first and third are in the same "group"

Post edited by: andrew, at: 2006/09/28 00:54
 
 
andrew
 
#392
Re:Layout questions 3 Years, 11 Months ago
Hi andrew,

Unfourtunately my layout needs the second field to be taller spanning vertically like this

Code:

                  
                              _________
    first: [        ] second: |       |
    Third: [        ]         |       |
   Fourth: [        ]         |       |
                              ---------
  the Fifth: [                                 ]



With the form control I get something like
Code:

                  
                              _________
                      second: |       |
                              |       |
                              |       |
    first: [        ]         ---------
    Third: [        ]
   Fourth: [        ]
the Fifth: [                                 ]



Post edited by: zippy, at: 2006/09/28 13:55
 
 
#393
Re:Layout questions 3 Years, 10 Months ago
You are right, Form does not support vertically "spanning".

We sometimes use layouts like:

Code:

(Horz
    (Form
        ...)
    ...)



to get something taller beside a form. If you want the form to extend under it, you need to make it something like:

Code:

(Vert
    (Horz
        (Form
            ...)
        ...)
    (Form
        ...))



The drawback to this is that only the first "group" in each of the separate Form's will be lined up.

Ideally Form would automatically handle controls that were taller, the same way it automatically handles controls that are wider.

Or Form could support something like the CSS "float"to do what you want. ;)
 
 
andrew