|
dw_navigator
|
|||
---|---|---|---|
#18+
Пишу навигатор для dw только не получается хэндл dw получить, т.е. на window лежит dw и мой навигатор и нифига не управляется, сначала в userobject с dw хотел загнать но потом решил типа как в делфе сделать. как получить хэндл dw или мб другой вариант есть?) спс ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2010, 11:48 |
|
dw_navigator
|
|||
---|---|---|---|
#18+
shut-up-and-skate, Handle PowerScript function ? ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2010, 12:45 |
|
dw_navigator
|
|||
---|---|---|---|
#18+
Ikar, //global type window w_main //uo_navigator uo_nav (имеет public: _dw) //datawindow dw_main uo_nav._dw (куда присваивать:( ) = handle(dw_main) e dw есть внутренний объект dwobject но это не то. так что хы( ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2010, 13:16 |
|
dw_navigator
|
|||
---|---|---|---|
#18+
dw_main - это объект на окне? Если да, то все должно работать путес присваивания этого dw_main свойству _Dw которое должно иметь тип DataWindow. Зачем получать handle - не ясно. ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2010, 13:52 |
|
dw_navigator
|
|||
---|---|---|---|
#18+
shut-up-and-skateПишу навигатор для dw WTFS? shut-up-and-skateтолько не получается хэндл dw получитьКакова цель этого упражнения? shut-up-and-skate но потом решил типа как в делфе сделатьЭто путь в ад. shut-up-and-skate как получить хэндл dw PowerBuilder HelpHandle PowerScript function Description Obtains the Windows handle of a PowerBuilder object. You can get the handle of the application, a window, or a control, but not a drawing object. Syntax Handle ( objectname {, previous } ) Argument Description objectname The name of the PowerBuilder object for which you want the handle. Objectname can be any PowerBuilder object, including an application or control, but cannot be a drawing object previous (optional) A boolean indicating whether you want the handle of the previous instance of an application. Values are: · False — (Default) Return the handle of the current instance · True — Return the handle of the previous instance Return value Long. Returns the handle of objectname. If objectname is an application and previous is TRUE, Handle returns 0 if there is no previous instance. If objectname cannot be referenced during execution, Handle returns 0 (for example, if objectname is a window and is not open). Usage Use Handle when you need an object handle as an argument to Windows Software Development Kit (SDK) functions or the PowerBuilder Send function. Use IsValid instead of the Handle function to determine whether a window is open. When you ask for the handle of the application, Handle returns 0 when you are using the PowerBuilder Run command. As far as Windows is concerned, your application does not have a handle when it is run from PowerBuilder. When you build and run an executable version of your application, the Handle function returns a valid handle for the application. When you ask for the handle of a previous instance of the application, Handle returns 0 if no other instance is running. For Windows, this is always the case when the previous flag is TRUE. shut-up-and-skate или мб другой вариант есть?) спсНаверняка есть. Главное понять, что именно мы хотим получить в результате. ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2010, 13:53 |
|
dw_navigator
|
|||
---|---|---|---|
#18+
Локшин Марк,PL99 да блин точно норм все handle не нужен всем спасибо ппц все просто туплю) ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2010, 14:03 |
|
dw_navigator
|
|||
---|---|---|---|
#18+
PL99, нащет ада это точно.. ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2010, 14:05 |
|
dw_navigator
|
|||
---|---|---|---|
#18+
цель типа создать универсальный набор кнопок для работы с dw как userobject (dw_nav) вот все норм ток былобы ваще круто если в general properties dw_nav можно было бы указать путь путь к dw чтоб ручками на open не присваивать в protected добавляеш не видно как обойти(.. ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2010, 14:11 |
|
dw_navigator
|
|||
---|---|---|---|
#18+
думал можно через string какнить получить этот компонент вот и дошел до handle) ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2010, 14:14 |
|
dw_navigator
|
|||
---|---|---|---|
#18+
shut-up-and-skate, У объекта Window есть свойство Control[], соответственно можно DataWindow искать через него. ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2010, 14:22 |
|
dw_navigator
|
|||
---|---|---|---|
#18+
Локшин Марк, //protected: // //string dataobject window w; w = getparent() int ccount ccount = upperbound(w.control) int i for i = 1 to ccount if w.control[i].classname() = dataobject then _dw = w.control[i] end if next все кул спс) ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2010, 15:20 |
|
|
start [/forum/topic.php?fid=15&fpage=24&tid=1335878]: |
0ms |
get settings: |
10ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
43ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
49ms |
get tp. blocked users: |
1ms |
others: | 12ms |
total: | 149ms |
0 / 0 |