Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command Buton Cancel and Image
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00682045
Message ID:
00682055
Views:
17
You can still use Image with CommandButton. Check out Picture property....

You can trap Key # 27 in the KeyPress of the form and set a flag. Check against that flag in TextBox.Valid. For example,

KeyPress()
IF LastKey() # 27
Thisform.lFormUnloading = .T.
ENDIF

TextBox.Valid()
*-- lFormUnloading is your custom property
IF Thisform.lFormUnloading
RETURN .T.
ENDIF
*** Other Code ***

>Hi
>
>I know , if i have a command Button with Property Cancel = .T. , i can write in TextBox Valid
>
>If LastKey() # 27
>...
>
>So , if user click in Command Button , VfP don´t make Valid the TextBox .
>
>Now , i want , the same thing , but i don´t have a CommandButton ,i have a image , because image is most beautiful .
>
>When user click in image , i don´t want VFP make Valid the TextBox .
>
>I use VFP 6 . It´s possible ?
>
>Thanks
- Jayesh
Previous
Reply
Map
View

Click here to load this message in the networking platform