+ Reply to Thread
Results 21 to 35 of 35
Follow me creating my first M8 app
This is a discussion on Follow me creating my first M8 app within the Modding & Development forums, part of the Meizu M8 category; Originally Posted by Err0r Aha, no. I want to write plain text. Do you know the command? Did you install ...
-
02-11-2010 #21
-
02-11-2010 #22
No button, just regular text. Like when you go to Settings > About > Legal.
Can't wait to play with the Meizu MX!
-
02-11-2010 #23
-
02-11-2010 #24
is a caption enough?
Google Translate
-
02-11-2010 #25Senior Member
- Join Date
- Sep 2009
- Posts
- 380
- Thanks
- 3
Thanked 138 Times in 53 PostsDo it the C++ way...followers+=1int followers = 0; //Donīt forget that
followers++;
This things with m_ or most likly no commands. These are variables and the m_ is added so show that it is a member variable. This means this belongs to a class.
You cant write plain text. You need to create and insert a label object first and then set text.
Count me to helpers
int helpers;
helpers+=2; //crimson and me lol
Or really geek way (and to show what a member variable is
Code:enum E_Role { learner = 0, helper }; class cForumMembers { std::string m_Name; E_Role m_Role; public: cForumMembers(std::string xName) { this->m_Name = xName; } }; class cLearner : public ForumMembers { public: cLearner(std::string xName) : cForumMembers(xName) { this->m_Role = learner; } }; class cHelper : public ForumMembers { public: cHelper(std::string xName) : cForumMembers(xName) { this->m_Role = helper; } }; int main() { std::vector<cForumMembers> vPeople; vPeople.push_back(new cLearner("Error")); vPeople.push_back(new cHelper("Crimson")); vPeople.push_back(new cHelper("r3wDy")); }Last edited by r3wDy; 02-11-2010 at 11:30 AM.
-
02-11-2010 #26Member
- Join Date
- Jul 2009
- Posts
- 226
- Thanks
- 34
Thanked 83 Times in 30 Postsuse UiCaption, like crimson05 said above.
1. declare a memeber in header file
2. in the implementation cpp file. in method, OnInitDialog,Code:UiCaption m_text;
the code above should work, but i haven't tested itCode:m_text.SetPos(10, 10, GetWidth(), MZM_HEIGHT_CAPTION); // to whereever you like, MZM_HEIGHT_CAPTION is a predefined value in SDK m_text.SetTextColor(RGB(128, 20, 55)); // the text colour for whatever you like m_text.SetText(_T("This is a demo")); AddUiWin(&m_text);
-
02-11-2010 #27
@Err0r:
For the case You need it - if You try to create an edit Field (UiEdit), don't declare it as a pointer like it is wirtten in an example in the SDK documentation:
Visual Studio will say that You have to use a -> to access a class structure (which is totally right). The problem is, that the application crashes when trying to add this class to its parent:Code:UiEdit* m_edit;
Instead, declare UiEdit as any other UI-component (without *).Code:AddUiWin(&m_edit);
Maybe Visual Studio won't agree with that and won't show it's Intelli-Sense feature, but on the M8 it will work fine.
PS: If You are looking for more code examples, try Google Code Search.
-
02-11-2010 #28Senior Member
- Join Date
- Sep 2009
- Posts
- 380
- Thanks
- 3
Thanked 138 Times in 53 PostsThis must crash ur application. Cause adding * you create a pointer, and callind addwin this way gives the adress of the pointer to the function (a pointer to a pointer).AddUiWin(&m_edit);
Just call
AddUiWin(m_edit);
if m_edit is already a pointer
But anyway this is just geeking around
we will confuse error more than we help
-
02-11-2010 #29
Exactly. I just want to share this information with you because in one (the only one) example in the SDK documentation is imho wrong, because there it's initialized as a pointer
(since there are many people just learning the SDK out of code examples)
Currently I'm stuck in setting an align to a UiStatic class.
All my text fields come with centered text. Any suggestions?
-
02-11-2010 #30
Another thing. How do you create an image that covers the entire background? SetPos(0,0,...) still creates some space above and to the left of the image.
Can't wait to play with the Meizu MX!
-
02-11-2010 #31
-
02-14-2010 #32
Google Translate
MzDrawText
-
02-17-2010 #33

I've decided for my first app to be a fart app. It will contain functions such as fart selection, timed farts and fart recording.
I've attached version 0.1, and a lot of code is borrowed from crimson05's SoundBox app.
To try it out, make a folder and extract to: \\Disk\Programs\FartBot\Last edited by Err0r; 02-17-2010 at 04:51 PM.
Can't wait to play with the Meizu MX!
-
Member who thanked Err0r for the post:
-
02-17-2010 #34Valued Member
- Join Date
- Mar 2009
- Location
- Vienna, Austria
- Posts
- 1,706
- Thanks
- 54
Thanked 269 Times in 146 PostsWhat a funny idea

- congrats !!!
-
02-17-2010 #35Junior Member
- Join Date
- Aug 2009
- Posts
- 61
- Thanks
- 10
Thanked 0 Times in 0 Posts
Similar Threads
-
Creating modified xip.bin
By cybermessiah in forum Modding & DevelopmentReplies: 7Last Post: 01-28-2010, 03:02 PM -
Meizu Officer said: next version (0.910) with ussd and no +66 sms on follow-up
By Auttapong in forum General Meizu M8Replies: 1Last Post: 06-03-2009, 03:36 AM -
[Follow Me]How To:Use DFU tools
By Da_Vinci in forum TechnicalReplies: 20Last Post: 07-15-2008, 08:16 AM -
Creating Music Folders
By Stimpeh in forum TechnicalReplies: 2Last Post: 11-14-2007, 10:32 AM -
Need help creating a DVD from these files.
By Borat in forum General ChatReplies: 0Last Post: 10-07-2007, 12:56 PM





Reply With Quote
