powered by simpleCommunicator - 2.0.60     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / FoxPro, Visual FoxPro [игнор отключен] [закрыт для гостей] / Закладки
4 сообщений из 4, страница 1 из 1
Закладки
    #32595345
iwa
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Всем привет!
Ответьте, кто делал так, чтобы закладки объекта PageFrame находились не сверху, а снизу

---------------------------
*********************|
*********************|
---------------------------
____|_______|
...
Рейтинг: 0 / 0
Закладки
    #32595363
Reznichenko Y.V.
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
А что не получается ? Myframe.TabOrientation = 1.
...
Рейтинг: 0 / 0
Закладки
    #32595448
iwa
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
спасибо!
попробую
...
Рейтинг: 0 / 0
Закладки
    #32595568
piva
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Забавно плоучилось (vfp8, win2k, winxp)

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
Public x
x=CreateObject('pgForm')
x.show()

Define Class pgForm as Form

	AutoCenter=.T.
	MinButton=.F.
	MaxButton=.F.
	
	BorderStyle= 0 
	TitleBar= 0 
	DeskTop=.T.
	
	BackColor=Rgb( 250 , 250 , 250 )
	
	Add Object PageFrame as PageFrame with ;
		PageCount= 2 ,;
		TabOrientation= 1 ,;
		TabStyle= 1 

	Procedure init
	With this
		.PageFrame.Width=.Width
		.PageFrame.Height=.Height
	
		DECLARE ReleaseCapture IN "user32"
		DECLARE LONG SendMessage IN "user32";
			LONG HWND, LONG wMsg, LONG wParam, LONG LPARAM
		
		DECLARE integer FindWindow in Win32api ;
			string lpClassName,;
			string lpWindowTitle 

		DECLARE INTEGER SetLayeredWindowAttributes IN win32api;
			INTEGER HWND,  INTEGER crKey, INTEGER bAlpha, INTEGER dwFlags

		*These functions get and set a window's attributes
		DECLARE INTEGER SetWindowLong IN user32.DLL ;
			INTEGER hWnd, INTEGER nIndex, INTEGER dwNewLong

		DECLARE INTEGER GetWindowLong IN user32.DLL ;
			INTEGER hWnd, INTEGER nIndex

		*Constants for SetLayeredWindowAttributs
		#DEFINE LWA_COLORKEY	1
		#DEFINE LWA_ALPHA		2

		*Constants for SetWindowLong and GetWindowLong
		#DEFINE GWL_EXSTYLE		-20
		#DEFINE WS_EX_LAYERED	0x00080000

		LOCAL lnFlags
		*The form's window must be set to Layered, so that it is drawn
		* in a separate layer.
		lnFlags = GetWindowLong(this.HWND, GWL_EXSTYLE)	&&Gets the existing flags from the window
		lnFlags	= BITOR(lnFlags, WS_EX_LAYERED)			&&Appends the Layered flag to the existing ones
		SetWindowLong(this.HWND, GWL_EXSTYLE, lnFlags)		&&Sets the new flags to the window
		SetLayeredWindowAttributes(this.HWND, this.BackColor,  0 ,  1 )
		
	EndWith

	Procedure MouseMove
	LPARAMETERS nButton, nShift, nXCoord, nYCoord
	IF nButton =  1 
		ReleaseCapture()
		SendMessage(THIS.HWND, 0x112, 0xF011, 0x0)
	ENDIF
		
	Procedure PageFrame.INit
	With this
		With .Page1
			.AddObject("Label","Label")
			.Label.FontSize= 16 
			.Label.FontBold=.T.
			.Label.Caption='Page 1'
			.Label.Visible=.T.
			.Label.AutoSize=.T.
		EndWith
		With .Page2
			.AddObject("Label","Label")
			.Label.FontSize= 16 
			.Label.FontBold=.T.
			.Label.Caption='Page 2'
			.Label.Visible=.T.
			.Label.AutoSize=.T.
		EndWith
	EndWith

	Procedure PageFrame.Page1.MouseMove(nButton, nShift, nXCoord, nYCoord)
	thisform.mousemove(nButton, nShift, nXCoord, nYCoord)

	Procedure PageFrame.Page2.MouseMove(nButton, nShift, nXCoord, nYCoord)
	thisform.mousemove(nButton, nShift, nXCoord, nYCoord)
	
EndDefine 
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / FoxPro, Visual FoxPro [игнор отключен] [закрыт для гостей] / Закладки
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]