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
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
Why MaxDouble does not eq...
by
BrunoK
[
Today
at 02:54:30 pm]
Optional parameter in fun...
by
carl_caulkett
[
Today
at 02:23:52 pm]
FpcUpDeluxe seems to have...
by
cdbc
[
Today
at 02:12:15 pm]
Chinese Fonts in fpPDF
by
jianwt
[
Today
at 01:53:14 pm]
Q Win SHBrowseForFolder A...
by
d7_2_laz
[
Today
at 01:32:07 pm]
Error printing to zebra p...
by
magleft
[
Today
at 01:07:15 pm]
String in binary file
by
Thaddy
[
Today
at 12:59:02 pm]
Use mORMot2 to export PDF...
by
dbannon
[
Today
at 12:33:49 pm]
[Solved] Shell controls s...
by
d2010
[
Today
at 12:13:47 pm]
TPairSplitter control lea...
by
wp
[
Today
at 11:31:27 am]
Xtensa-freertos wiki
by
ccrause
[
Today
at 09:48:49 am]
Building FPC 3.2.2 on Deb...
by
MarkMLl
[
Today
at 09:27:48 am]
Win SHBrowseForFolder API...
by
d2010
[
Today
at 09:02:38 am]
Class helpers cannot have...
by
Thaddy
[
Today
at 08:51:02 am]
Not able to install "fpc-...
by
dbannon
[
Today
at 07:19:07 am]
[Solved] Package Laz_Syna...
by
Fibonacci
[
Today
at 03:40:50 am]
Making a plea :)
by
dbannon
[
Today
at 02:25:25 am]
Reintroduce events and pr...
by
Joanna
[
Today
at 01:58:28 am]
Besides TForm is there a ...
by
mas steindorff
[
Today
at 12:40:09 am]
About $ and Cents - Dbf L...
by
Fibonacci
[
Today
at 12:01:43 am]
Is there a TPanel substit...
by
Sieben
[October 04, 2024, 11:47:42 pm]
FPC 3.2.2 / Lazarus 2.2.6...
by
Fred vS
[October 04, 2024, 09:58:43 pm]
Why I can not set affinit...
by
440bx
[October 04, 2024, 09:28:07 pm]
Feature announcement: Imp...
by
corpsman
[October 04, 2024, 08:48:30 pm]
Trying to tweak the bsTri...
by
carl_caulkett
[October 04, 2024, 08:19:54 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [lamw]How do I change the jmenu icon using setitemicon? (Read 720 times)
lazpas
Jr. Member
Posts: 86
[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: 86
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