>Is there a way to modify the caption of messagebox() command buttons?
>
>For example, suppose I wanted the command buttons of a "Yes, No, Cancel" to read "Up, Down, Sideways" ... ?
>
>Ssince all messagebox does is return 6=Yes, 7=No, or 2=Cancel, it would be a no brainer to interpret return codes and do whatever. With all the flexibility available, but it seems "peculiar" that there isn't a backdoor for get at properties of those controls.
>
>Is my only option to create my own class?
Hello Ernie!
There exists a solution... but hard to code in VFP.
MessageBox is modal dialog box. So, before display the box start a timer. At first timer event when messagebox already visible, search for the messagebox, search for the buttons among its child windows (buttons are child windows) and change their text with SetWindowText function.
Although these function available API functions, the VFP builtin timer wont fire during messagebox displaying. I made a better timer (downloadable from file section), it will fire, but VFP wont execute the timer event command till returning from messagebox. So...
It is easier to make a VFP form to use as messagebox!
BB
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only