Thread Tools Display Modes
05-22-08, 01:18 PM   #1
Ali1331
A Defias Bandit
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 2
Help with a simple button...

Hey I've been trying for a while now to get this button to work but I just can't figure it out

Here's what I've got

Code:
	
<Button name="$parent_Button" inherits="OptionsButtonTemplate" text="Click me!">
	<Size>
		<AbsDimension x="80" y="22"/>
	</Size>
	<Anchors>
		<Anchor point="CENTER" />
	</Anchors>
	<Scripts>
		<OnClick> 
			Usefulcmds_OnClick(arg1)
		</OnClick>
	</Scripts>
</Button>
Anyone got an idea of what's wrong?
  Reply With Quote
07-23-08, 05:30 PM   #2
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
So, what's exactly wrong with your button?
If the button just isn't visible please post your complete code.


doh
just realized the date. pardon

Last edited by Duugu : 07-23-08 at 05:33 PM.
  Reply With Quote
07-23-08, 05:54 PM   #3
Cralor
Mmm... cookies!!!
 
Cralor's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 772
Better late then never.

If the OP ever comes back to this thread, please tell us what exactly you want the button to do. We can't help you without knowing what you want your code to do.
__________________
Never be satisfied with satisfactory.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Help with a simple button...


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off