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 A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
ResWritableField(const ResGadget &other)
Construct an writable field gadget resource.
Definition: reswritablefield.h:50
Base class for gadget memory resources.
Definition: resgadget.h:42
ResWritableField & operator=(const ResWritableField &other)
Assign from another writable field gadget resource.
Definition: reswritablefield.h:84
const char * allowable() const
Get the allowable characters in a writable field.
Definition: reswritablefield.h:180
void before(ComponentId value)
Set the component ID of the gadget before this one in the Tab order.
Definition: reswritablefield.h:220
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
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
bool do_not_display_text() const
Check if the text should not be displayed.
Definition: reswritablefield.h:135
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
int flag_value(int offset, int mask) const
Get the bits for the given mask.
Definition: resbase.h:362
void justification(ResJustification value)
Set justification of the value.
Definition: reswritablefield.h:127
int ComponentId
Type for underlying toolbox component id.
Definition: handles.h:33
bool generate_value_changed() const
Check if the value changed event will be generated.
Definition: reswritablefield.h:109
ResWritableField()
Construct a writable field gadget resource.
Definition: reswritablefield.h:95
Classes to use/edit toolbox resources in memory.
Class for WritableField gadget template.
Definition: reswritablefield.h:38
void after(ComponentId value)
Set the component ID of the gadget after this one in the Tab order.
Definition: reswritablefield.h:232
int max_text_len() const
Get the maximum length for the writable text.
Definition: reswritablefield.h:170
ResJustification justification() const
Get justification of the value.
Definition: reswritablefield.h:121
ComponentId after() const
Get the component ID of the gadget after this one in the Tab order.
Definition: reswritablefield.h:226
const char * text() const
Get the initially text for the writable field.
Definition: reswritablefield.h:150
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
void text(const char *value, int max_length=-1)
Set the initially text for the writable field.
Definition: reswritablefield.h:158
void allowable(const std::string &value, int max_length=-1)
Set the allowable characters in a writable field.
Definition: reswritablefield.h:203
void allowable(const char *value, int max_length=-1)
Set the allowable characters in a writable field.
Definition: reswritablefield.h:192
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602
ComponentId before() const
Get the component ID of the gadget before this one in the Tab order.
Definition: reswritablefield.h:214
ResWritableField & operator=(const ResGadget &other)
Assign from a ResGadget.
Definition: reswritablefield.h:72
void do_not_display_text(bool value)
Set if the text should not be displayed.
Definition: reswritablefield.h:143
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
void generate_value_changed(bool value)
Set if the value changed event will be generated.
Definition: reswritablefield.h:115
void text(const std::string &value, int max_length=-1)
Set the initially text for the writable field.
Definition: reswritablefield.h:166
ResWritableField(const ResWritableField &other)
Construct an writable field gadget resource.
Definition: reswritablefield.h:60
void check_type(int type) const
Check if this gadgets type is as specified.
Definition: reswindow.cc:97
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736