• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Command Button OriginFrames

Status
Not open for further replies.
Level 17
Joined
Mar 21, 2011
Messages
1,611
Hello guys,

i'm struggling with a very simple task. I just want to move an OriginFrame (in this case CommandButton 8) to another spot on the screen. It doesnt work for some reason, the icon sometimes disappears, sometimes it is still connected to an AbsPoint, even tho i removed all points..

JASS:
local framehandle fh
set fh = BlzGetOriginFrame(ORIGIN_FRAME_COMMAND_BUTTON, 8)
call BlzFrameClearAllPoints(fh)
call BlzFrameSetAbsPoint(fh, FRAMEPOINT_BOTTOMLEFT, 0.50, 0.50)

shouldn't that be enough?
 
Status
Not open for further replies.
Top