Message |
|
thanks Dave, forgot about that!
|
|
|
also tried this from the latest esp32 s2 example:
auto dlg = renderer.getDialog();
if (!dlg->isInUse()) {
dlg->setButtons(BTNTYPE_NONE, BTNTYPE_CLOSE);
dlg->showRam("Saved", false);
dlg->copyIntoBuffer("to flash");
}
which gives
error: invalid use of incomplete type 'class BaseDialog' if(!dlg->isInUse()) { .... note: forward declaration of 'class BaseDialog' class BaseDialog;
so any idea on how to show a dialog would be great!
|
|
|
Hi I'm trying to display a simple dialog but I get compile errors on ESP32-S2
I'm following this: https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/rendering-with-tcmenu-lcd-tft-oled/
BaseDialog* dlg = renderer.getDialog();
dlg->setButtons(BTNTYPE_OK, BTNTYPE_CANCEL, 1);
dlg->show("hello", false, onDialogFinished);
gives:
error: invalid use of incomplete type 'class BaseDialog' dlg->setButtons(BTNTYPE_OK, BTNTYPE_CANCEL, 1);
Has something changed in the last version of tcMenu? What is the correct way to display (and hide!) an alert in version 2.4.0?
Thanks!
|
|
|
|
|
|
Hi what's the best way to implement a "Password" field, i.e. something that is entered once and then hidden so that others don't see it on the screen?
I need to use it for SSID password and wanted to make sure I was not reinventing the wheel for this
Thanks a lot!
|
|
|
Hi Dave
This seems to fix it:
calcVal=abs(calcVal);
placed in:
WholeAndFraction AnalogMenuItem::getWholeAndFraction() const {
WholeAndFraction wf;
int32_t calcVal = int32_t(getCurrentValue()) + int32_t(getOffset());
int32_t divisor = getDivisor();
wf.negative = (calcVal < 0);
calcVal=abs(calcVal);
if (divisor < 2) {
wf.whole = calcVal;
wf.fraction = 0;
}
else {
wf.whole = abs(calcVal) / int16_t(divisor);
int fractMax = getActualDecimalDivisor();
wf.fraction = abs((calcVal % divisor)) * (fractMax / divisor);
}
return wf;
}
Can you check if that doesn't create other issues somewhere else?
|
|
|
Hi Dave,
the workaround works great, If possible please include this and other theme options into the designer so it's more intuitive.
Thanks a lot!
|
|
|
Hi Dave
See screenshot attached. Works as expected for values >=0 but -1 is rendered "-32767", -2 as "-32766" and so forth. Clearly an int16 format issue?
Thanks!
|
|
|
Hi Has anybody else observed this issue? I have tried a few things to fix it but no success so far
Thanks!
|
|
|
Hi Dave
A small bug to report with the "Dark Mode Modern" theme. If you enter a page with a few AnalogMenuItems (all at minimum) with a rotary encoder it's impossible to see which one is selected unless you click and start moving the bar. When the bars are NOT at minimum it becomes easier because the selected item is in color.
Using the "Traditional" theme the problem is not there thanks to the arrow/pencil icons on the left but these look pretty outdated compared to the Modern. Is there anything you can do to make the Modern more intuitive using the rotary?
Thanks again!
|
|
|
Hi Dave if I use an AnalogMenuItem in the designer (2.3.1 on Mac) it works fine if "offset from zero" is zero but if I put a negative value it seems to overflow and start form -2^16 or so
example:
Offset=-20
Max=255
the UI says it should display a value between -20 and 235 but once I start it on ESP32S2 it will display -32748 by default instead of "-20"
Can you please check at your end? Should be a pretty straightforward bug to fix, likely due to formatting.
Thanks!
|
|
|
|
|
|
ok, found the source but I have no chance of running it. Any chance you can make a Mac build for this?
another option would be to have something that can be run like this
java -jar tcMenuDesigner2.3.jar
Thanks!
|
|
|
Sorry Dave could not find a Mac release for 2.3. Can you point me to one?
I only still see 2.27 on GitHub
|
|
|
Thanks Dave, is 2.3 stable enough for me to try and test as well?
|
|
|