Can I have Vertical Buttons instead of Horizontal in a Message Box


#21

Hi,

What command will give me the USE value?
For instance my Buttons USE is: ?Button1

Prop:Text gives me the Text part.

Regards

Johan de Klerk


#22

FIELD() will return the FEQ


#23

I tried but can not figure it out.

If I have this code:
LOOP feq = FIRSTFIELD() TO LASTFIELD()
IF feq{Prop:Type} = Create:button ! Centre everything on the window
Message('Use Value of button = '&This is where i am stuck)
feq{Prop:Xpos} = (winW - feq{Prop:Width}) / 2
END
END


#24

feq is USE value in this case.


#25

Look at the prototype and usage for cla$fieldname on Mark Goldberg’s post. How to Alter the Icon of a COMBO drop control


#26

Hi everyone,

Attached is what I have achieved with the message box.

It works great for me.
I have created it with 28 buttons in my apps so I have enough options available.

Thanks for everyone’s help.

I am sure it can be made more generic and much cleaner code but that is beyond my capability.
If anyone improves on it please post it back here.

TestOwnMessageBox.zip (503.9 KB)

Regards

Johan de Klerk


#27

Got a screenshot of it in action? :selfie:


#28