dibesw Active Member Licensed User Longtime User Jun 18, 2014 #1 Is it possible align label in runtime mode? like this:
NJDude Expert Licensed User Longtime User Jun 18, 2014 #2 Yes Code: Copy Label1.Gravity = Gravity.CENTER_HORIZONTAL If you need to combine alignments then you do this: Code: Copy Label1.Gravity = Bit.OR(Gravity.CENTER_HORIZONTAL, Gravity.CENTER_VERTICAL) Upvote 0
Yes Code: Copy Label1.Gravity = Gravity.CENTER_HORIZONTAL If you need to combine alignments then you do this: Code: Copy Label1.Gravity = Bit.OR(Gravity.CENTER_HORIZONTAL, Gravity.CENTER_VERTICAL)
L Linostar Member Licensed User Longtime User Jun 18, 2014 #3 NJDude said: Yes Code: Copy Label1.Gravity = Gravity.CENTER_HORIZONTAL If you need to combine alignments then you do this: Code: Copy Label1.Gravity = Bit.OR(Gravity.CENTER_HORIZONTAL, Gravity.CENTER_VERTICAL) Click to expand... I think that Gravity.CENTER combines both vertical and horizontal gravities. Upvote 0
NJDude said: Yes Code: Copy Label1.Gravity = Gravity.CENTER_HORIZONTAL If you need to combine alignments then you do this: Code: Copy Label1.Gravity = Bit.OR(Gravity.CENTER_HORIZONTAL, Gravity.CENTER_VERTICAL) Click to expand... I think that Gravity.CENTER combines both vertical and horizontal gravities.