uText & uTabText

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, robinmiller, kevinmiller, malte, splash21

Post Reply
DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

uText & uTabText

Post by DevBoyLars » Sun Jun 01, 2014 9:07 am

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

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: uText & uTabText

Post by sefrojones » Sun Jun 01, 2014 9:14 am

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
Last edited by sefrojones on Sun Jun 01, 2014 9:17 am, edited 1 time in total.

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: uText & uTabText

Post by DevBoyLars » Sun Jun 01, 2014 9:16 am

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?

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: uText & uTabText

Post by sefrojones » Sun Jun 01, 2014 9:17 am

It should be in your lessons in your account. I edited an image into my last post. :D

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: uText & uTabText

Post by DevBoyLars » Sun Jun 01, 2014 9:20 am

Ohhh.. ok - I skipped the pre-lesson :D

Thanks a lot!

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: uText & uTabText

Post by DevBoyLars » Sun Jun 01, 2014 9:23 am

Hm.. this is how it looks in my Summer School 1 - no special video for this x_x
Attachments
shot.PNG

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: uText & uTabText

Post by sefrojones » Sun Jun 01, 2014 9:27 am

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

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: uText & uTabText

Post by DevBoyLars » Sun Jun 01, 2014 9:28 am

Thank you, I write the support right now :D

wizard
Posts: 21
Joined: Fri Jan 03, 2014 1:00 pm

Re: uText & uTabText

Post by wizard » Mon Jun 02, 2014 6:42 pm

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.

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: uText & uTabText

Post by DevBoyLars » Tue Jun 03, 2014 4:48 pm

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?

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: uText & uTabText

Post by splash21 » Tue Jun 03, 2014 5:01 pm

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.
LiveCode Development & Training : http://splash21.com

wizard
Posts: 21
Joined: Fri Jan 03, 2014 1:00 pm

Re: uText & uTabText

Post by wizard » Tue Jun 03, 2014 7:31 pm

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.

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: uText & uTabText

Post by DevBoyLars » Tue Jun 03, 2014 8:07 pm

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 :)
Attachments
Archiv.zip
(16.52 KiB) Downloaded 115 times

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: uText & uTabText

Post by sefrojones » Tue Jun 03, 2014 9:34 pm

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
Attachments
TestAppOption.zip
(11.32 KiB) Downloaded 184 times

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: uText & uTabText

Post by DevBoyLars » Tue Jun 03, 2014 9:40 pm

Thank you - I know the Option-Button-Way, but these buttons are without an icon, which is needed :)

Post Reply

Return to “MobGUI”