Hello,
I have legacy, special purpose Delphi 4 application. Native it is running in Windows 98 OS.
I want to run it in Windows XP. It runs, no error, but..
One "TGroupBox" named "REZULTATAI" NOT displayed. And field not active
In this TgroupBox calculation is done. But in Windows XP it is not active
With Winsight tool whole "TGroupBox" displaying as "hidden"
here's my app screenshot
https://drive.google.com/file/d/0B9QV5LRUUzF8NzNCNVcwVC1vOWM/view?usp=sharing
here's part of code...(as DFM file)
https://drive.google.com/file/d/0B9QV5LRUUzF8WGVkOW5CbTlyMzg/view?usp=sharing
Here, what must be displayed
https://drive.google.com/file/d/0B9mUjraTV2RrTE5TYmVuTXBYNGM/view?usp=sharing
Maybe someone...can help
Thanks in advance
Edited by: Deividas Ceinorid on Jan 4, 2015 12:08 PM
Just drop a TButton to your form. Double click it. Now put this code on the OnclickEvent:
{code}
procedure TAPlnFm.Button1Click(Sender: TObject);
begin
ShowWindow(REZULTATAI.Handle, SW_SHOW);
end;
{code}
Now run your program, click the button and tell us if the Groupbox is visible now.
Just drop a TButton to your form. Double click it. Now put this code on the OnclickEvent:
{code}
procedure TAPlnFm.Button1Click(Sender: TObject);
begin
ShowWindow(REZULTATAI.Handle, SW_SHOW);
end;
{code}
Now run your program, click the button and tell us if the Groupbox is visible now.
> {quote:title=Roy Lambert wrote:}{quote}
> Deividas
>
>
>
> I'm guessing here that the groupbox is hidden until the ATPAZ buttin is clicked. If so then at some point in the program its Visible property is being set to false and it should be set to true when the button is clicked but it isn't.
>
> Roy Lambert
Thank You for response...
No Groupbox "REZULTATAI" displayed at initial program start
I have started program in another computer with windows 98 - for my suprise, it started without groupbox "REZULTATAI" as it starts in Windows XP.
In code I did not find any "Visible" properties
Deividas
I'm guessing here that the groupbox is hidden until the ATPAZ buttin is clicked. If so then at some point in the program its Visible property is being set to false and it should be set to true when the button is clicked but it isn't.
Roy Lambert
> {quote:title=Balazs Szekely wrote:}{quote}
> > With Winsight tool whole "TGroupBox" displaying as "hidden"
>
> On form show do something like this:
> ShowWindow(REZULTATAI.Handle, SW_SHOW);
>
> Edited by: Balazs Szekely on Jan 4, 2015 1:11 PM
Sorry, I am not good programmer in Delphi,
How I must implement the "showwindow" in my code ?
> With Winsight tool whole "TGroupBox" displaying as "hidden"
On form show do something like this:
ShowWindow(REZULTATAI.Handle, SW_SHOW);
Edited by: Balazs Szekely on Jan 4, 2015 1:11 PM