Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
36 user(s) are online (30 user(s) are browsing Forums)

Members: 1
Guests: 35

Chris, more...

Support us!

Headlines

 
  Register To Post  

WA_PubScreenName not working with PPC build
Just popping in
Just popping in


See User information
I have an odd problem with the WA_PubScreenName tag, which I am using in a call to open a window using ReAction. Here is a snippet of the code:

m_poWindowObj = (Object *) WindowObject,
WA_Title, (ULONG) a_pccTitle, WINDOW_Position, WPOS_CENTERSCREEN,
WA_PubScreenName, a_pccScreenName, WA_PubScreenFallBack, TRUE,
TAG_DONE);

This code is multiplatform and can be compiled for m68k/OS3 or PPC/OS4. If I run the m68k build on OS4 then it works and the screen is opened successfully, but if I run the PPC build on OS4 then the screen is not opened, and the window opens on Workbench.

Does anyone have any ideas?

Go to top
Re: WA_PubScreenName not working with PPC build
Quite a regular
Quite a regular


See User information
Do you have to do something different with the os4 version like ensure the public screen exists and tick the box that says auto, or something like that?

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top
Re: WA_PubScreenName not working with PPC build
Just can't stay away
Just can't stay away


See User information
@Hitman

on OS4 check Prefs/Screens if you have such screen defined and set "Open/close automatically" check.

Go to top
Re: WA_PubScreenName not working with PPC build
Home away from home
Home away from home


See User information
@Hitman,

AS the 68k version opens the screen as expected it can't be a problem with your screen database, so I would check the scopes of the variables, passing the actual screen name to the tag.

Is a_pccScreenName valid an initialised when compiled for OS4?

Add some debugprintf etc to check.

Go to top
Re: WA_PubScreenName not working with PPC build
Just popping in
Just popping in


See User information
@broadblues

I finally had time to experiment with this and in order for it to work with the PPC build, I have to define a screen with the appropriate name in Prefs/Screens. And this brought back a memory of having to do this many years ago, on a different OS4 system, when I was working on this project. So that makes sense.

But what doesn't make sense, is the fact that the m68k version automatically opens this screen, even if it is not defined in Prefs/Screens! And I see no mention in the AutoDocs of automatic creation of non-defined screens. So it's a bit mysterious!

Go to top
Re: WA_PubScreenName not working with PPC build
Amigans Defender
Amigans Defender


See User information
@Hitman

Quote:
But what doesn't make sense, is the fact that the m68k version automatically opens this screen, even if it is not defined in Prefs/Screens!

Does OS3.x even have the Screens prefs editor? I thought it was an OS4 addition.

The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project