Recent

Author Topic: [Solved]Spinedits,textboxes values, disappear when exefile run[the solution]  (Read 931 times)

Robert W.B.

  • Sr. Member
  • ****
  • Posts: 331
  • Love my Wife, My Kids and Lazarus/Freepascal.
Form that have Formstyle: fsSystemStayOnTop .

When open a website when my form is on top, of the website ,will delete values, in the forms spinedits, and textboxes under the process of open the website, from exefile of my Lazarus project, in a computer without lazarus installed!

If You move the mouse over the spinedits, the value appear again.

Again.This behavior will show, when execute my exefile in a computer without Lazarus installed!

Someone has a clue about this strange behavior?
What can i do about it?
Bug?

Thanks in advance
Bob
« Last Edit: May 02, 2020, 02:17:36 pm by Robert William Blennerhed »
Rob

jamie

  • Hero Member
  • *****
  • Posts: 7831
Re: Spinedits,textboxes values, disappear when exefile run...
« Reply #1 on: May 01, 2020, 02:56:53 pm »
It took me a little to figure out your problem. So the controls sitting
On your form are getting blocked by the webpage.
This would be a nice feature for a hacker to operate your controls
When they think are interacting with webpage.

 What widget and target?
The only true wisdom is knowing you know nothing

Robert W.B.

  • Sr. Member
  • ****
  • Posts: 331
  • Love my Wife, My Kids and Lazarus/Freepascal.
Re: Spinedits,textboxes values, disappear when exefile run...
« Reply #2 on: May 01, 2020, 03:02:37 pm »
Hi Jamie.
Where can i see Widget and target?

Target Windows 10
Widget?

The values are public even for a hacker so it's cool.
« Last Edit: May 01, 2020, 03:07:54 pm by Robert William Blennerhed »
Rob

jamie

  • Hero Member
  • *****
  • Posts: 7831
Re: Spinedits,textboxes values, disappear when exefile run...
« Reply #3 on: May 01, 2020, 11:59:16 pm »
its possible there is something wrong with TspinEdit, they are kind of funky controls..

have you tried using a windows type control on the form to see if it shows through ?

You may need to place a TPanel on the form and then populate the panel with the spinedits
etc
The only true wisdom is knowing you know nothing

Robert W.B.

  • Sr. Member
  • ****
  • Posts: 331
  • Love my Wife, My Kids and Lazarus/Freepascal.
Here i figure out the solution:

var
txt:string;
begin
   form2.Hide;// hide form2 before execute open url

   txt:='http://skrivbord\internet explorer';


   Url :='https://my_Url.com';//no real Url


   OpenDocument(pchar(Url));

//show form2 again to get the values appear
   form2.Show;
   form2.FormStyle:=fsSystemStayOnTop;


end;     

/Bob
Rob

jamie

  • Hero Member
  • *****
  • Posts: 7831
Oh, you have that problem....

those controls are not TWinControl based so they may not always get updated

I think all you really need to do is use a REPAINT  or invalidate.

FORM1.Invalidate or REPAINT should work without hiding and reshowing it again.

do that after the DOC opens up.
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018