totalcross
totalcross copied to clipboard
Button image with text
Is your feature request related to a problem? Please describe.
if i put a label in front of a button the label blocks the button
Describe the solution you'd like
i wish if i could have a button with label, because in totalcross we can only use a image or text not both
Button button = new Button("sample");
try {
button.setImage(new Image("test/sample.png"));
} catch (ImageException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
container.add(button,CENTER,CENTER,100,100);
Devices
Add a list of the platforms you want this feature to be implemented and on which version of TotalCross.
- Device: Raspberry,Android