Simply make "pbr"-resaurce file to link this windows logo staticly in your executable
1. Add this to your project pbr-file:
c:\Windows\logo.bmp
2. Set right this file name in all dw-oject picture controls
c:\Windows\logo.bmp
----------
gruss aus Deutschland
Try this:
http://sybooks.sybase.com/onlinebooks/group-pb/pbg0900e/apptech/@Generic__BookTextView/12059;pt=12644;lang=de
----------
gruss aus Deutschland
Can you show the code for:
1. null-object declaration
2. Place, there you call responsewindow
3. DDE call in response window
4. "null object" initialisation
5. "null object"-isvalid test
6. place, there system error "null object references" occures
----------
gruss aus Deutschland
check the data type of source column for "picture_name" in Dataobject definition
In your case this should be of string type
----------
gruss aus Deutschland
Example
The following statements use the default Transaction object (SQLCA) to communicate with a Adaptive Server Anywhere database and a nondefault Transaction object named ASETrans to communicate with an Adaptive Server Enterprise database:
// Set the default Transaction object properties...
1. Import in your PBL my visual userobject "u_textbtn"
2. Put the u_textbtn on the window
3. Write this code in window open event:
uo_1.is_Text = "Line1~r~nLine 2"
uo_1.event ue_open ()
Here is the "u_textbtn" export-file:
$PBExportHeader$u_textbtn.sru
$PBExportComments$Created: Leyka...
Add the bitmap paths to the PBR file (PowerBuilder Resource File).
Look at this (Powerbuilder User's Guide):
Distributing resources
You can choose to distribute your resources (pictures, pointers, and icons) separately or include them in your executable file or dynamic library...
Sory for my poor English:
1. Check which directory is current, when application calls this datawindow.
It can be not the directory of your application.
2. Try to set the absolute path "c:\bla-bla-bla" to test, if this depends on the "current directory" setting of Windows
----------
gruss...
1. Check which directory is current, when application called this datawindow.
I can be not the directory of application.
2. Try to set the absolute paths "c:\bla-bla-bla" to test, if this depends of the "current directory" setting of window
3. Use this external function:
FUNCTION ulong...
See: GetBandAtPointer method (DataWindows)
"Reports the band in which the pointer is currently located, as well as the row number associated with the band. The bands are the headers, trailers, and detail areas of the DataWindow and correspond to the horizontal areas of the DataWindow painter."...
New version.
Now you need no timing-object. And a simple leftbutton-click produced button lowering too.
$PBExportHeader$u_pictbtn.sru
forward
global type u_pictbtn from userobject
end type
type p_1 from picture within u_pictbtn
end type
type st_1 from statictext within u_pictbtn
end type...
You need this two objects:
Make simply import.
$PBExportHeader$u_timing.sru
forward
global type u_timing from timing
end type
end forward
global type u_timing from timing
end type
global u_timing u_timing
on u_timing.create
call super::create
TriggerEvent( this, "constructor" )
end on
on...
This is a very, very, very bad database design, but there is a decision:
create graph-datawindow from such SQL-SELECT:
SELECT "months"."month_1" as value , 'month_1' as name
FROM "months"
where id =:id
union
SELECT "months"."month_2" , 'month_2'
FROM "months"
where id =:id...
Hm...
1. I use:
Adaptive Server Anywere 6.0.4.3763
2. I have a table named "TEST"
create table dba.test (id int default autoincrement not null, mes text default '' null) ;
3. I have a procededure named "DBA.TEST_PROC"
alter procedure DBA.TEST_PROC(@id integer,@mes TEXT)
as
begin
update...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.