iOS Question Need help to create Slide Panel

Keith Yong

Active Member
Licensed User
Longtime User
Hi, can you assist me how to create a slide panel like below?

IMG_8636.PNG
 

Keith Yong

Active Member
Licensed User
Longtime User
Thanks, I manage to get it, by the way, how do I check the status of the Side Menu whether is open? In order for me to use the properties for "smc.CloseMenu"
Can I replace the icon on TopRightButtons?
 
Upvote 0

JanPRO

Well-Known Member
Licensed User
Longtime User
Hi,
is there a way I press on anywhere on Page1 to close the menu rather than gesture or TopLeftButton?
Yes, when the sidemenu was opened you can add a panel which covers the whole page to your page and set it's color transparent. Then you can use the click event to close the sidemenu and remove the panel.

And how about changing the icon for TopLeftButton?
Create a new BarButton and use the InitializeBitmap method.

Jan
 
Upvote 0

Keith Yong

Active Member
Licensed User
Longtime User
Hi,

Yes, when the sidemenu was opened you can add a panel which covers the whole page to your page and set it's color transparent. Then you can use the click event to close the sidemenu and remove the panel.


Create a new BarButton and use the InitializeBitmap method.

Jan

Thanks, I manage to change the icon for TopLeftButton, however I still got no idea how to add a panel to cover the whole page. Can you give some sample code on this?
 
Upvote 0

JanPRO

Well-Known Member
Licensed User
Longtime User
Hi,

I just checked the functions of the wrapper and the features you wanted are available (no need for adding panel to page):
B4X:
Sub ShowShadow(SM As SideMenuController, Show As Boolean)
    Dim NaObj As NativeObject = SM
    NaObj.SetField("showsShadow",Show)
End Sub

Sub CloseByClick(SM As SideMenuController)
    Dim NaObj As NativeObject = SM
    NaObj.SetField("closeDrawerGestureModeMask",96)
End Sub
Jan
 
Upvote 0

Keith Yong

Active Member
Licensed User
Longtime User
Hi,

I just checked the functions of the wrapper and the features you wanted are available (no need for adding panel to page):
B4X:
Sub ShowShadow(SM As SideMenuController, Show As Boolean)
    Dim NaObj As NativeObject = SM
    NaObj.SetField("showsShadow",Show)
End Sub

Sub CloseByClick(SM As SideMenuController)
    Dim NaObj As NativeObject = SM
    NaObj.SetField("closeDrawerGestureModeMask",96)
End Sub
Jan


Thanks Jan! It works prefectly!
 
Upvote 0

narek adonts

Well-Known Member
Licensed User
Longtime User
I think t
Hi,

I just checked the functions of the wrapper and the features you wanted are available (no need for adding panel to page):
B4X:
Sub ShowShadow(SM As SideMenuController, Show As Boolean)
    Dim NaObj As NativeObject = SM
    NaObj.SetField("showsShadow",Show)
End Sub

Sub CloseByClick(SM As SideMenuController)
    Dim NaObj As NativeObject = SM
    NaObj.SetField("closeDrawerGestureModeMask",96)
End Sub
Jan


I think that you should create a SMCExtra with all the hidden functions )))
 
Upvote 0
Top