Mega Search
23.2 Million


Sign Up

Make a donation  
RUN DELPHI 4 APP IN WINDOWS XP [Edit]  
News Group: embarcadero.public.delphi.vcl.components.using

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

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 4-Jan-2015, at 12:09 PM EST
From: Deividas Ceinorid
 
Re: RUN DELPHI 4 APP IN WINDOWS XP [Edit]  
News Group: embarcadero.public.delphi.vcl.components.using
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.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 5-Jan-2015, at 6:00 AM EST
From: balazs szekely
 
Re: RUN DELPHI 4 APP IN WINDOWS XP [Edit]  
News Group: embarcadero.public.delphi.vcl.components.using
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.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 5-Jan-2015, at 5:58 AM EST
From: balazs szekely
 
Re: RUN DELPHI 4 APP IN WINDOWS XP [Edit]  
News Group: embarcadero.public.delphi.vcl.components.using
> {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

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 5-Jan-2015, at 12:26 AM EST
From: Deividas Ceinorid
 
Re: RUN DELPHI 4 APP IN WINDOWS XP [Edit]  
News Group: embarcadero.public.delphi.vcl.components.using
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

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 5-Jan-2015, at 12:17 AM EST
From: Roy Lambert
 
Re: RUN DELPHI 4 APP IN WINDOWS XP  
News Group: embarcadero.public.delphi.vcl.components.using
> {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 ?

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 4-Jan-2015, at 11:01 PM EST
From: Deividas Ceinorid
 
Re: RUN DELPHI 4 APP IN WINDOWS XP [Edit]  
News Group: embarcadero.public.delphi.vcl.components.using
> 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

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 4-Jan-2015, at 1:12 PM EST
From: balazs szekely