KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Context Menu ImageList / Icon support?

 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
TDF
KiXforms Regular
KiXforms Regular


Joined: 11 Jan 2005
Posts: 46
Location: Newcastle-upon-Tyne, England

PostPosted: Sat Feb 05, 2005 4:27 pm    Post subject: Context Menu ImageList / Icon support? Reply with quote

Hi Shawn,

Maybe another cool feature for the context menus would be an imagelist / icon support, just like mainmenu menu items!

_________________
It shrunk! Shocked
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Mon Feb 07, 2005 1:06 pm    Post subject: Reply with quote

TDF,

you mean like this? (tested with 2.4.0.46 special build 18 ) ?


Code:

break on

$_ = srnd(@msecs)

$s = createobject("KiXtart.System")

$f = $s.Form()
$f.Text = 'Right Click me!'
$f.OnMouseDown = "if $$f.MouseButton = 2 $$cm.Show($$f,$$f.MouseX,$$f.MouseY) endif"

$cm = $s.ContextMenu()
$cm.Imagelist = $s.BuiltinImagelist
$cm.Style = 1

for $i = 0 to 4
    $_ = $cm.MenuItems.Add("MenuItem" + $i)
    $_.ImageIndex = rnd(105)
next

$f.Show

while $f.Visible
    $_ = execute($f.DoEvents)
loop
exit 0

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group