How To Make A Button Your Way
Forum rules
Be kind.
Be kind.
- richmond62
- Posts: 4833
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
How To Make A Button Your Way
OK, OK, OK: you have found out that the standard buttons in OXT are ever so slightly boring, and you would like something with a bit more, um, pizzazz.
So: open a new stack in OXT:
- -
Import the image you want to have as the back ground of your button:
- -
Make sure you know what the image is called:
-
So: open a new stack in OXT:
- -
Import the image you want to have as the back ground of your button:
- -
Make sure you know what the image is called:
-
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 4833
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: How To Make A Button Your Way
Move the image where people will not be able to see it:
- -
Create a rectangle graphic:
- -
and set its name to the words you want on your button:
-
- -
Create a rectangle graphic:
- -
and set its name to the words you want on your button:
-
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 4833
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: How To Make A Button Your Way
Set the text size of the graphic to the size you want in your finished button:
- -
And resize the graphic to the way you want it:
- -
Now set the back ground of your button by entering code into the messageBox:
-
- -
And resize the graphic to the way you want it:
- -
Now set the back ground of your button by entering code into the messageBox:
-
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 4833
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: How To Make A Button Your Way
Resize and reshape the graphic to the way you want your button to look:
- -
Change the text and border colour if you want to:
- -
Add any shadow effects if you wish:
-
- -
Change the text and border colour if you want to:
- -
Add any shadow effects if you wish:
-
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 4833
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: How To Make A Button Your Way
Group the graphic by using the menu:
- -
Give your group a name:
- -
- -
Give your group a name:
- -
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 4833
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: How To Make A Button Your Way
Make sure that your group is locked:
- -
Write code in the messageBox to take a snapshot of the group:
- -
Delete the group:
-
- -
Write code in the messageBox to take a snapshot of the group:
- -
Delete the group:
-
https://richmondmathewson.owlstown.net/
- richmond62
- Posts: 4833
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: How To Make A Button Your Way
You now have an image which can be used as a button:
- -
You can remove the back ground image from your stack as it is no longer needed.
- -
You can remove the back ground image from your stack as it is no longer needed.
https://richmondmathewson.owlstown.net/
- tperry2x
- Posts: 3211
- Joined: Tue Dec 21, 2021 9:10 pm
- Location: Somewhere in deepest darkest Norfolk, England
- Contact:
Re: How To Make A Button Your Way
To add to this, another idea if you just want a UI control that looks a bit different:
- richmond62
- Posts: 4833
- Joined: Sun Sep 12, 2021 11:03 am
- Location: Bulgaria
- Contact:
Re: How To Make A Button Your Way
That's very nice, but the point of this thread was really how to make a button that looks the same regardless of which platform a standalone hived off from the source stack is meant to run on: and that includes not getting buggered-up because chummy, the end-user does not have the 'Rocky Horror' font on his/her system.
https://richmondmathewson.owlstown.net/
Who is online
Users browsing this forum: No registered users and 2 guests