22 #include <TextBoxNumber.h> 36 Dialog2(
const __FlashStringHelper * caption,
int left,
int top,
int width,
int height):
Dialog(caption,left,top,width,height)
53 return _txtNumber2->GetNumber();
59 Label *label=
new Label(10,43+offset,150,25,text);
68 btn->
Move(left,top,width,25);
void RegisterTouchEventReceiver(ITouchEventReceiver *touchEventReceiver)
Registers receiver for touch event.
Definition: Window.h:102
Dialog2(const __FlashStringHelper *caption, int left, int top, int width, int height)
Constructor.
Definition: Dialog2.h:36
Base class for all window objects. Provides basic window functionality.
Definition: Window.h:34
void SetIsReadOnly(bool isReadOnly)
Defines whether window is readonly.
Definition: TextBoxNumber.h:64
float GetNumber()
Return value from text box.
Definition: Dialog2.h:51
Button * _btnCancel
Button Cancel has to be initialized in derived class.
Definition: Dialog.h:32
void DoControlMessage(Window *window)
Process touch message from child controls.
Definition: Dialog2.h:74
Button * _btnOK
Button OK has to be initialized in derived class.
Definition: Dialog.h:30
Text box for numbers.
Definition: TextBoxNumber.h:24
virtual void Move(int left, int top, int width, int height)
Moves and resizes window relativly to the parent window.
Definition: Window.h:149
void SetNumber(float number2)
Init text box value.
Definition: Dialog2.h:46
Example window with yellow background.
Definition: Dialog2.h:24
Base class for dialog objects. See Dialogs example Provides basic window functionality.
Definition: Dialog.h:25
TextBoxNumber * InitNumberFields(int offset, const __FlashStringHelper *text)
create child text box fields
Definition: Dialog2.h:57
void AddChild(Window *window)
Adds window child window.
Definition: Window.h:194
void SetNumber(float number)
Initialize window with number.
Definition: TextBoxNumber.h:74
void InitButton(Button *btn, int left, int top, int width)
Create child button.
Definition: Dialog2.h:66
Implement Label control.
Definition: Label.h:24
void SetMargins(int offset_x, int offset_y)
Defines offset from left and top for text.
Definition: TextBox.h:58