Skip navigation.
Home
The QNX Community Portal

View topic - How make a Splash window in PhAB?

How make a Splash window in PhAB?

Isn't the name clear?

How make a Splash window in PhAB?

Postby Fregl » Wed Jun 17, 2009 11:51 am

Hello. Here is situation:
i have 2 windows, let's say "base" and "w0".
"base" is base window, and "w0" is "splash window".

how do such sequense:
make and show "w0" before "base" realize,
update splash values in base Pt_CB_WINDOW_OPENING
destroy "w0" after "base" realize?

if i do like this:
Code: Select all
setup_base(..)
{
 if(apnifo->reason=ABR_PREREALIZE)
 {
  splash = ApCreateModule(ABM_w0,NULL,NULL);
 }
else
{
 PtDestroyWidget(splash);
}
}

base_opening(...)
{
//updating splash values such as progress gauge an so on...
}

then "w0" appears when "base" appears too. not before "base", in that time so "base" appears...

please help me :)
Fregl
Active Member
 
Posts: 41
Joined: Thu Jun 05, 2008 10:43 am
Location: Ukraine

RE: How make a Splash window in PhAB?

Postby bedmond » Wed Jun 24, 2009 2:18 am

I am confused on what you are trying to do. Usually a splash screen comes up while the main app is setting things up. What you are doing is bringing up 2 windows at the same time. If you want w0 to come up first then make it the window that opens at startup in the properties of the app and remove the base window. Then sometime later when things are ready start the base window.

Brian
bedmond
Active Member
 
Posts: 19
Joined: Tue Apr 17, 2007 2:13 am

RE: How make a Splash window in PhAB?

Postby Fregl » Wed Jun 24, 2009 1:35 pm

this problem was solved by creating window from scratchm not module like i did earlier...
then do PtFlush - and all works how i need
Fregl
Active Member
 
Posts: 41
Joined: Thu Jun 05, 2008 10:43 am
Location: Ukraine


Return to GUI Programming

Who is online

Users browsing this forum: Google [Bot] and 2 guests