B BarrySumpter Active Member Licensed User Longtime User Apr 15, 2012 #1 Hi all, Super noob. Still hacking away. I've been using a lot of msgbox to debug and have just noticed there are no icons on my msgbox. I'm used to being able to define which icon to use in my msgbox. http://msdn.microsoft.com/en-us/library/sfw6660x%28v=vs.85%29.aspx Are there no built in icons in Android like vbInformation or vbQuestion ? Code: Copy Dim result As Int result = Msgbox2("This is the message", "This is the title", "Good", "", "Bad", LoadBitmap (File.DirAssets, "smiley.gif")) If result = DialogResponse.Positive Then ... So for each and every one of my different Andoid apps I have to install my msgbox gifs in my File.DirAssets? Last edited: Apr 15, 2012
Hi all, Super noob. Still hacking away. I've been using a lot of msgbox to debug and have just noticed there are no icons on my msgbox. I'm used to being able to define which icon to use in my msgbox. http://msdn.microsoft.com/en-us/library/sfw6660x%28v=vs.85%29.aspx Are there no built in icons in Android like vbInformation or vbQuestion ? Code: Copy Dim result As Int result = Msgbox2("This is the message", "This is the title", "Good", "", "Bad", LoadBitmap (File.DirAssets, "smiley.gif")) If result = DialogResponse.Positive Then ... So for each and every one of my different Andoid apps I have to install my msgbox gifs in my File.DirAssets?
warwound Expert Licensed User Longtime User Apr 16, 2012 #21 Nope there's no way to do that. You might be able to define a local variable in a module and use that: Code: Copy ' this code will be in a module that is NOT b4aIcons code module Dim Icons As IconType Icons=b4aIcons.Icons ' now in this module you can use Icons.??? That's untested but i think will work. Martin. Upvote 0
Nope there's no way to do that. You might be able to define a local variable in a module and use that: Code: Copy ' this code will be in a module that is NOT b4aIcons code module Dim Icons As IconType Icons=b4aIcons.Icons ' now in this module you can use Icons.??? That's untested but i think will work. Martin.
B BarrySumpter Active Member Licensed User Longtime User Apr 16, 2012 #22 Code: Copy #Region My collection of functions Sub SomeThing() ... End Sub Sub Another() ... End Sub #End Region Attachments IconTypesAsRegion.zip IconTypesAsRegion.zip 16.5 KB · Views: 342 Last edited: Apr 16, 2012 Upvote 0
Code: Copy #Region My collection of functions Sub SomeThing() ... End Sub Sub Another() ... End Sub #End Region
B BarrySumpter Active Member Licensed User Longtime User Apr 16, 2012 #24 If I wanted to display a list or a grid of those graphics, how would I setup a loop to run thru the enumeration? Upvote 0
If I wanted to display a list or a grid of those graphics, how would I setup a loop to run thru the enumeration?
warwound Expert Licensed User Longtime User Apr 16, 2012 #25 It's actually far more complicated to iterate through a Type's fields than you would hope for: http://www.b4x.com/forum/libraries-...ype-library-parameter-question.html#post53499. The functionality to do what you want is not part of B4A - as explained in that thread - and using the Reflection library is the only (far from straightforward) solution . Martin. Upvote 0
It's actually far more complicated to iterate through a Type's fields than you would hope for: http://www.b4x.com/forum/libraries-...ype-library-parameter-question.html#post53499. The functionality to do what you want is not part of B4A - as explained in that thread - and using the Reflection library is the only (far from straightforward) solution . Martin.
B BarrySumpter Active Member Licensed User Longtime User Apr 17, 2012 #26 Bummer. Sad face * 10. Maybe the b4a designers haven't had time to sort it out as yet. Would like to have sorted that out. Thanks for the support. Last edited: Apr 17, 2012 Upvote 0
Bummer. Sad face * 10. Maybe the b4a designers haven't had time to sort it out as yet. Would like to have sorted that out. Thanks for the support.