Re: Stop whining? (Was: Fighting...)
- Posted by Euman <euman at BELLSOUTH.NET> Jan 20, 2001
- 427 views
You would be surprised at the advantages the below function has.. </snip> sequence cz, control_zone control_zone = {{ your nested sequence of routine_ids and coordinates }} integer control_len, lit control_len = length(control_zone) function onControl_Check(integer event, integer x, integer y, integer shift ) for i = 1 to control_len do cz = control_zone[i] if x < cz[1] or x > cz[3] or y < cz[2] or y > cz[4] then else lit = i return {1,lit} end if end for return {0,lit} end function procedure onMouse_Win(integer event, integer x, integer y, integer shift ) sequence isControl isControl = onControl_Check(event, x, y, shift) if isControl[1] = 1 then cz = control_zone[lit] ..........do something end if end procedure <snip\> pass onMouse events to this and you could make anypart of the window secified in a sequence named control_zone do what you want it to. euman at bellsouth.net ----- Original Message ----- From: "George Henry" <ghenryca at HOTMAIL.COM> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Saturday, January 20, 2001 14:35 Subject: Stop whining? (Was: Fighting...) > Okay, I'll say it before someone else does. > > I just expected it to be a little easier to implement UI designs. But I > don't have enough experience with windoze programming (even taking into > account my VB experience) to really know what I'm talking about. Sorry. > > Strategy of choice is to investigate designs using little windows with no > application functionality attached, thatn when I get the UI part working > well, add my buttons and edit boxes and all that. > > I still think my concern about the slowness of the wipe and redraw of the > tab control is valid, but of course that may be due to the way windoze > handles things, vs. win32lib's code. Or it may be a result of interpreted > Euphoria vs. compiled C/C++. > > And the scrunch/spread controls utility is not a bad idea.... > > George >