Restored from previous forum. Originally posted by Pantcho!.
it seems when i do a panel with 2 tabs
if i put a richedit window in the first panel using the Richedit lib
its ok but when i am going to the 2nd panel tab and then return to the first panel tab
the Richedit window...Disappers!!!
?!?!?
plz help.
thanks
---
Registered Purebasic Member!
---
Resp'cta!
Richedit window Within PanelGadget
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by WolfgangS.
Hi !
should not happen. Compare with this code ...
MFG
WolfgangS
Hi !
should not happen. Compare with this code ...
MFG
WolfgangS
Code: Select all
#ID_MWindow =0 ; ID Mother Window#ID_MPanel =1 ; ID Mother Panel
#ID_Frame3d =2 ; ID Frame3d
dID_Rich =500 ; dynamic ID RichGadget
hnd_MWindow=OpenWindow(#ID_MWindow,100,100,640,480,#PB_Window_SystemMenu,"Bla")
If CreateGadgetList(WindowID())
PanelGadget(#ID_MPanel,0,28,640,365)
AddGadgetItem(#ID_MPanel,-1,"Info")
Frame3DGadget(#ID_Frame3d,0,0,640,300,"bla",0)
OpenRichEdit(GadgetID(#ID_Frame3d),dID_Rich,0,0,635,290,"RichEdit No"+Str(dID_Rich)) : dID_Rich+1
AddGadgetItem(#ID_MPanel,-1,"Info")
Frame3DGadget(#ID_Frame3d,0,0,640,300,"bla",0)
OpenRichEdit(GadgetID(#ID_Frame3d),dID_Rich,0,0,635,290,"RichEdit No"+Str(dID_Rich)) : dID_Rich+1
AddGadgetItem(#ID_MPanel,-1,"Info")
Frame3DGadget(#ID_Frame3d,0,0,640,300,"bla",0)
OpenRichEdit(GadgetID(#ID_Frame3d),dID_Rich,0,0,635,290,"RichEdit No"+Str(dID_Rich)) : dID_Rich+1
ClosePanelGadget() ; <- very important (huhu Paul :wink:
Else : End
EndIf
Repeat
Event=WaitWindowEvent()
Until Event=#PB_EventCloseWindow-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm