copy FXTable

"John Selverian" <[email protected]> Fri, 17 Oct 2025 07:56:26 -0400
Newsgroups gmane.comp.lib.fox-toolkit.user
Organization JAHM Software
Message-ID <[email protected]>
This is a multipart message in MIME format.

--===============6095262928291242050==
Content-Type: multipart/related;
	boundary="----=_NextPart_000_0001_01DC3F3B.8AA287C0"
Content-Language: en-us

This is a multipart message in MIME format.

------=_NextPart_000_0001_01DC3F3B.8AA287C0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_0002_01DC3F3B.8AA287C0"


------=_NextPart_001_0002_01DC3F3B.8AA287C0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit



I have the following code which is called when the user clicks a
button, it copies data in a table and puts it on the clip board.
It was working fine. After some recent Win11 updates it fails
about 1/3 of the time. When I click the button then paste into
Excel I get a "cannot paste" error in Excel or if I just paste it
into a text editor nothing is pasted. So it seems like the copy
command in my code is failing. I have to click the button 1 or 2
times then it works. Is there a way to know if the copy command
worked? The code below always return a result of 1, even when the
copy does not work.

 

 

                                void* ptr = nullptr;

 

                                long result = table->handle(this,
FXSEL(SEL_COMMAND, FXTable::ID_COPY_SEL), ptr);

 

                                if (result == 0)

                                {

 
FXMessageBox::warning(this, MBOX_OK, "Copy problem", "Could not
copy the table.");

                                }

 

 

Kind regards,

 

js

 

 


------=_NextPart_001_0002_01DC3F3B.8AA287C0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta name=3D"Microsoft =
Theme 2.00" content=3D"Concrete 011"><meta http-equiv=3DContent-Type =
content=3D"text/html; charset=3Dus-ascii"><meta name=3DGenerator =
content=3D"Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Verdana;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:12.0pt;
	font-family:"Verdana",sans-serif;
	color:#434343;
	mso-ligatures:standardcontextual;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Aptos",serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=3Dwhite =
background=3D"cid:[email protected]" lang=3DEN-US =
link=3D"#148120" vlink=3D"#1E3C22" style=3D'word-wrap:break-word'><img =
src=3D"cid:[email protected]" =
v:src=3D"cid:[email protected]" v:shapes=3D"_x0000_Mail" =
width=3D0 height=3D0 class=3Dshape =
style=3D'display:none;width:0;height:0'><!--[if gte mso 9]><xml>
<v:background id=3D"_x0000_s1025" o:bwmode=3D"white" =
o:targetscreensize=3D"1024,768">
<v:fill src=3D"cid:[email protected]" =
o:title=3D"background_concrete" type=3D"frame" />
</v:background></xml><![endif]--><div class=3DWordSection1><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext'>I =
have the following code which is called when the user clicks a button, =
it copies data in a table and puts it on the clip board. It was working =
fine. After some recent Win11 updates it fails about 1/3 of the time. =
When I click the button then paste into Excel I get a &#8220;cannot =
paste&#8221; error in Excel or if I just paste it into a text editor =
nothing is pasted. So it seems like the copy command in my code is =
failing. I have to click the button 1 or 2 times then it works. Is there =
a way to know if the copy command worked? The code below always return a =
result of 1, even when the copy does not work.<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext'><o:=
p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext'><o:=
p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext'>&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void* ptr =3D =
nullptr;<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext'><o:=
p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext'>&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; long result =3D =
table-&gt;handle(this, FXSEL(SEL_COMMAND, FXTable::ID_COPY_SEL), =
ptr);<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext'><o:=
p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext'>&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (result =3D=3D =
0)<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext'>&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext'>&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
FXMessageBox::warning(this, MBOX_OK, &quot;Copy problem&quot;, =
&quot;Could not copy the table.&quot;);<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext'>&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext'><o:=
p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext'><o:=
p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext;mso-=
ligatures:none'>Kind regards,<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext;mso-=
ligatures:none'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext;mso-=
ligatures:none'>js<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Aptos",serif;color:windowtext;mso-=
ligatures:none'><o:p>&nbsp;</o:p></span></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></body></html>
------=_NextPart_001_0002_01DC3F3B.8AA287C0--

------=_NextPart_000_0001_01DC3F3B.8AA287C0
Content-Type: image/gif;
	name="image001.gif"
Content-Transfer-Encoding: base64
Content-ID: <[email protected]>

R0lGODlhHwAfAIAAAODg4AAAACH5BAAAAAAALAAAAAAfAB8AAAIdhI+py+0Po5y02ouz3rz7D4bi
SJbmiabqyrbuOxUAOw==

------=_NextPart_000_0001_01DC3F3B.8AA287C0--



--===============6095262928291242050==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============6095262928291242050==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Foxgui-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/foxgui-users

--===============6095262928291242050==--