By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,107 Members | 1,323 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,107 IT Pros & Developers. It's quick & easy.

User interface Access

P: n/a
Hello,
I want to redesign a pogram I've been writing in Access for several
years now. This time I want the user interface to be more clearly. Eg.
docking forms next to each other, a main menu on the left side (a bit
like the one used in outlook) and so on. Mainly my question is about
the docking of these forms to fit the whole screen. Is my approach the
right one? And so yes, where can I find some useful code or
information to be able to dock these forms.
Many thanks,
--
bebelino
PS I've searched this newsgroup with google but didn't find suitable
answers.
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Create a module called basSizer. Paste this code into it.

Public Function q_Sizer(q_Right As Integer, q_Down As Integer, q_Width
As Integer, q_Height As Integer)
Const procname = "q_Sizer"
On Error GoTo q_Sizer_Error

DoCmd.MoveSize q_Right, q_Down, q_Width, q_Height
Exit Function

'................................................. ................

q_Sizer_Error:
Msgbox Error$, q_ERROR, procname
Exit Function
End Function
Let's assume you have (2) forms. One form on the left-hand side of the
screen is the menu: Under the Form's Properties box, in the On Load
Event, type:
=q_sizer (0,0,1900,7000). In the form on the right-hand side of the
screen is target form: Under the Form's Properties box, in the On Load
Event, type:
=q_sizer (1900,0,9900,7000). Purpose: sizes a form according to
standard global constants and positions it in place.

Yours,
Pjac
Nov 12 '05 #2

P: n/a
On 11 Sep 2003 11:07:57 -0700, pj**@erols.com (pjac) wrote:

Wow, it's so easy. Seems like a solid and easy base to built on.
Thanks.
--
bebelino
Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.