hi all
i created 2 panes :
1- pane1 is brought to front and contains a "button1" , this button takes a snapshot of pane2
2- pane2 is behind
snapshot is taken correctly and saved , but after that i cannot access button1 .. it is still on top and enabled but "unclickable" , actually all other controls on pane1 are inaccessible.
p.s : removing the highlighted line : ( pane2.Snapshot.WriteToStream(Out)) would make pane1 accessible again
your help is greatly appreciated
i created 2 panes :
1- pane1 is brought to front and contains a "button1" , this button takes a snapshot of pane2
2- pane2 is behind
B4X:
sub Button1_Click
Dim fn As String = "filename" & "_" & DateTime.Date(DateTime.Now) & ".jpg"
Dim Out As OutputStream = File.OpenOutput(File.Dirdata("appname") & "\PDFs\" , fn ,False)
pane2.Snapshot.WriteToStream(Out)
Out.Flush
Out.Close
end sub
snapshot is taken correctly and saved , but after that i cannot access button1 .. it is still on top and enabled but "unclickable" , actually all other controls on pane1 are inaccessible.
p.s : removing the highlighted line : ( pane2.Snapshot.WriteToStream(Out)) would make pane1 accessible again
your help is greatly appreciated