dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

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 ...


Home > Database Forum > Other Databases > Paradox Database > Form "hangs" off left of screen...?

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 09-12-2008, 11:50 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Form "hangs" off left of screen...?


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."
Reply With Quote
  #2  
Old 09-12-2008, 12:13 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Form "hangs" off left of screen...?


> I have a form that is coded to run at 100%...


What is the code you use?



---------------
Tony McGuire
Reply With Quote
  #3  
Old 09-12-2008, 12:18 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Form "hangs" off left of screen...?

On Fri, 12 Sep 2008 10:13:58 -0600, Tony McGuire
wrote:

>
> > 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."
Reply With Quote
  #4  
Old 09-12-2008, 12:29 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Form "hangs" off left of screen...?

Kenneth wrote:
> On Fri, 12 Sep 2008 10:13:58 -0600, Tony McGuire
> wrote:
>
>>> 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
Reply With Quote
  #5  
Old 09-12-2008, 12:44 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Form "hangs" off left of screen...?

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,

Reply With Quote
  #6  
Old 09-12-2008, 01:05 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Form "hangs" off left of screen...?

On Fri, 12 Sep 2008 10:29:12 -0600, Tony McGuire
wrote:

>Kenneth wrote:
>> On Fri, 12 Sep 2008 10:13:58 -0600, Tony McGuire
>> wrote:
>>
>>>> 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."
Reply With Quote
  #7  
Old 09-12-2008, 01:09 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Form "hangs" off left of screen...?

On Fri, 12 Sep 2008 12:44:49 -0400, Jeff Shoaf
wrote:


>
>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."
Reply With Quote
  #8  
Old 09-12-2008, 01:10 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Form "hangs" off left of screen...?

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" wrote in message
news:3a8lc4hgr2omne953htqht6vpd8e25un9d@4ax.com...
> On Fri, 12 Sep 2008 10:29:12 -0600, Tony McGuire
> wrote:
>
>>Kenneth wrote:
>>> On Fri, 12 Sep 2008 10:13:58 -0600, Tony McGuire
>>> wrote:
>>>
>>>>> 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."



Reply With Quote
  #9  
Old 09-12-2008, 07:06 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Form "hangs" off left of screen...?

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
> wrote:
>
>
>> 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,

Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 03:31 AM.