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!

Offset Cursor

Status
Not open for further replies.

Ernestw

Programmer
Feb 6, 2002
13
US
When we went from V 10 to V 11, we found our cursor moves ahead of the text. With a remarks field of 250 characters, the cursor leads the text by several character widths before the end of the first line. The real problem occurs when you want to delete a character; until you practice a lot, you're never sure what will be deleted or where an insert will occur.

We have tried different fonts, and some fonts have fewer problems than other fonts.

We have tried different style sheets. The problem here is that we will need to rebuild each of 50 to 60 forms if we change style sheets. We are using winstyles.ft as the default style sheet.
 
Ernestw,

You can change the stylesheets programatically. Specifically, the following code changes a form's stylesheet to one stored in a different directory:

Code:
method verifyForm( strFileName String ) logical
var
   loRetval   Logical  ; value returned to calling process
   frm Form            ; form to verify
endVar

  loRetval = FALSE     ; assume failure to reduce code.
  frm.load( strFileName, winStyleDefault + winStyleMinimize )

  strValue = fullName( frm.getStyleSheet() )
  if strValue <> BASEPATH + FRMSTYLE then
     frm.setStyleSheet( BASEPATH + FRMSTYLE )
  endIf

  frm.save()
  frm.close()
  loRetval = TRUE
  return loRetval
endMethod

It's taken from a sample file on my site (see for the download link), but it's fairly straightforward.

Reports also have a setStylesheet() method, so you could easily extend the sample script to handle reports as well. Simply copy verifyForm() to a verifyReport() method, tweak the copy for reports, and then extend the CASE statement in the script's run() event to handle reports, too.

Hope this helps...

-- Lance
 
In chasing this problem on another website, I came across the following comments. It agrees with my experience in that if I select 800 by 600 for my display, the cursor behaves properly.

Programmer 1:

This is a known problem in P10 when using at least ZoomBestFit, perhaps other &quot;zooms&quot;.

My recommendation is to design for a specific resolution and leave it there.

Programmer 2:

I agree with Liz. Design the ap and or forms to the lowest res in use (usually 800x600) and size explicitly. Easiest to size the ap and max the forms in it but you can explicitly size forms too. See the ap sizing demo
on our Paradox resources page (link in my signature) for details.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top