Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

View Best Fit 1

Status
Not open for further replies.

hcts

Programmer
Jan 14, 2004
89
US
I have decided to setup some of my forms with the best fit option so our users can see all the screen on the new LCD's. Is there an easy way to switch this in opal? I did a few searches and found nothing.

Thanks in advance.

James D. Howard
 
In the forms Init event add

MenuAction(MenuPropertiesZoomBestFit)
 
Awesome,

Thanks, I knew it had to be super easy but could not find a reference in the OPAL help. We originally fit all of our screens to the 640x480 but recently have decided to change that due to the larger screen sized and resolution on clients workstations.
 
Glad to help, it's always a dilema trying to design forms for multiple screen resolutions.

Perrin
 
With ZoomBestFit, on many systems the cursor will get lost.

This is specifically pointed with Paradox 10/11, but may be the case with other versions as well.

 
I go a little further and use:

Code:
setfocus

   doDefault
   menuAction(MenuPropertiesZoomBestFit)

-----------------------

menuaction

	if eventInfo.id() = MenuControlSize
   		then	doDefault
      			self.sizeToFit = True
   	endif

------------------------

close

   if not isMaximized() then show() endif
   menuAction(MenuPropertiesZoom100)


I use version 9 and have not observed the cursor problem Tony mentioned, but I'll add that my users notoriously under-report/wrongly-report buggy behavior.



Mac :)

"There are only 10 kinds of people in this world... those who understand binary and those who don't"

langley_mckelvy@cd4.co.harris.tx.us
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top