Jump to content


Photo

NxFocus problems (Visible, FormPlacement)de


  • Please log in to reply
No replies to this topic

#1 HaraldP

HaraldP
  • Members
  • 12 posts
  • Gender:Male

Posted 07 March 2012 - 02:56 PM

dear boki,

TNxFocus is a very nice thing. I really started to like it, but after a while I discovered a few problems:


- Visible:=FALSE not working - focus stays always visible
- Enabled:=FALSE - doesnt seem to have any effect either

in combination with RX TFormPlacement
http://sourceforge.net/projects/rxlib/
(pretty old-school, I know, but I use them for years...)

as soon a NxFocus is present on a form, the rx-FormPlacement.RestoreFormPlacement doesnt work with fullscreen-mode.

{--------------------------------------------------------------------------------------------------}
--------------------
my workaround so far is:
creating a NxFocus after app-start and form-position-restore (by calling this function):
{here it is in case anybody has the same problem:}
--------------------

function CreateNXFocus(AOwner: TComponent; APenColor: TColor): TNxFocus;
begin
result := TNxFocus.Create(AOwner);
with result do begin
Pen.Color := APenColor;
Enabled := True;
Loaded; //interestingly, this one is needed ...
end;
end;

{--------------------------------------------------------------------------------------------------}

the demoapp contains a compiled exe, in case you dont have rx and want to see what I´m talking about without installing rx-components first...

thanks and keep up the good work!
harald

Attached Files






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users