AutoHotkey Community

It is currently May 27th, 2012, 5:13 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: December 15th, 2005, 11:35 pm 
Offline

Joined: December 14th, 2005, 3:08 pm
Posts: 219
I'm new to AHK. I downloaded the latest version 2 days ago for Windows. 1.0.40.09


I've developed a wee script, nothing fancy.

The bit I'm having trouble with is the pop up menu.

Every time I pop it up, it adds 2 extra line seperators at the bottom.

http://mytriops.com/misc/AHK/
is the images of the menu popped up 3 times after it was started.
Script is there too.

_________________
Stuart Halliday


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 16th, 2005, 8:23 am 
Offline

Joined: September 25th, 2005, 4:31 pm
Posts: 610
The problem you've observed is not a bug.

documentation wrote:
Add... This is a multipurpose command that... updates
...
To add a menu separator line, omit all three parameters.


Notice that adding a separator line does not update, but always adds.

Try this:

Code:
MButton::
   if ( ! ListNames )
   {
      MouseGetPos,,,outwin
   
      Menu ListNames, Add, stuarth@ecs-tech.com
      Menu ListNames, Add, stuart@stuarthalliday.com
      Menu ListNames, Add, ECS_Technology_Ltd
      Menu ListNames, Add, stuart@mytriops.com
      Menu ListNames, Add, web-mytriops
      Menu ListNames, Add
      Menu ListNames, Add, Triops longicaudatus, Triops_longicaudatus
      Menu ListNames, Add, Triops australiensis, Triops_australiensis
      Menu ListNames, Add, Triops cancriformis, Triopscancriformis
      Menu ListNames, Add, Infusoria
      Menu ListNames, Add, Detritus
      Menu ListNames, Add, Spirulina
      Menu ListNames, Add, Caridina Japonica,CaridinaJaponica
      Menu ListNames, Add, ACF - Xenopus laevis,Xenopuslaevis
      Menu ListNames, Add, DAF - Hymenochirus boettgeri,Hymenochirusboettgeri
      Menu ListNames, Add, Golden Apple Snail (Pomacea bridgesii),Pomaceabridgesii
      Menu ListNames, Add, MT Snails,Melanoidestuberculata
      Menu ListNames, Add, hermaphroditic
      Menu ListNames, Add
      Menu ListNames, Add, copyright string,copyright
      Menu ListNames, Add, ebay notice, ebaynotice
      Menu ListNames, Color, FFDAB9
      
      ListNames := true
   }

   Menu ListNames, Show
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 16th, 2005, 5:08 pm 
Offline

Joined: December 14th, 2005, 3:08 pm
Posts: 219
shimanov wrote:
The problem you've observed is not a bug.

Notice that adding a separator line does not update, but always adds.

Try this:




Thanks for correcting me Shimanov.

I see where I've gone wrong. :-)

_________________
Stuart Halliday


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group