Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MessageBox with custom button captions
Message
From
17/12/2002 14:46:54
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00733772
Message ID:
00733814
Views:
36
:O) Ok, that was pretty silly of me. I didn't even notice that 'x' in there! You'd think it was Friday...

Thanks Sergey! :o)
Tracy

>It should be "*' not 'x'.
lblheight = (LEN(lcmessage)/60)*17
>
>>Thanks Sergey, I looked at alert.prg but it requires foxtools and I'm trying to limit what is distributed with our app to keep the size as small as possible.
>>
>>I have created a form that works well, however, I need to be able to resize it and its objects based on the size of the message. I have a label that holds the message and the message is passed to the form and displays correctly. However, I would like to resize everything based on the length of the message. I know the label height should be approximately 17 X the length of the message divided by 60, but the below does not work:
>>
>>
>>THISFORM.label1.caption=lcmessage
>>lblheight=(LEN(lcmessage)/60)x17
>>THISFORM.label1.height=lblheight
>>
>>
>>I receive the 'syntax error' when I try the above code. Any idea how I can set a label height using a computed value?
>>
>>TIA,
>>Tracy
>>
>>this is my message and is about 3 lines long in total on the form
>>>You can try Alert.prg - custom messagebox File #9445.
>>>
>>>>Has anyone figured out a way to display a messagebox with custom captions on the buttons? I would like to do this WITHOUT adding an FLL to my project as in File #9676.
>>>>
>>>>TIA,
>>>>Tracy
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform