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
Today's Messages (on)  | Unanswered Messages (off)

Forum: U++ TheIDE: Compiling, Linking, Debugging of your packages
 Topic: theide Compilation Error - UPP ver 18167
theide Compilation Error - UPP ver 18167 [message #61865] Sat, 22 November 2025 10:05
deep is currently offline  deep
Messages: 279
Registered: July 2011
Location: Bangalore
Experienced Member
My Hardware

Processor ARM cores

While compiling theide with ./install command
I get following error in ./uppsrc/Core/SIMD_NEON.h file

/uppsrc/Core/SIMD_NEON.h: In function 'int Upp::CountTrue(i16x8)':
./uppsrc/Core/SIMD_NEON.h:135:86: error: cannot convert 'Upp::int16x8_t' to 'Upp::uint16x8_t'
  135 | force_inline int    CountTrue(i16x8 a)              { return CountBits64(cmask16__(a.data)) >> 3; }

./uppsrc/Core/SIMD_NEON.h:248:41: note:   initializing argument 1 of 'Upp::uint64 Upp::cmask8__(uint8x16_t)'
  248 | force_inline uint64 cmask8__(uint8x16_t mask)      { return cmask16__(vreinterpretq_u16_u8(mask)); }

./uppsrc/Core/SIMD_NEON.h:190:42: note:   initializing argument 1 of 'Upp::uint64 Upp::cmask32__(uint32x4_t)'
  190 | force_inline uint64 cmask32__(uint32x4_t mask)      { return cmask16__(vreinterpretq_u16_u32(mask)); }






Warm Regards

Deepak
Forum: ArrayCtrl, HeaderCtrl & GridCtrl
 Topic: How to get a Ctrl within ArrCtrl
How to get a Ctrl within ArrCtrl [message #61866] Sat, 22 November 2025 12:13
forlano is currently offline  forlano
Messages: 1217
Registered: March 2006
Location: Italy
Senior Contributor
Hello

I have added several buttons to an ArrayCtrl with this code

void TournamentTiebreakDlg::AddBtn(int row, int col, int idTB, String label) {
		Button& btn = gridtb.CreateCtrl<Button>(row,col);
		String l = label;

		btn.SetLabel(l);
		btn << [&,row,col,idTB] {
			SetTB(row, col, idTB);
		};
	}	


Now I need to get some of these buttons and disable them.
I am tryng stuff like this
Button& btn = panel.gridtb.GetCtrl(4,1);
but the compiler keep complaining all my temptives.
Which is the recommended way?

Thank you very much,
Luigi
Re: How to get a Ctrl within ArrCtrl [message #61867 is a reply to message #61866] Sat, 22 November 2025 16:29
forlano is currently offline  forlano
Messages: 1217
Registered: March 2006
Location: Italy
Senior Contributor
This is the working solution from chatgpt

void DisableButton(int row, int col) {
Ctrl* ctrl = gridtb.GetCtrl(row, col);
if(!ctrl) return;

if(Button* b = dynamic_cast<Button*>(ctrl)) {
b->Disable();
}
}
It is amazing how many things it knows about U++. Sometimes it invents functions and method that does not exist.
Luigi



Current Time: Sat Nov 22 20:36:32 CET 2025

Total time taken to generate the page: 0.07608 seconds