[Gambas-user] Newbie needs help with controls
Benoit Minisini
gambas at ...2...
Tue Aug 12 12:57:41 CEST 2003
Le Mardi 12 Août 2003 12:11, DHoll28158 at ...87... a écrit :
> In a message dated 8/12/2003 1:51:23 AM Pacific Daylight Time,
>
> gambas at ...2... writes:
> > Le Mardi 12 Août 2003 05:16, DHoll28158 at ...87... a écrit :
> > >In a message dated 8/11/2003 7:45:34 AM Pacific Daylight Time,
> > >
> > >sourceforge-raindog2 at ...94... writes:
> > >>On Monday 11 August 2003 08:10, Benoit Minisini wrote:
> > >>>>2. Can a control ie: button , panel or frame. be made transparent.
> > >>>
> > >>>No.
> > >>
> > >>Any plans to support this? It seems to be the one glaring thing people
> > >>notice
> > >>when I show them converted vb forms (since vb labels etc. default to
> > >>being transparent.)
> > >>
> > >>>>3. Is there a way to implement Hot Spots over an image.
> > >>>
> > >>>What is it ?
> > >>
> > >>I think he means like imagemaps on a website (e.g. the visual intro to
> > >>gambas
> > >>page.) You could probably do it with the X and Y parameters to the
> > >>MouseDown
> > >>etc. events, but that's only good when the user presses a button... no
> > >>visual
> > >>feedback is possible when they mouse over things.
> > >>
> > >>Rob
> > >
> > >A hot Spot is certain areas on a form or image that triggers the
> > > mouse-over event.
> > >This could be used to bring up info messages or other controls. Usually
> > > the cursor icon changes to indicate that a mouse click will trigger a
> > > function. I have used transparent labels to do this. It is a powerful
> > > tool for making an application easier to use.
> > >
> > >Dan
> >
> > You can use the MouseMove event.
>
> If I have an image that covers the entire display and I only want 5 very
> small rectangular areas, located at various places on the image to be Hot
> Spots. How would that be accomplished.
>
> I guess I could hard code all the co-ords into an CASE statement, but a
> transparent lable would be a lot easier to make adjustments later.
>
> Dan
Hmmm... QWidget cannot be transparent, so transparent labels is too much work.
I could make a "virtual" widget that has just coordinates, and that raises
events when the mouse moves over it. A lot of work too...
Otherwise, controls have Enter and Leave events, which helps for displaying
contextual help, but not in your case.
I think you have to use elbow grease :-)
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list