Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl drop on all control area
ArrayCtrl drop on all control area [message #54218] Thu, 11 June 2020 16:26 Go to next message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
Now when drop on an ArrayCtrl, the drop is allowed on existing rows, or in the top ArrayCtrl line.
Is there any way for the ArrayCtrl to allow drop on all control area, even if it is empty?

- Drop not allowed on Ctrl area
index.php?t=getfile&id=6107&private=0
- Drop allowed in topmost line
index.php?t=getfile&id=6108&private=0
- ArrayCtrl updated
index.php?t=getfile&id=6109&private=0
  • Attachment: sn1.jpg
    (Size: 8.45KB, Downloaded 173 times)
  • Attachment: sn2.jpg
    (Size: 9.99KB, Downloaded 172 times)
  • Attachment: sn3.jpg
    (Size: 6.93KB, Downloaded 192 times)


Best regards
Iñaki

[Updated on: Thu, 11 June 2020 16:36]

Report message to a moderator

Re: ArrayCtrl drop on all control area [message #54482 is a reply to message #54218] Wed, 29 July 2020 12:47 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13442
Registered: November 2005
Ultimate Member
Yes, use WhenDrop.

reference/ArrayCtrl actually demonstrates that.

It is however better with

		for(int i = 0; i < 15; i++) {
			a.Add(i);
			b.Add(FormatIntRoman(i, true));
		}


to create some empty space. Then you can drop normal text on the left ArrayCtrl...

Mirek
Re: ArrayCtrl drop on all control area [message #54501 is a reply to message #54482] Mon, 03 August 2020 17:01 Go to previous message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
Yes, the trick has been precisely not using WhenDrop, just WhenDrag and WhenDropInsert.
Now it works perfectly, as expected, thank you.


Best regards
Iñaki
Previous Topic: GridCtrl: repainting performance issue in dark mode on Win 10
Next Topic: ArrayCtrl or Sql feature broken in latest releases
Goto Forum:
  


Current Time: Sat Oct 23 13:02:25 CEST 2021

Total time taken to generate the page: 0.01024 seconds