+ Reply to Thread
Results 1 to 5 of 5
Problem with UiToolbar_Text
This is a discussion on Problem with UiToolbar_Text within the Modding & Development forums, part of the Meizu M8 category; Hello everyone! I'm trying to do an app called Chuck Norris Facts which will allow you to read and know ...
-
06-28-2010 #1
Problem with UiToolbar_Text
Hello everyone!
I'm trying to do an app called Chuck Norris Facts which will allow you to read and know about his facts
.
But the thing is I have difficulties using UiToolbar_Text, when I change its text in the program I have to scroll the textbox so that the text refreshes
Here's an extract of the code :
And later in the code :Code:textBox.SetLineSpace(10); textBox.SetPos(0,0,GetWidth(),GetHeight()-MZM_HEIGHT_TEXT_TOOLBAR); textBox.SetText(facts[RandNumber]); textBox.SetReadOnly(true); AddUiWin(&textBox);
But when this executes I have to scroll the textBox in order to refresh the text, have I forgot something?Code:textBox.SetText(facts[RandNumber]);
-
06-28-2010 #2
update with Invalidate();
(or UpdateWindow(); ??)
did you use:
MZ_DECLARE_DYNAMIC(Wnd);
and
MZ_IMPLEMENT_DYNAMIC(Wnd)
-
Member who thanked crimson05 for the post:
-
07-01-2010 #3Passing By
- Join Date
- Sep 2009
- Posts
- 9
- Thanks
- 6
Thanked 1 Time in 1 PostHaha, Sheldon and Wolowitz > The bigbang theory! Verygood tv series.
-
07-01-2010 #4
Yeah you're right dude!!!
Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitates lizard, lizard eats paper, paper disproves Spock, Spock vaporizes rock, and as it always has, rock crushes scissors.Meizu M8 SE White 16 GB with PET screen. Fw : 9.9.23
Headphones : Sennheiser HD 212Pro and Sony MDR-SA 5000
-
07-01-2010 #5
:D
I am a horny engineer, I never joke about math or sex.



Reply With Quote