gui_native and drawText

Discussions related to Visual Prolog
User avatar
Tonton Luc
VIP Member
Posts: 500
Joined: 16 Oct 2001 23:01

gui_native and drawText

Unread post by Tonton Luc » 28 Aug 2012 8:18

Hi,

I've tried this following code but nothing appear in my screen :

Code: Select all

clauses     onTest4(_Source, _MenuTag):- %        DW = gui_native::getDesktopWindow(),         NULLWIN=uncheckedConvert(vpiDomains::windowHandle,0),         DW = uncheckedConvert(hwnd,vpi::winGetAttrVal(NULLWIN,attr_screen_window)),         DC = gui_native::getDC(DW),         R = gui_native::drawText(DC,"Hello world !",-1,rct(500,500,900,700),gui_native::dt_left),         stdio::write("R = ",R,"\n") % here, R = 16 => regarding MSDN, it'seems good.         .
Can I write some text everywhere in my screen using gui_native::drawText ?

Post Reply