[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wayland problem


On 5/14/24 14:19, Philippe Valarcher wrote:
Searching to understand the way wayland hold the thing,

What is the difference between this :

$plugVis = New MediaControl
$plugVis.Parent = $mp
$plugVis.Type = $tipoPlug[siInd]

and that :

$plugVis = New MediaControl($mp, $tipoPlug[siInd])

The first part sends me an error :
code:-1

The difference is, in the first part you attempt to set the value of MediaControl.Type after the object is created, which (according to the Wiki) is a read-only property. So, '.Type' needs to be specified at object creation in the 'New' statement.


And, again, please turn off Request Receipt for mail messages to the list.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


References:
Wayland problemPhilippe Valarcher <philippe.valarcher@xxxxxxx>