[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

Toggle between a block cursor and a underline cursor does't always work.

Dear Experts,

I have made a little programm with a MainMenu on it and my own component with
Align = alClient. When I select Menu-item Alter Cursor (switching between a block-cursor
and an Underlinded cursur) it often doesn't perform the switch immediatelly. Sometimes
I have to press the menu-item twiced to go from underlined to blocked or visa versa.

I have put a little example on my site: http://members.home.nl/peterkiers/ 
Underneath the Under Construction-bar you see a floppy-disk.


Peter Kiers
1 Solution
Russell LibbySoftware Engineer, Advisory Commented:
Peter, when switching from block cursor back to line cursor, you need to remove the block cursor on the screen (otherwise the canvas is not repainting, and will still show the block).

You can use Invalidate, or can optionally redraw the rectangle using the back color before drawing the line.

peterkiersAuthor Commented:
Thanks for the advice...


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now