25 #ifndef TBX_RES_RESWRITABLEFIELD_H
26 #define TBX_RES_RESWRITABLEFIELD_H
28 #include "resgadget.h"
29 #include "resjustification.h"
30 #include "../handles.h"
42 enum {TYPE_ID = 512 };
239 #endif // TBX_RES_RESWRITABLEFIELD_H
ResWritableField & operator=(const ResWritableField &other)
Assign from another writable field gadget resource.
Definition: reswritablefield.h:84
void text(const char *value, int max_length=-1)
Set the initially text for the writable field.
Definition: reswritablefield.h:158
void message_with_length(int offset, const char *value, int length=-1)
Assign a message where the length is at offset+4.
Definition: resbase.cc:1639
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
int ComponentId
Type for underlying toolbox component id.
Definition: handles.h:33
void allowable(const char *value, int max_length=-1)
Set the allowable characters in a writable field.
Definition: reswritablefield.h:192
int max_allowable_len() const
Get the maximum length the allowable character can be changed to when the gadget is shown.
Definition: reswritablefield.h:208
bool do_not_display_text() const
Check if the text should not be displayed.
Definition: reswritablefield.h:135
Base class for gadget memory resources.
Definition: resgadget.h:43
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
void generate_value_changed(bool value)
Set if the value changed event will be generated.
Definition: reswritablefield.h:115
ResWritableField(const ResGadget &other)
Construct an writable field gadget resource.
Definition: reswritablefield.h:50
bool generate_value_changed() const
Check if the value changed event will be generated.
Definition: reswritablefield.h:109
void allowable(const std::string &value, int max_length=-1)
Set the allowable characters in a writable field.
Definition: reswritablefield.h:203
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736
int flag_value(int offset, int mask) const
Get the bits for the given mask.
Definition: resbase.h:362
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
ResWritableField()
Construct a writable field gadget resource.
Definition: reswritablefield.h:95
int max_text_len() const
Get the maximum length for the writable text.
Definition: reswritablefield.h:170
ComponentId after() const
Get the component ID of the gadget after this one in the Tab order.
Definition: reswritablefield.h:226
void justification(ResJustification value)
Set justification of the value.
Definition: reswritablefield.h:127
const char * allowable() const
Get the allowable characters in a writable field.
Definition: reswritablefield.h:180
ComponentId before() const
Get the component ID of the gadget before this one in the Tab order.
Definition: reswritablefield.h:214
void text(const std::string &value, int max_length=-1)
Set the initially text for the writable field.
Definition: reswritablefield.h:166
ResJustification justification() const
Get justification of the value.
Definition: reswritablefield.h:121
const char * text() const
Get the initially text for the writable field.
Definition: reswritablefield.h:150
void do_not_display_text(bool value)
Set if the text should not be displayed.
Definition: reswritablefield.h:143
ResJustification
Standard justification of resource gadget flags.
Definition: resjustification.h:11
void after(ComponentId value)
Set the component ID of the gadget after this one in the Tab order.
Definition: reswritablefield.h:232
Class for WritableField gadget template.
Definition: reswritablefield.h:39
ResWritableField & operator=(const ResGadget &other)
Assign from a ResGadget.
Definition: reswritablefield.h:72
void check_type(int type) const
Check if this gadgets type is as specified.
Definition: reswindow.cc:97
ResWritableField(const ResWritableField &other)
Construct an writable field gadget resource.
Definition: reswritablefield.h:60
void before(ComponentId value)
Set the component ID of the gadget before this one in the Tab order.
Definition: reswritablefield.h:220
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602