Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alter Form Layout Toolbar?
Message
From
24/01/2004 13:21:20
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00870280
Message ID:
00870287
Views:
13
Anyway to do it without keyboard? The menu options cannot be triggered in some other way?

>>Hi all
>>
>>When designing a form, I find I like to use the menu Format...Horizontal Spacing...Increase and Decrease features.
>>
>>They are incremental. So I'm wondering if there is a way to add these items to the Form Layout toolbar or at least to change the menu to add a hotkey.
>>
>Hi Mike,
>
>Just an idea. You may try to create your own toolbar or use ON KEY label to stuff keyboard.
_screen.AddProperty("oFrmToolbar", CREATEOBJECT("mytoolbar"))
>_screen.oFrmToolbar.Show()
>RETURN
>
>DEFINE CLASS mytoolbar AS toolbar
>
>	Caption = "Toolbar1"
>	Height = 28
>	Left = 0
>	Top = 0
>	Width = 63
>	Name = "mytoolbar"
>
>	ADD OBJECT command1 AS commandbutton WITH ;
>		Top = 3, ;
>		Left = 5, ;
>		Height = 22, ;
>		Width = 23, ;
>		Caption = "H+", ;
>		Name = "Command1"
>
>	ADD OBJECT command2 AS commandbutton WITH ;
>		Top = 3, ;
>		Left = 35, ;
>		Height = 22, ;
>		Width = 23, ;
>		Caption = "H-", ;
>		Name = "Command2"
>
>	PROCEDURE command1.Click
>                * +
>		KEYBOARD "{ALT+o}{DNARROW}{DNARROW}{SPACEBAR}I"
>	ENDPROC
>	PROCEDURE command2.Click
>                * -
>		KEYBOARD "{ALT+o}{DNARROW}{DNARROW}{SPACEBAR}D"
>	ENDPROC
>ENDDEFINE
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform