How to dislplay the default tab page directly when use PtPa

bridged with qdn.public.qnxrtp.photon
Post Reply
zhz

How to dislplay the default tab page directly when use PtPa

Post by zhz » Fri Dec 12, 2003 2:30 am

I have a program have a PtPanelGroup widget.And this widget has 6
page(picture module -- internal link)(ABM_PicTab***,ABW_PicTab***).
I have set the source of PtPanelGroup :

Select mode --- Pt_PG_SINGLE_TAB
Current Panel(index) --- 0
and a callback function "SwitchTo_TabPic"

But when I run the program ,in PtPanelGroup ,there is no page displayed
here.
When I select 0 pane title through menu,still no page display.
There is page displayed there until I switch to other different page index.
After that When I select 0 pane title through menu,the right page of 0
display here.

How to set the default page when the program running,the default page will
directly display in PtPanelGroup.


begin 666 SwitchTo_TabPic.c
M+RH@62!O('4@<B @($0@92!S(&,@<B!I(' @="!I(&\@;B @(" @(" @(" @
M(" @(" @(" @(" @*B\-"B\J(" @(" @(" @(" @(" @(" @(" @(" @(" @
M($%P<$)U:6QD97(@4&AO=&]N($-O9&4@3&EB("HO#0HO*B @(" @(" @(" @
M(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @5F5R<VEO;B R+C Q(" J
M+PT*#0HO*B!3=&%N9&%R9"!H96%D97)S("HO#0HC:6YC;'5D92 \<W1D:6\N
M:#X-"B-I;F-L=61E(#QS=&1L:6(N:#X-"B-I;F-L=61E(#QU;FES=&0N:#X-
M"B-I;F-L=61E(#QS=')I;F<N:#X-"@T*+RH@3&]C86P@:&5A9&5R<R J+PT*
M(VEN8VQU9&4@(F%B;&EB<RYH(@T*(VEN8VQU9&4@(F%B:6UP;W)T+F@B#0HC
M:6YC;'5D92 B<')O=&\N:"(-"@T*#0II;G0-"E-W:71C:%1O7U1A8E!I8R@@
M4'17:61G971?=" J=VED9V5T+"!!<$EN9F]?=" J87!I;F9O+"!0=$-A;&QB
M86-K26YF;U]T("IC8FEN9F\-"BD-"@T*>PT*#0H-"B @("!0=%!A;F5L1W)O
M=7!#86QL8F%C:U]T("IP9V-B(#T-"B @(" @("A0=%!A;F5L1W)O=7!#86QL
M8F%C:U]T*BDH8V)I;F9O+3YC8F1A=&$I.PT*#0H@(" @+RH@96QI;6EN871E
M("=U;G)E9F5R96YC960G('=A<FYI;F=S("HO#0H@(" @=VED9V5T(#T@=VED
M9V5T+"!A<&EN9F\@/2!A<&EN9F\L(&-B:6YF;R ](&-B:6YF;SL-"@T*#0H-
M"@T*#0H@(" @+RH@0VQE87(@=&AE(%!T4&%N96Q'<F]U<"!D:7-P;&%Y("HO
M#0H@(" @4'1#;&5A<E=I9&=E="AW:61G970I.PT*#0H-"@T*#0H-"B @(" O
M*B!(97)E('=E('5S92!T:&4@<&%N96P@:6YD97AE<R!R871H97(@=&AA;B!T
M:71L97,-"B @(" @("!T;R!F:6=U<F4@;W5T(&-U<G)E;G0@<&%N96PN(%1H
M:7,@:7,@9&5T97)M:6YI<W1I8RP-"B @(" @("!P<F]V:61E9"!T:&4@4'1?
M05)'7U!'7U!!3D5,7U1)5$Q%4R!R97-O=7)C90T*(" @(" @(&ES;B=T(&-H
M86YG960N("HO#0H-"B @("!0=%-E=%!A<F5N=%=I9&=E="AW:61G970I.PT*
M#0H@(" @<W=I=&-H*'!G8V(M/FYE=U]P86YE;%]I;F1E>"D-"B @("![#0H@
M(" @(" @8V%S92 P.@T*#0H@(" @(" @(" @(" O*B!0;W!U;&%T92!T:&4@
M9&ES<&QA>2X@($YO=&4@=&AA="!W92!P<F]V:61E#0H@(" @(" @(" @(" @
M("!W:61G970@*'1H92!0=%!A;F5L1W)O=7 @<&]I;G1E<BD@87,@=&AE#0H@
M(" @(" @(" @(" @("!P87)E;G0N("!);B!T:&ES(&-A<V4L(%!T4&%N96Q'
M<F]U<"!A8V-E<'1S#0H@(" @(" @(" @(" @("!T:&4@=VED9V5T<R!A<R!C
M:&EL9')E;BX@*B\-"@T*(" @(" @(" @(" @("!!<$-R96%T94UO9'5L92A!
M0DU?4&EC5&%B5')K4W0L3E5,3"Q.54Q,*3L-"B @(" @(" @(" @(" @4'12
M96%L:7IE5VED9V5T*$%"5U]0:6-486)4<FM3="D[#0H-"B @(" @(" @(" @
M(&)R96%K.PT*#0H@(" @(" @(&-A<V4@,3H-"B @(" @(" @(" @("!!<$-R
M96%T94UO9'5L92A!0DU?4&EC5&%B5')O=6)L95-T+$Y53$PL3E5,3"D[#0H@
M(" @(" @(" @(" @4'1296%L:7IE5VED9V5T*$%"5U]0:6-486)4<F]U8FQE
M4W0I.PT*( T*(" @(" @(" @(" @8G)E86L[#0H-"B @(" @(" @8V%S92 R
M.@T*(" @(" @(" @(" @($%P0W)E871E36]D=6QE*$%"35]0:6-486))3U-T
M+$Y53$PL3E5,3"D[#0H@(" @(" @(" @(" @4'1296%L:7IE5VED9V5T*$%"
M5U]0:6-486))3U-T*3L-"B @(" -"B @(" @(" @(" @(&)R96%K.PT*(" @
M(" @("!C87-E(#,Z#0H@(" @(" @(" @(" @07!#<F5A=&5-;V1U;&4H04)-
M7U!I8U1A8DUO=&]R4'5M<$=R;W5P4W0L3E5,3"Q.54Q,*3L-"B @(" @(" @
M(" @("!0=%)E86QI>F57:61G970H04)77U!I8U1A8DUO=&]R4'5M<$=R;W5P
M4W0I.PT*#0H@(" @(" @(" @("!B<F5A:SL-"@T*(" @(" @("!C87-E(#0Z
M#0H@(" @(" @(&-A<V4@-3H-"B @(" @(" @8V%S92 V.@T*(" @(" @("!C
M87-E(#<Z#0H@(" @(" @(" @(" @07!#<F5A=&5-;V1U;&4H04)-7U!I8U1A
M8E1R:T=R;W5P4W0L3E5,3"Q.54Q,*3L-"B @(" @(" @(" @("!0=%)E86QI
M>F57:61G970H04)77U!I8U1A8E1R:T=R;W5P4W0I.PT*(" @(" @(" @(" @
M(" @(" @(" @(&)R96%K.PT*#0H@(" @?0T*#0H@(" @<F5T=7)N*"!0=%]#
/3TY424Y512 I.PT*#0I]
`
end

huang

Re: How to dislplay the default tab page directly when use

Post by huang » Fri Dec 12, 2003 7:02 am

If you set all default and the index = 0 . It should display the 0 page.

zhz

Re: How to dislplay the default tab page directly when use

Post by zhz » Fri Dec 12, 2003 8:53 am

"huang"
If you set all default and the index = 0 . It should display the 0 page.
Seems no use.

I think that
the PtPanelGroup use Picture module as its page, And there is no code
running CreateModule function to create Picture module but
"SwitchTo_TabPic",I debug the program ,when the PtPanelGroup Realized ,it
does not call SwitchTo_TabPic but select other index of the page.

Do I need to add something else?

huang

Re: How to dislplay the default tab page directly when use

Post by huang » Tue Dec 16, 2003 9:14 am

PtAddCallback( ABW_PtPanelGroup_XXX, Pt_CB_PG_PANEL_SWITCHING ,
functioncallback , NULL ) ;

Do you create you application by IDE?
"huang"
If you set all default and the index = 0 . It should display the 0 page.


Seems no use.

I think that
the PtPanelGroup use Picture module as its page, And there is no code
running CreateModule function to create Picture module but
"SwitchTo_TabPic",I debug the program ,when the PtPanelGroup Realized ,it
does not call SwitchTo_TabPic but select other index of the page.

Do I need to add something else?

huang

Re: How to dislplay the default tab page directly when use

Post by huang » Wed Dec 17, 2003 1:48 am

PtSetResource( ABW_PtPanelGroup_XXX , Pt_ARG_PG_CURRENT_INDEX , 0 , 0 ) ;

At you application starting position.

Post Reply

Return to “qdn.public.qnxrtp.photon”