Search found 357 matches

by lazi
Mon Nov 11, 2019 9:52 am
Forum: Newbie questions
Topic: Drop some results
Replies: 6
Views: 108

Re: Drop some results

a,b,c,d = Manyvalues() Debugprint(c) a,b,d = Nil This seems to be the best way, but it can be optimized a bit further: a, a, c, a = Manyvalues() Debugprint(c) a = Nil Checked in the Lua world and only a select() function can be find for similar problems, but that is not needed here. ( http://www.lu...
by lazi
Sun Nov 10, 2019 2:23 pm
Forum: Newbie questions
Topic: Drop some results
Replies: 6
Views: 108

Drop some results

If only one value needed from a set of the returned values by a function what is the best approach? For example, you need the third return value of a function, you can do like this: a,b,c,d = Manyvalues() Debugprint(c) a,b,d = Nil Not an elegant solution to use three needless variables. A creative m...
by lazi
Tue Nov 05, 2019 9:13 pm
Forum: Wishlist
Topic: Display (Run) temporary script with chdir
Replies: 2
Views: 124

Re: Display (Run) temporary script with chdir

I have tried it the same way, but certainly overlooked something because @includes was not worked. Tried again and it works now.
So sorry to bother you with my mistake.
by lazi
Sun Nov 03, 2019 5:11 pm
Forum: Wishlist
Topic: Display (Run) temporary script with chdir
Replies: 2
Views: 124

Display (Run) temporary script with chdir

I would like to run a temporary script from a different drawer than the original. For example a script saved to a location obtained from GetTempFileName(), but changed PROGDIR: to another location. There is a -nochdir argument for Hollywood which controls it but the opposite way. I think a -chdir <p...
by lazi
Sat Nov 02, 2019 1:14 am
Forum: MUI Royale
Topic: TextEditor_HorizontalSlider
Replies: 2
Views: 229

Re: TextEditor_HorizontalSlider

Probably you should do it! :)

It was a nice reading the three years long story of the horizontal slider.
by lazi
Mon Oct 28, 2019 7:33 pm
Forum: MUI Royale
Topic: TextEditor_HorizontalSlider
Replies: 2
Views: 229

TextEditor_HorizontalSlider

There is a Texteditor.Scrollbar attribute which is maybe the equivalent of MUIA_TextEditor_Slider, but there is nothing like MUIA_TextEditor_HorizontalSlider.

Why is it missing? Not all platforms can support it?
by lazi
Sat Oct 26, 2019 8:27 am
Forum: MUI Royale
Topic: More notifications for ListView class (please)
Replies: 11
Views: 611

Re: More notifications for ListView class (please)

Thanks!
I think that will do the job.
by lazi
Mon Oct 21, 2019 11:50 pm
Forum: MUI Royale
Topic: More notifications for ListView class (please)
Replies: 11
Views: 611

Re: More notifications for ListView class (please)

What about to make notify applicability for Listview.First ?
It should be changing on list scrolling, so that would be enough to handle keayboard and mousewheel user inputs.
by lazi
Sun Oct 20, 2019 12:37 am
Forum: MUI Royale
Topic: More notifications for ListView class (please)
Replies: 11
Views: 611

Re: More notifications for ListView class (please)

Please let me try to describe my problem once again. Maybe this time it will be more understandable. So, I would like to display a custom listview. Because the large amount of data, I don't want to insert them with the listview.insert method. Only the visible entries should be inserted to the listvi...
by lazi
Thu Oct 17, 2019 8:25 am
Forum: MUI Royale
Topic: More notifications for ListView class (please)
Replies: 11
Views: 611

Re: More notifications for ListView class (please)

Yes, but if the user using the mouse or keyboard to scroll the list, the position of the list will change. I thought that if I add two more line than visible, then it could refresh after every position change keeping one invisible line before and after the displayed list "window". And of course than...