Page 1 of 1

uText & uTabText

Posted: Sun Jun 01, 2014 9:07 am
by DevBoyLars
Hi there,
doesn't uText and uTabText not work any longer in the latest mobGUI?

I tried to change a lable of a field to the name of the pushed button, like...

set the contents of field MyField to the uTabText of me

Re: uText & uTabText

Posted: Sun Jun 01, 2014 9:14 am
by sefrojones
It sounds like you are going through the summer school 1 lessons using the most recent version of MobGUI. If this is the case, there are some big changes. I believe you are looking for the newer syntax-


mgText and mgOptionText

If you are indeed going through the Summer School stacks, I believe Elanor posted a short video explaining the differences in the lesson materials.


Hope this helps!

--Sefro

edit: Here's where it should be:
Lessons.png

Re: uText & uTabText

Posted: Sun Jun 01, 2014 9:16 am
by DevBoyLars
Hehe, yes I'm going through Summer School 1 to get a fresh up on LiveCode, because I didn't get time to use it in the last 10-12 month.

Ok, but do you know where to find this video?

Re: uText & uTabText

Posted: Sun Jun 01, 2014 9:17 am
by sefrojones
It should be in your lessons in your account. I edited an image into my last post. :D

Re: uText & uTabText

Posted: Sun Jun 01, 2014 9:20 am
by DevBoyLars
Ohhh.. ok - I skipped the pre-lesson :D

Thanks a lot!

Re: uText & uTabText

Posted: Sun Jun 01, 2014 9:23 am
by DevBoyLars
Hm.. this is how it looks in my Summer School 1 - no special video for this x_x

Re: uText & uTabText

Posted: Sun Jun 01, 2014 9:27 am
by sefrojones
Hmmm. I think if you e-mail support, it's possible they would add it to your lessons somehow. In the meantime, the MobGUI site http://mobgui.com/docs.php?CLEAR=1 has searchable documentation. :D

Re: uText & uTabText

Posted: Sun Jun 01, 2014 9:28 am
by DevBoyLars
Thank you, I write the support right now :D

Re: uText & uTabText

Posted: Mon Jun 02, 2014 6:42 pm
by wizard
Please see the posting - in this forum - entitled "Setting mobGUI 1.24 fields for desktop use " - the MobGui developer has confirmed that the use of uText is not currently supported in Version 1.24. Unfortunately, V1.24 took away several areas that had worked just fine - this being one of them. Another was the ability to move text in a button up/down.

Re: uText & uTabText

Posted: Tue Jun 03, 2014 4:48 pm
by DevBoyLars
Ok, now I rebuild the stack with the new mobGUI, but this still doesn't work:


set the mgText of group "NavTitle" to the mgOptionText of me

Which I use in the group (grouped IconButtons for the tab-bar) to set the name.

But if I put the following line directly in the mouseUp of the button itself, it works:

set the mgText of group "NavTitle" to the mgText of me

So, why doesn't the first line work?

Re: uText & uTabText

Posted: Tue Jun 03, 2014 5:01 pm
by splash21
Hi, DevBoyLars - if you want to catch the mouseUp, etc. events with a group instead of the individual button objects, make sure you pass the message in the button's script ....

Code: Select all

on mouseDown
   pass mouseDown
end mouseDown
then the group will receive the message.

Re: uText & uTabText

Posted: Tue Jun 03, 2014 7:31 pm
by wizard
If you are using MobGui 1.24 the navbar text now requires that you use a label and put the text on the label. In the earlier releases of mobgui we could control the text of the navbar directly without that step.

Re: uText & uTabText

Posted: Tue Jun 03, 2014 8:07 pm
by DevBoyLars
I did both, but it doesn't work.

I uploaded two version. One that I want to get work (with "pass") and one, which already works, but with bad code -.-

Maybe someone can help me :)

Re: uText & uTabText

Posted: Tue Jun 03, 2014 9:34 pm
by sefrojones
I think mgOptiontext only works with groups of option buttons, and since you are using icon buttons, it may not work. I added a (sloppy) group of option buttons that work. You'll notice the buttons don't have mouseup handlers in them at all, and the script is in the group .Hope this helps.

--sefro

Re: uText & uTabText

Posted: Tue Jun 03, 2014 9:40 pm
by DevBoyLars
Thank you - I know the Option-Button-Way, but these buttons are without an icon, which is needed :)