Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
[lamw]How do I change the jmenu icon using setitemicon?
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Is there a function calle...
by
OC DelGuy
[
Today
at 05:12:18 am]
Controls inside the form ...
by
Ecsa
[
Today
at 04:02:37 am]
Theo's Searchbar plugin f...
by
Curt Carpenter
[
Today
at 03:54:33 am]
Search panel plugin for t...
by
Curt Carpenter
[
Today
at 03:51:49 am]
Question about GTK2 text ...
by
tomitomy
[
Today
at 02:25:17 am]
lazreport load image from...
by
dseligo
[
Today
at 01:41:08 am]
pls advice for good style...
by
dseligo
[
Today
at 01:19:35 am]
error release when memo.s...
by
VTwin
[
Today
at 12:59:28 am]
Best way to parse file.
by
Kays
[
Today
at 12:56:50 am]
capture apl_exec stdout
by
440bx
[
Today
at 12:28:28 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [lamw]How do I change the jmenu icon using setitemicon? (Read 315 times)
lazpas
Jr. Member
Posts: 60
[lamw]How do I change the jmenu icon using setitemicon?
«
on:
November 04, 2022, 02:07:34 am »
Hello,
How do I change the jmenu icon using setitemicon? Where are the examples? I want to change to another icon after clicking on the menu item ...
Thanks.
Logged
lazpas
Jr. Member
Posts: 60
Re: [lamw]How do I change the jmenu icon using setitemicon?
«
Reply #1 on:
December 05, 2022, 05:51:48 am »
Solved.
Code: Pascal
[Select]
[+]
[-]
jmenu1
.
setitemicon
(
jobjmenuitem
,
self
.
getdrawableresourceid
(
'file'
)
)
;
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
[lamw]How do I change the jmenu icon using setitemicon?
TinyPortal
© 2005-2018