Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make a toolbar without borders and titlebar
Message
 
To
31/07/2007 06:29:10
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01244794
Message ID:
01244812
Views:
29
Hi,

>I need toolbar. Because I made a virtual keyboard. With toolbar control lostfocus method doesn't run.

A couple of options:

1) Can't you use the On Screen Keyboard from Microsoft. Just execute OSK.EXE.

2) In your base class you could store which control had focus. Then in the keyboard form set the focus back to the actual control. In addition you might have to store the current position in the text box.

3) You might have some success if you hook into the Paint method or the WM_PAINT message with BINDEVENT() and use GDI+ to overwrite the border and title bar. You can use the following code to remove the border that is drawn by the OS:
Declare Long GetWindowLong in Win32API Long, Long
GWL_STYLE = -16
WS_BORDER = 0x00800000
WS_THICKFRAME = 0x00040000
lnStyle = GetWindowLong( ox.HWnd, GWL_STYLE )
SetWindowLong(  ox.HWnd, GWL_STYLE, lnStyle-Bitand(lnStyle,WS_BORDER+WS_THICKFRAME) )
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform