Search found 280 matches

by PEB
Mon Sep 23, 2019 7:00 pm
Forum: Wishlist
Topic: Shuffle Table
Replies: 8
Views: 1684

Re: Shuffle Table

I don't really understand why, but the code Bugala suggested gives the exact same new list every time (so not really random). This code does seem to work, though: nums = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} ?Sort(nums, Function(a, b) Return(Rnd(2)) EndFunction) For k = 0 To 9 error=?DebugPrint(nums[k]) I...
by PEB
Sun Sep 22, 2019 12:49 am
Forum: RapaGUI
Topic: Annoying limitation in RapaGUI
Replies: 5
Views: 1527

Re: Annoying limitation in RapaGUI

If you don't want to use a fixed value, you can use <rectangle/> repeatedly in the places you want more space, and only once where you don't want so much space. Try this out: <?xml version="1.0" encoding="UTF-8"?> <application id="app"> <window id="fenetre" notify="CloseRequest" Width="Screen:75" He...
by PEB
Sat Sep 21, 2019 9:37 pm
Forum: RapaGUI
Topic: Annoying limitation in RapaGUI
Replies: 5
Views: 1527

Re: Annoying limitation in RapaGUI

If your goal is to reduce the amount of space between the "Envoyer" button and "Envoyer par" checkbox at the bottom, you can replace <rectangle/> with something like <vspace height="10"/> (just above your "envoyer" button). Try this: <?xml version="1.0" encoding="UTF-8"?> <application id="app"> <win...
by PEB
Sat Sep 21, 2019 4:48 am
Forum: RapaGUI
Topic: Annoying limitation in RapaGUI
Replies: 5
Views: 1527

Re: Annoying limitation in RapaGUI

If you post your GUI xml code, you might get some specific suggestions here about how to get it to look just as you want. Usually experimenting with the Rectangle, HSpace, and VSpace classes can make your GUI look however you prefer. Placing groups within groups (such as VGroups inside of HGroups) c...
by PEB
Mon Sep 16, 2019 5:36 pm
Forum: Wishlist
Topic: StrToTable()
Replies: 9
Views: 1588

Re: StrToTable()

I don't know if this will help or not, but SplitStr() creates a table from a string.
by PEB
Fri Sep 13, 2019 12:07 am
Forum: General programming
Topic: Any problem in creating and deleting buttons all the time?
Replies: 5
Views: 659

Re: Any problem in creating and deleting buttons all the time?

Well, you can test it out: DebugPrint("Test:") Function p_Events(msg) Switch msg.action Case "OnMouseDown" DebugPrint("Mouse Down") Case "OnMouseUp" DebugPrint("Mouse Up") Case "OnRightMouseDown" DebugPrint("Right Mouse Down") Case "OnRightMouseUp" DebugPrint("Right Mouse Up") Case "OnMouseMove" Deb...
by PEB
Mon Sep 02, 2019 11:50 pm
Forum: Hollywood bugs
Topic: OnKeyUp Not Always Working
Replies: 5
Views: 1606

Re: OnKeyUp Not Always Working

Thanks for looking into it, Andreas. Here's a work-around, if anyone on OS4 is interested: DebugPrint("Test:") Function p_KeyUpFunc(msg) Local TempKey$=msg.userdata If TempKey$=" " Then TempKey$="SPACE" If IsKeyDown(TempKey$) SetTimeout(1, p_KeyUpFunc, 40, TempKey$) Return() EndIf DebugPrint("UP") E...
by PEB
Sat Aug 31, 2019 7:57 pm
Forum: Hollywood bugs
Topic: OnKeyUp Not Always Working
Replies: 5
Views: 1606

Re: OnKeyUp Not Always Working

I'm using OS4.
(It's a problem that was reported to me by someone on a different OS4 system.)
by PEB
Fri Aug 30, 2019 3:15 am
Forum: Hollywood bugs
Topic: OnKeyUp Not Always Working
Replies: 5
Views: 1606

OnKeyUp Not Always Working

Here's the test code: DebugPrint("Test:") Function p_KeyDownFunc() DebugPrint("DOWN") EndFunction Function p_KeyUpFunc() DebugPrint("UP") EndFunction InstallEventHandler({OnKeyDown=p_KeyDownFunc, OnKeyUp=p_KeyUpFunc}) Now try holding down any key for a couple seconds, and then release it. You should...
by PEB
Sat Aug 17, 2019 12:27 am
Forum: RapaGUI
Topic: Continuous Button Press (using MUIA_Timer attribute)
Replies: 3
Views: 1041

Re: Continuous Button Press (using MUIA_Timer attribute)

What about on MUIRoyale (which could also be accessed in the Amiga version of RapaGUI)?