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
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
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
TChart: +32% Processor lo...
by
KatiYusha
[
Today
at 06:45:07 pm]
CompareText improvement
by
Stefan Glienke
[
Today
at 05:07:58 pm]
An ASCII logo for Pascal ...
by
Fred vS
[
Today
at 03:34:59 pm]
Setup landmap - databse
by
WimVan
[
Today
at 03:31:15 pm]
Improvement of packages/f...
by
lagprogramming
[
Today
at 03:12:57 pm]
[SOLVED] SysTraIcon event...
by
SWM1
[
Today
at 02:40:47 pm]
pdfium.dll loadfromfile f...
by
domasz
[
Today
at 02:14:41 pm]
[SOLVED] Timer
by
Pe3s
[
Today
at 12:36:33 pm]
QT5 PageControl Tab sizes
by
zeljko
[
Today
at 12:07:55 pm]
[ SOLVED ] Json parse pro...
by
superc
[
Today
at 11:58:37 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [lamw]How do I change the jmenu icon using setitemicon? (Read 363 times)
lazpas
Jr. Member
Posts: 61
[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: 61
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