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: 3158
Registered: August 2008
Ultimate Member
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 113 times)
  • Attachment: sn2.jpg
    (Size: 9.99KB, Downloaded 111 times)
  • Attachment: sn3.jpg
    (Size: 6.93KB, Downloaded 111 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: 12616
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: 3158
Registered: August 2008
Ultimate Member
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
Goto Forum:
  


Current Time: Wed Aug 12 05:33:15 CEST 2020

Total time taken to generate the page: 0.01454 seconds