Page 1 of 1

OwnGadget v1.1 Released

Posted: Mon Apr 19, 2004 8:26 pm
by Erlend
Hi All, Please check out the new version at

http://home.c2i.net/PreachersPlace/

Enjoy

Erlend Rovik aka Preacher

Posted: Mon Apr 19, 2004 9:33 pm
by Dreglor
what does it do?

Posted: Mon Apr 19, 2004 9:46 pm
by GPI
Dreglor wrote:what does it do?
Maybe offtopic, but

Message: 1 line
Sig: 10 lines

Take care for users, which don't have a whell-mouse...

Posted: Mon Apr 19, 2004 9:47 pm
by Erlend
It allows you to create your own gadget, and the gadget will call spesified functions for repainting the gadget and when you scroll a scroll bar the gadget directly calls your function.

Check out the Demo file and you'll see what I mean...

Preacher

..

Posted: Mon Apr 19, 2004 10:12 pm
by NoahPhense
GPI wrote:
Dreglor wrote:what does it do?
Maybe offtopic, but

Message: 1 line
Sig: 10 lines

Take care for users, which don't have a whell-mouse...
lol ;)

- np

Posted: Mon Apr 19, 2004 10:54 pm
by PolyVector
wonderful library!
i love it :)

Posted: Tue Apr 20, 2004 10:52 am
by Fred
yes, very nice little lib to easy built skined gadgets.

Posted: Thu Apr 29, 2004 4:36 am
by Dare2
Erlend, this is cool.

Are there any limits on # of gadgets?

Are you intending to add to the library? For example with optional call like setting/changing background color for a specific gadget. Or getting current h/vscroll position (I know can be done via code, but storing as an internal property would be neat)

Is there some way to access or refer to a gadget outside of the callbacks? For example, to draw onto or do other stuff with it.

Cool, regardless.

Posted: Thu Apr 29, 2004 10:42 pm
by Erlend
Thank You Dare2!

No there are no limit of gadgets exept for available mem, but should not be a problem for anyone I guess. adding backgroundcolor for spesified gadget should not be any problem. (see if I can get it done soon) .

The internal scroll property I am not sure what you mean, if it is some thing like this:

Code: Select all

GetOwnGadget_VScroll(Gadget) 
Then I'll do it right away.

Drawing can allways be done like this:

Code: Select all

Structure PBDrawingStruct
  Type.l
  WindowHandle.l
  DC.l
  ReleaseProcedure.l
EndStructure

mydraw.PBDrawingStruct
mydraw\Type=1
mydraw\WindowHandle=gadget
mydraw\DC=GetDC_(gadget)
StartDrawing(mydraw)
; do some drawing here
StopDrawing()
As for the other stuff you speak about, I can't think of anything, but you mention it and I see what I can do.. :wink:

Posted: Fri Apr 30, 2004 1:40 am
by Dare2
Hi Erlend,

Thanks for the response and the code showing how to get a handle on the OwnGadgets.

With the properties, I was playing around and trapping mouse and scroll positions so that I could get the actual position of the mouse (eg vScroll + yMouse) relative to the top/left of the ownGadget and thought a few properties stored with the ownGadget would be nice. And somehow marking or flagging them. (Just to save on having to store/manage things outside the lib)

Your idea on GetOwnGadget_VScroll(Gadget) and GetOwnGadget_HScroll(Gadget) would be great.

Does being able to store and retrieve some values, eg (Get/Set)OwnGadget_FlagA(Gadget,Value) sound useful to you? I reckon it could be used to keep track of general status, etc.

Thanks again for this lib. :)