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 » Developing U++ » Bazaar » WithEnterAction compile error
WithEnterAction compile error [message #51793] Fri, 31 May 2019 10:27 Go to previous message
peterh is currently offline  peterh
Messages: 46
Registered: November 2018
Location: Germany
Member
Hi,

there is an error in WithEnterAction.h:
Callback cb = B::WhenAction;

gives this error:
C:\upp/bazaar/WithEnterAction/WithEnterAction.h (16): error: conversion from 'Upp::Event<>' {aka 'Upp::Function<void()>'} to non-scalar type 'Upp::Callback' {aka 'Upp::CallbackN<>'} requested

Writing
Upp::Function<void()> cb = B::WhenAction;

or
auto cb = B::WhenAction;

Cures the problem.


This said, I must admit, I am a casual programmer and write only small tools for my own use in Job or at home.
I use C++ only to learn and experimental.
Normally I use Lazarus/Freepascal and there is the Event "OnEditingDone" which does just this and the Eventhandler method is implemented at designtime by a doubleclick into the Event list.

Because this is the only Event I normally want to use for input fields, I would wish a more comfortable solution here.

All the Best,

Peter

[Updated on: Tue, 04 June 2019 12:22]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: MATLAB .mat files handling
Next Topic: MessageCtrl: A passive notifications ctrl and manager.
Goto Forum:
  


Current Time: Wed Jul 15 11:37:24 CEST 2020

Total time taken to generate the page: 0.01052 seconds