Listviewcolumn.Hide is not work

Discuss GUI programming with the RapaGUI plugin here
User avatar
Posts: 112
Joined: Sun Jan 31, 2021 7:44 pm
Location: Switzerland

Re: Listviewcolumn.Hide is not work

Post by mrupp »

This has been fixed in RapaGUI 2.0 for mac-x64, but is still the case for mac-ppc:

Image Image

Please also note the blank space at the bottom of the scrollbars (in dataview mode) for mac-ppc, only after the window is resized, they are painted correctly.

Example script:

Code: Select all

@REQUIRE "RapaGUI", {Link = True}
@APPTITLE "ListView-Test"

Function p_EventFunc(msg)
	DebugPrint(, msg.Attribute)
	If msg.Attribute = "DoubleClick"
		Local activeObject = moai.Get("mainWindow", "activeObject")
		moai.Set("lblInfo", "text", activeObject)
		DebugPrint("activeObject:", activeObject)

moai.CreateApp([[<?xml version="1.0" encoding="iso-8859-1"?>
	<application id="app">
		<window id="mainWindow" title="ListView-Test">
				<text id="lblInfo">Double click on an item to get the currently active object</text>
				<hgroup frame="true" frametitle="Listview1 in listview mode">
					<listview id="listview1" notify="doubleclick" forceMode="listview">
						<column title="ID" />
						<column title="Text" />
				<hgroup frame="true" frametitle="Listview2 in dataview mode">
					<listview id="listview2" notify="doubleclick" forceMode="dataview">
						<column title="ID" />
						<column title="Text" />
				<hgroup frame="true" frametitle="Listview3 with hidden column">
					<listview id="listview3" notify="doubleclick">
						<column hide="true" />
						<column title="Text" />
InstallEventHandler({RapaGUI = p_EventFunc})

For Local i = 0 To 100
	moai.DoMethod("listview1", "insert", "bottom", i, "Item " .. i)
	moai.DoMethod("listview2", "insert", "bottom", i, "Item " .. i)
	moai.DoMethod("listview3", "insert", "bottom", i, "Item " .. i)

Cheers, Michael

User avatar
Posts: 4767
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany

Re: Listviewcolumn.Hide is not work

Post by airsoftsoftwair »

mrupp wrote:
Fri Sep 03, 2021 11:34 pm
This has been fixed in RapaGUI 2.0 for mac-x64, but is still the case for mac-ppc:
Yeah, that's a known issue, among many others in the Mac PPC version :) Background: The Mac PPC version uses an outdated version of wxWidgets because newer wxWidgets versions obviously don't work with 10.5 anymore so I'd have to backport all those fixes to that old wxWidgets version and I'm not too keen on doing this because AFAICS there are hardly any people using it so this doesn't have a very high priority here.

Post Reply