Thursday, April 26th 2018, 9:47am UTC+2

You are not logged in.

  • Login
  • Register

vAnArhist

Beginner

Date of registration: Mar 30th 2017

Posts: 5

1

Friday, March 30th 2018, 10:42am

WIDGET EDIT "-" sign

Hi to all!

I need to enter signed values from virtual keyboard to EDIT widget and get this values onto external variables. How can I do this?
I already created a dialog with numPad and add "-" button, but I have no Ideas why following line of code isn`t working (see KeyPADDLG.c)
Main dialog is at file main.c
GUI_SendKeyMsg(45, 1); ///- sign
vAnArhist has attached the following file:
  • MainTask.7z (12.42 kB - 36 times downloaded - Last download: Today, 12:38am)

This post has been edited 1 times, last edit by "vAnArhist" (Mar 30th 2018, 10:58am)


Selso

Beginner

Date of registration: Jul 19th 2017

Posts: 22

2

Tuesday, April 3rd 2018, 3:56pm

Hello !!

Have you tested emwin keypad example in SKINNING_Notepad.exe app, or the WIDGET_NumPad example ?
Please also check that the font you are using also define the missing character.

cheers,
Selso.

vAnArhist

Beginner

Date of registration: Mar 30th 2017

Posts: 5

3

Monday, April 9th 2018, 7:44pm

Solved!

Problem was too simple) I just forget to specify min value to Edit widget. EDIT_SetDecMode(hItem, 0, -100, 100, 0, GUI_EDIT_NORMAL);

Thanks to all!!

Similar threads