Form "hangs" off left of screen...? - Paradox Database
This is a discussion on Form "hangs" off left of screen...? - Paradox Database ; Howdy, I'm running P9 with XP... I have a form that is coded to run at 100%... When I launch the form, it is "cut off slightly" on the left side. If I then click View | Zoom 50%, and ...
![]() |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| |||
| |||
| Howdy, I'm running P9 with XP... I have a form that is coded to run at 100%... When I launch the form, it is "cut off slightly" on the left side. If I then click View | Zoom 50%, and then View | Zoom 100%, it re-positions properly. Is there a way that I can have the form launch properly without that routine? Many thanks, -- Kenneth If you email... Please remove the "SPAMLESS." |
|
#2
| |||
| |||
| > I have a form that is coded to run at 100%... What is the code you use? --------------- Tony McGuire |
|
#3
| |||
| |||
|
On Fri, 12 Sep 2008 10:13:58 -0600, Tony McGuire > > > I have a form that is coded to run at 100%... > >What is the code you use? > > > >--------------- >Tony McGuire Hi Tony, On the form's Open, I have: menuAction(MenuPropertiesZoom100) Thanks, -- Kenneth If you email... Please remove the "SPAMLESS." |
|
#4
| |||
| |||
|
Kenneth wrote: > On Fri, 12 Sep 2008 10:13:58 -0600, Tony McGuire > > >>> I have a form that is coded to run at 100%... >> What is the code you use? >> >> >> >> --------------- >> Tony McGuire > > Hi Tony, > > On the form's Open, I have: > > menuAction(MenuPropertiesZoom100) > > Thanks, Are you opening the form from another form or script or library or anything? Or just directly by clicking on it? f.open("sales", WinStyleDefault + WinStyleMaximize) will open the subject form maximized. Not that it will help if you are clicking on it directly. I don't use ANY of the zoom factors for form sizing, as they seem to all have 'issues'. Hopefully someone else who has tried what you are doing will chime in. --------------- Tony McGuire |
|
#5
| |||
| |||
|
Is it sized correctly and not centered in the screen? Is the form maximized? Kenneth wrote: > Howdy, > > I'm running P9 with XP... > > I have a form that is coded to run at 100%... > > When I launch the form, it is "cut off slightly" on the left > side. > > If I then click View | Zoom 50%, and then View | Zoom 100%, > it re-positions properly. > > Is there a way that I can have the form launch properly > without that routine? > > Many thanks, |
|
#6
| |||
| |||
|
On Fri, 12 Sep 2008 10:29:12 -0600, Tony McGuire >Kenneth wrote: >> On Fri, 12 Sep 2008 10:13:58 -0600, Tony McGuire >> >> >>>> I have a form that is coded to run at 100%... >>> What is the code you use? >>> >>> >>> >>> --------------- >>> Tony McGuire >> >> Hi Tony, >> >> On the form's Open, I have: >> >> menuAction(MenuPropertiesZoom100) >> >> Thanks, > >Are you opening the form from another form or script or library or >anything? Or just directly by clicking on it? > >f.open("sales", WinStyleDefault + WinStyleMaximize) > >will open the subject form maximized. > >Not that it will help if you are clicking on it directly. > >I don't use ANY of the zoom factors for form sizing, as they seem to all >have 'issues'. > >Hopefully someone else who has tried what you are doing will chime in. > > > >--------------- >Tony McGuire Hi Tony, I open the form by clicking... It is our "base" form from which everything else happens. Thanks, -- Kenneth If you email... Please remove the "SPAMLESS." |
|
#7
| |||
| |||
|
On Fri, 12 Sep 2008 12:44:49 -0400, Jeff Shoaf > >Kenneth wrote: >> Howdy, >> >> I'm running P9 with XP... >> >> I have a form that is coded to run at 100%... >> >> When I launch the form, it is "cut off slightly" on the left >> side. >> >> If I then click View | Zoom 50%, and then View | Zoom 100%, >> it re-positions properly. >> >> Is there a way that I can have the form launch properly >> without that routine? >> >> Many thanks, >Is it sized correctly and not centered in the screen? Is the form maximized? Hi Jeff, I think you may have pointed me in the right direction... It did have a "maximize()" on its setFocus, but I moved it to the form's open, and now it seems fine. I thank you for your help, -- Kenneth If you email... Please remove the "SPAMLESS." |
|
#8
| |||
| |||
|
When I create a form, I actually have a form creator 'form' that I wrote. Allows me to set a window title, add some std. code snippets to certain methods as well as allow me to size and position the 'new' form and put those coordinates into a SetPosition statement in the 'new' form's SetFocus method. From that point on it always opens up in a specific spot and size. Of course I'm designing for a known set of screen sizes so what I design it for will work most anywhere in my company. Never even thought about the menuaction(constants) method. "Kenneth" news:3a8lc4hgr2omne953htqht6vpd8e25un9d@4ax.com... > On Fri, 12 Sep 2008 10:29:12 -0600, Tony McGuire > > >>Kenneth wrote: >>> On Fri, 12 Sep 2008 10:13:58 -0600, Tony McGuire >>> >>> >>>>> I have a form that is coded to run at 100%... >>>> What is the code you use? >>>> >>>> >>>> >>>> --------------- >>>> Tony McGuire >>> >>> Hi Tony, >>> >>> On the form's Open, I have: >>> >>> menuAction(MenuPropertiesZoom100) >>> >>> Thanks, >> >>Are you opening the form from another form or script or library or >>anything? Or just directly by clicking on it? >> >>f.open("sales", WinStyleDefault + WinStyleMaximize) >> >>will open the subject form maximized. >> >>Not that it will help if you are clicking on it directly. >> >>I don't use ANY of the zoom factors for form sizing, as they seem to all >>have 'issues'. >> >>Hopefully someone else who has tried what you are doing will chime in. >> >> >> >>--------------- >>Tony McGuire > > Hi Tony, > > I open the form by clicking... > > It is our "base" form from which everything else happens. > > Thanks, > -- > Kenneth > > If you email... Please remove the "SPAMLESS." |
|
#9
| |||
| |||
|
Great! For future reference, consider putting any initialization code in the form's init() method - that's what it's for and you don't have to worry about where it goes in the open() method. The open() event catches the open() event for each object on the form as it bubbles up, hence the default if...then...else statement in the open() event. Having the maximize() in the form's setFocus() event will surely irritate anyone who's trying to view the form at less than maximum so that they can look at another app at the same time! Kenneth wrote: > On Fri, 12 Sep 2008 12:44:49 -0400, Jeff Shoaf > > > >> Kenneth wrote: >>> Howdy, >>> >>> I'm running P9 with XP... >>> >>> I have a form that is coded to run at 100%... >>> >>> When I launch the form, it is "cut off slightly" on the left >>> side. >>> >>> If I then click View | Zoom 50%, and then View | Zoom 100%, >>> it re-positions properly. >>> >>> Is there a way that I can have the form launch properly >>> without that routine? >>> >>> Many thanks, > >> Is it sized correctly and not centered in the screen? Is the form maximized? > > Hi Jeff, > > I think you may have pointed me in the right direction... > > It did have a "maximize()" on its setFocus, but I moved it > to the form's open, and now it seems fine. > > I thank you for your help, |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
All times are GMT -4. The time now is 03:31 AM.




Linear Mode