| || |
Powerbuilder check box
While testing Powerbuilder application, I need to click on a checkbox. But Gui map editor does not recognize it as a checkbox, but rather as part of table. How can I make it recognize and click on it? I already entered the object description manually in Gui map editor, but that also did not help.
Re: Powerbuilder check box
You could try this one. You may need to tweek the color and coordinates slightly to get it working. Once you know the state, obj_mouse_click should suffice.
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">load_dll("gdi32.dll"
extern int GetPixel (int hdc, int XPos, int nYPos);
extern int GetDC(int hWnd);
function is_checked(in button)
DC = GetDC(handle);
pixel = GetPixel(DC,5,int(height/2));
if(pixel == 16777215)
pause("Eye Captain, she is a-checked!"
pause("DOH!"</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">