Search found 843 matches

by Simon Knight
Thu Aug 03, 2023 6:30 pm
Forum: Talking LiveCode
Topic: Issue with field margins when building a custom control based on a scrolling list field.
Replies: 19
Views: 7638

Re: Issue with field margins when building a custom control based on a scrolling list field.

Thank you for all your inputs. The final version of the control is on the attached stack.

best wishes

Simon
ListFieldDemonstration_Modified.livecode.zip
DemoStack
(4.7 KiB) Downloaded 64 times
by Simon Knight
Thu Aug 03, 2023 8:09 am
Forum: Talking LiveCode
Topic: Issue with field margins when building a custom control based on a scrolling list field.
Replies: 19
Views: 7638

Re: Issue with field margins when building a custom control based on a scrolling list field.

You should have told me that about 10 years ago... :D I wonder when the command was introduced ? I found it by going down the list of field properties / commands looking for other issues like the Borderwidth error. There are several where the syntax example either does not work, throws an error or ...
by Simon Knight
Wed Aug 02, 2023 5:08 pm
Forum: Talking LiveCode
Topic: Issue with field margins when building a custom control based on a scrolling list field.
Replies: 19
Views: 7638

Re: Issue with field margins when building a custom control based on a scrolling list field.

Ooops - I managed to mix up the two screen shots sorry, I have just noticed this happens if border and margins are both set to zero (text is 11) : Screenshot 2023-08-02 at 16.48.45.png What logic is being employed and why? Also just found this command : function getTopOfFirstLine return item 2 of th...
by Simon Knight
Wed Aug 02, 2023 4:44 pm
Forum: Talking LiveCode
Topic: Issue with field margins when building a custom control based on a scrolling list field.
Replies: 19
Views: 7638

Re: Issue with field margins when building a custom control based on a scrolling list field.

Bernd, How do you do it? I've been trying to use the mouseloc to work out where the top of a row starts in an attempt to work out how the low values of border and width interact but at small text/border/margin sizes I'm struggling to position the mouse accurately. Your new code works on version 10 d...
by Simon Knight
Wed Aug 02, 2023 12:44 pm
Forum: Talking LiveCode
Topic: Issue with field margins when building a custom control based on a scrolling list field.
Replies: 19
Views: 7638

Re: Issue with field margins when building a custom control based on a scrolling list field.

Bernd,

I had not seen that problem. I notice that a error creeps in when the border size is less than 5 but its not a great issue, but I will try and work out what is going on.

Simon
by Simon Knight
Wed Aug 02, 2023 9:02 am
Forum: Talking LiveCode
Topic: Issue with field margins when building a custom control based on a scrolling list field.
Replies: 19
Views: 7638

Re: Issue with field margins when building a custom control based on a scrolling list field.

Bernd, Genius, thank you! The calculation of the vertical position of the top line is far more complex than I imagined and would have taken me days if not weeks to edge towards which rather confirms Stam's point made above : use a datagrid ! For those who have not yet looked at Bernd's code correcti...
by Simon Knight
Wed Aug 02, 2023 8:04 am
Forum: Talking LiveCode
Topic: Issue with field margins when building a custom control based on a scrolling list field.
Replies: 19
Views: 7638

Re: Issue with field margins when building a custom control based on a scrolling list field.

Craig, The issue with my code is that I have had to manually discover that I need to add 5 pixels to the vertical location of my edit field: ######### KLUDGE ######### put 5 into tKludge ######### KLUDGE ######### //Calculate the top posn of the line put tTopOfLines + (tLineNo*tCellHt) + tKludge int...
by Simon Knight
Tue Aug 01, 2023 11:15 am
Forum: Talking LiveCode
Topic: Issue with field margins when building a custom control based on a scrolling list field.
Replies: 19
Views: 7638

Re: Issue with field margins when building a custom control based on a scrolling list field.

I agree that a datagrid is the way to go when displaying large data sets but when only a short list is required then I am happy to play. For example it struck while I was in discussions with the dog that my code could be placed in a behavior button which could be used by multiple short lists all usi...
by Simon Knight
Tue Aug 01, 2023 9:53 am
Forum: Talking LiveCode
Topic: Issue with field margins when building a custom control based on a scrolling list field.
Replies: 19
Views: 7638

Re: Issue with field margins when building a custom control based on a scrolling list field.

why not just use a data grid which already has all this functionality built in? or the polygrid.... I suppose the simple answer is because I want to find out how they work and may be employed but in detail its complicated. Trevore DeVore did an amazing job in creating the datagrid. However, because...
by Simon Knight
Tue Aug 01, 2023 7:43 am
Forum: Talking LiveCode
Topic: Issue with field margins when building a custom control based on a scrolling list field.
Replies: 19
Views: 7638

Issue with field margins when building a custom control based on a scrolling list field.

Recently I have had an interest in being able to edit the lines of a scrolling list field. This is not possible with the standard control and a number of methods have been proposed in the past and with a bit of digging may be found in these forum pages. I decided to build a "simple" custom control t...
by Simon Knight
Tue Aug 01, 2023 7:10 am
Forum: Talking LiveCode
Topic: Livecode Share, is it me but......
Replies: 7
Views: 2896

Re: Livecode Share, is it me but......

Hi Bernd, I'll send you an email and or a private message with my email which is also unchanged. Unfortunately the garage conversion, which was going to be an exercise / photographic studio for ME has been occupied by my 102 year old mother in law for the past two years. Grrrr!! Getting back to live...
by Simon Knight
Sun Jul 30, 2023 9:04 pm
Forum: Talking LiveCode
Topic: Livecode Share, is it me but......
Replies: 7
Views: 2896

Re: Livecode Share, is it me but......

A central repository of add-ons is essential for any dev tool, critically so for any tool marketed as "low code", since that refers to being able to tap into a healthy ecosystem of prefab scripts you don't need to reinvent. I agree! Unfortunately we don't have such a central repository. Livecode Sh...
by Simon Knight
Sun Jul 30, 2023 12:51 pm
Forum: Talking LiveCode
Topic: Livecode Share, is it me but......
Replies: 7
Views: 2896

Livecode Share, is it me but......

I have just attempted to access Livecode Share https://livecodeshare.runrev.com/ Screenshot 2023-07-30 at 12.11.26.png I'm have a medium speed internet connection and Livecode Share crawls. Searches take for ever and fail to return the searched for item and clicking on the list headers seems to resu...

Go to advanced search