Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #3224
| From | "Jamal" <vodotnet_nospam@yahoo.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Window size and controls position |
| Date | 2012-03-20 16:06 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <jkanva$v3i$1@dont-email.me> (permalink) |
| References | <8c5b097f-374a-4305-a6fd-d47c8f240103@er9g2000vbb.googlegroups.com> <30579028.3923.1332224745011.JavaMail.geo-discussion-forums@vbbfy7> <b4f16cab-626a-4484-bc80-7876b67b1a20@l7g2000vbw.googlegroups.com> <f84225de-188d-40d0-8369-51687a605d90@w5g2000vbv.googlegroups.com> |
>> although it does seem to struggle with bBrowsers and I have to click off then back onto a tab page for the browser to show correctly. << Use bBrowser:Repaint() and bBrowser:Recalculate() Jamal "Ian" wrote in message news:f84225de-188d-40d0-8369-51687a605d90@w5g2000vbv.googlegroups.com... On Mar 20, 9:47 am, "richard.townsendrose" <richard.townsendr...@gmail.com> wrote: > Ian > > What I found when i got a new large screen is that i want the app to > remain the size it was designed for ... in the old days it was common > to use full screen ... > > so now i make my apps to fill an old screen.... but that means keeping > the position and size odf the app when it last closed ... you will > notice that vo itself does this [save desktop]. > > it is easy .. then you dont need to redesign a layout that is already > comfortable for the user > > here is a sample for saving .. > METHOD SaveScreenSizePos CLASS TDOCShellWindow > LOCAL lpRect IS _winRECT > LOCAL wTop, wLeft AS INT > > SysObject():PutSet(ScrWidth, > NTrim(SysObject():Size:Width)) // rgtr 150311 > SysObject():PutSet(ScrHeight, NTrim(SysObject():Size:Height)) > > GetWindowRect(SysObject():Handle(), @lpRect) > wTop:=Max(lpRect.top, 0) > wLeft:=Max(lpRect.Left,0) > SysObject():PutSet(ScrTop, NTrim(wTop)) > SysObject():PutSet(ScrLeft, NTrim(wLeft)) > > RETURN NIL > > and here's the loading > > SetWindowPos(oMain:Handle(), NULL_PTR, Val(oMain:GetSet(ScrLeft)), > Val(oMain:GetSet(ScrTop)), ; > Val(oMain:GetSet(ScrWidth)), > Val(oMain:GetSet(ScrHeight)), SWP_SHOWWINDOW) > > you will need to have yopur own storage mechanism .. we use an ini > file ... > > richard Hi, Thanks for the replies. Understand what you are saying Richard but I would like to have my app data windows open as zoomed and have the controls etc resize and reposition themselves to suit. I think I will look at owneralignmet as suggested by Mathias. I have already had a quick look at this using the setting OA_PX_PY_PWIDTH_PHEIGHT, which seems to do the job I need although it does seem to struggle with bBrowsers and I have to click off then back onto a tab page for the browser to show correctly. Will continue with this and see if I can get it to do what I want. Only have 26 datawindows to sort, all of the dialog windows will stay as they are. Thanks for the help. Ian
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Window size and controls position Ian <ithomson@mikroaid.co.uk> - 2012-03-18 13:41 -0700
Re: Window size and controls position Mathias <mathias.hakansson@consultec.se> - 2012-03-19 23:25 -0700
Re: Window size and controls position "richard.townsendrose" <richard.townsendrose@gmail.com> - 2012-03-20 02:47 -0700
Re: Window size and controls position Ian <ithomson@mikroaid.co.uk> - 2012-03-20 06:32 -0700
Re: Window size and controls position "Jamal" <vodotnet_nospam@yahoo.com> - 2012-03-20 16:06 -0400
Re: Window size and controls position Ian <ithomson@mikroaid.co.uk> - 2012-03-20 13:33 -0700
csiph-web