Support for WindowFromPoint in Linux?

Linux specific forum
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Eikeland.

Hi,
I'm working on a Editor and GUI builder for Linux, and I did run in to a few API related problems, does anyone have a suggestion for the "WindowFromPoint_"?

here is a code snippet...
mx = WindowX() + WindowMouseX()
my = WindowY() + WindowMouseY()
Handle = 0
For i = 0 To Control
If WindowFromPoint_(mx,my) = GadgetID(i) ;This is what I need to solve
Handle.l = GadgetID(i)
IDgadget.l = i ;The number of the Gadget
EndIf
Next i

B.T.W I'm using part's of the code Ricardo posted, Thanks Richardo! :)

Richard
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

I can't help for this one..

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Eikeland.
Originally posted by fred

I can't help for this one..
Aw...okey :)

P.S. Fred, I know you have a overloaded with work, but may I ask how it's going with a Library SDK for Linux?
I could need to add many API functions with libray SDK :)
...anywa thanks for a great job.

Richard
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by dmoc.

Richard, had a very quick search, this may provide some pointers (ooo, pun!)...

http://www-h.eng.cam.ac.uk/help/tpl/gra ... 0000000000
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ricardo.

Hi,

Im not sure what part of the code are you using, but i think that you can know what gadget are under the mouse pointer checking the coordinates of every control.
If you do a FOR you can get which control is under the pointer.

I dont know nothing about Linux so i cant help you there.

Note:

I think thatif some one has the time and patience is not to hard to develope a gui builder that dont use window APIs and then could be use on any plataform.

If you want or need something send me an email.

Best Regards

Ricardo

Dont cry for me Argentina...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Eikeland.

Thanks Guys,
But after played with PB-Linux a few days, did I deside to wait on a more complete release.
I will still "play" with the linux version, but I do not dear to start write any "serious" stuff there yet.
I'm sure when Fred get some time it will improve :)

Richard
Post Reply