hi this is my code
Preesed()
select case item.Caption
case “Exit”
MessageBox(“test”)
end select
but when click on the menu nothing is happening, any idea.
hi this is my code
Preesed()
select case item.Caption
case “Exit”
MessageBox(“test”)
end select
but when click on the menu nothing is happening, any idea.
Use a Tag
In the code to create the button add:
buttonName.Tag = “myExit” (or whatever you want to call it)
Then for clicked event:
select case item.Tag case “myExit” MessageBox(“test”) end select
And where is that code?
Did you look at the examples that ship with Xojo?
What Xojo version are you using?
I just tried on 2025R2.1 and in the Pressed event .Caption was not working but .Tag did
Are you able to try?
.Caption is working here. macOS 15.7.2, Chrome browser.
i have xojo 2025 2.1, i do no seed the examples on my folder, i use code from help.
Web 1.0 was Easy and work way change this no like xojo more i am looking for other dev.
thanks
windows 11
hi
no works i press the icon on the tools bar and no works
Did you try what I wrote?
push buttons that works, basic code
thanks
ok
i found that examples.
but is more complicate then web version 1.0
Not harder just different API but you will adjust quickly.
Is there something in the example you do not understand or is not working?
hi
i copy and paste the code to my project but is more simple visual tools bar like old xojo version.
thanks for the good help
It was on their “Do after we get this out the door” list, but has not come to fruition yet. There is an issues ticket for that where you can follow along: #75968 - The WebToolbar editor needs the ability to create items like the desktop version does
Give it a thumbs up to show you desire the feature and sign up for email notifications.
wow
thanks