Hahahaha, maklum, kompi jadul
bilie christiansen, s.kom
-----Original Message-----
From: Hermawan Dephe <[email protected]>
Sender: [email protected]
Date: Thu, 14 Oct 2010 09:50:58
To: <[email protected]>
Reply-To: [email protected]
Subject: Re: [indopb] Screen resolution
emang bisa yah pake ini?
Mirip fungsi Point, Pset kalo di bahasa basic
Emang knp gak ganti aja monitornya pake resolusi pake 1280x768?
kok masih ada sih monitor yg masih 800x600? pake OS win 98 ya pak?
bhakti prabandyo wrote:
GetPixel( ) SetPixel( )
The first function returns the color of a specific pixel. The SetPixel
function changes the targeted pixel to the color sent. There is no PowerBuilder
equivalent.
Global External Function:
FUNCTION ulong GetPixel(ulong hwnd, long xpos, long ypos) LIBRARY "Gdi32.dll"
FUNCTION ulong SetPixel(ulong hwnd, long xpos, long ypos, ulong pcol) LIBRARY
"Gdi32.dll"
Script:
long lx, ly
ulong rtn
ulong l_handle, l_device
lx = 100
ly = 100
l_handle = handle(w_main)
l_device = GetDC(l_handle)
rtn = GetPixel(l_device, 100, 100)
MessageBox("Position " + string(lx) + "," + string(ly),"Color = " +
string(rtn))
SetPixel(l_device, lx, ly, 0) // This call will set the pixel at lx, ly to
black.
Sent from my BhakBerry®
powered by Sinyal Kuat INODSAT
----------------
From: "bilie" <[email protected]> <mailto:[email protected]>
Sender: [email protected] <mailto:[email protected]>
Date: Thu, 14 Oct 2010 02:23:21 +0000
To: <[email protected]> <mailto:[email protected]>
ReplyTo: [email protected] <mailto:[email protected]>
Subject: [indopb] Screen resolution
Teman2 saya pnya mslh dalam aplikasi yg dibuat dgn PB, waktu pembuatan
berdasrkan monitor degn resolusi 1280x768, tetapi kmptr klien mnggunakan
monitor dgn resolusi 800x600, nah bagaimana carany agar windows2 yg saya buat
trmsuk toolbarny tidak terpotong? tpi jgn di edit manual 1 persatu, soalny
windowsny bnyk bgt
bilie christiansen, s.kom