Search found 262 matches

by PEB
Wed Sep 25, 2019 1:27 am
Forum: Newbie questions
Topic: Move layer with mouse
Replies: 9
Views: 643

Re: Move layer with mouse

This is how I've done it in the past: @VERSION 8,0 @BRUSH 1, "Test.png" EnableLayers() DisplayBrush(1, #LEFT, #TOP, {Name="Layer1"}) DisplayBrush(1, #RIGHT, #TOP, {Name="Layer2"}) DisplayBrush(1, #LEFT, #BOTTOM, {Name="Layer3"}) DisplayBrush(1, #RIGHT, #BOTTOM, {Name="Layer4"}) DisplayBrush(1, #CENT...
by PEB
Tue Sep 24, 2019 10:05 pm
Forum: Wishlist
Topic: Fire (and handle) custom events
Replies: 11
Views: 828

Re: Fire (and handle) custom events

Off topic (though related to RapaGUI 2.0):
Not wanting to add more to your workload, but I was wondering if functions such as HidePointer() will work with Hollywood displays inside RapaGUI windows in version 2.0? (Using the IPC library with RapaGUI would be nice too.)
by PEB
Mon Sep 23, 2019 7:00 pm
Forum: Wishlist
Topic: Shuffle Table
Replies: 3
Views: 239

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: 747

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: 747

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: 747

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: 647

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: 373

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: 442

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: 442

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.)