Showname property in fields etc...

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Fermin
Posts: 149
Joined: Fri Jun 05, 2015 10:44 pm

Showname property in fields etc...

Post by Fermin » Mon Jan 25, 2016 12:20 am

Hi. A curiosity. The ShowName property exists for buttons, graphics or groups. But why there is no showName property for other controls such fields... or sliders for example? I suppose there must be some good reason, but I think it would be very useful.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Showname property in fields etc...

Post by dunbarx » Wed Jan 27, 2016 4:16 pm

Hi.

I guess the contents of a field might be considered its "showName". As for other controls, you will indeed have to roll your own. This is not too onerous, though, and for that reason I doubt the team would consider it a priority. You might, in v.8, make a widget...

Craig Newman

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Showname property in fields etc...

Post by FourthWorld » Wed Jan 27, 2016 5:35 pm

Where would it display the name?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Showname property in fields etc...

Post by dunbarx » Wed Jan 27, 2016 9:57 pm

Where would it display the name?
Right. What Richard means is something like, ..."what does a label field do for you that an ordinary one does not?" Is it that the "label" might be above the "text"? Somewhere else? That is why in such a case, and the idea is not crazy at all to want such a gadget, to make your own, likely as a group of two or more controls.

Craig

Fermin
Posts: 149
Joined: Fri Jun 05, 2015 10:44 pm

Re: Showname property in fields etc...

Post by Fermin » Thu Jan 28, 2016 9:53 pm

Thank you for your answers.
Ok, of course there are many solutions but involve new objects.
I am creating an application that uses scroll fields as columns and I wish his name was above them.
It also has some slider-buttons, and if I want to know its function I have to create as many fields to put their names.
Besides, in the case of these buttons... why do not even have tooltips to give clues?.
Yes, it's, another question: Why no tooltips for these buttons?
:)

Curiously, this application I am doing is to help create routes on Google Earth.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Showname property in fields etc...

Post by FourthWorld » Thu Jan 28, 2016 10:30 pm

Fermin wrote:I am creating an application that uses scroll fields as columns and I wish his name was above them.
LiveCode fields offer nice support for multi-column text views. You could use a DataGrid object instead to get the labels, or Bernd's nifty single-object field header for columns - anyone here have that link handy?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Showname property in fields etc...

Post by dunbarx » Thu Jan 28, 2016 11:27 pm

Besides, in the case of these buttons... why do not even have tooltips to give clues?.
Yes, it's, another question: Why no tooltips for these buttons?
I thought we were talking about fields. All buttons and fields have tooltips. It is true that sliders and progress bars do not, though, as usual, you can roll your own.

Craig

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Showname property in fields etc...

Post by bn » Fri Jan 29, 2016 12:04 am

Scrollbars and sliders and progress bars can have tooltips, graphics can have labels.

You just have to set them by script. Especially setting the label of a graphic and the showname of the graphic to true opens some possibilities. You can change the information in the label without affecting the name of the graphic.

As for the modTableField you can find it here, I have no idea if it is suited for your use-case. It is basically one field for columnar data and a field for the header of the columns. See the documentation for the API. It does have a learning curve.
http://berndniggemann.on-rev.com./modTa ... _0_3_2.zip

Kind regards
Bernd

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Showname property in fields etc...

Post by dunbarx » Fri Jan 29, 2016 1:11 am

Bernd is right again. :oops: They just do not appear in the property inspector.

Craig

Fermin
Posts: 149
Joined: Fri Jun 05, 2015 10:44 pm

Re: Showname property in fields etc...

Post by Fermin » Fri Jan 29, 2016 2:22 am

I just checked it is possible to put a tooltip using Script on the slider buttons (thank you very much). Although the name I think not.

Moreover, I knew, Bernd, that graphics can have labels. It is a very interesting feature for use as if they were fields and may, at the same time rounding the corners. I used this mode to display the month days in a calendar.
 
I'm not encouraged to use the DataGrid (for now) because I do not quite understand yet, and also need my columns have different colors and font styles etc ...

Thank everyone again for your help. Now I'm going to bed (in my city Bilbao (Spain) and are 2.20 AM. Goodbye and tomorrow I'll be here again.

:)

Post Reply