Link to home
Start Free TrialLog in
Avatar of Stefaan
Stefaan

asked on

How to assign Glyph Icon for new component

Hi folks,

I am trying to create a new (simple) Component.  It consists of a small pannel with 3 buttons I often use on my form.  They do some simple filtering on my Datasources, nothing complicated.

But now I'm having a little problem.  It seems that crating the pannel and the buttons is no problem, but when I place my new component on a form, the buttons have no glyphs or bitmaps attached to them.

Now I would like to ask how I can attach an image to the three buttons, which will appear on my form when I place my new control on my form.

Anyone has any hints concerning this ?

Thanks a lot in advance
ASKER CERTIFIED SOLUTION
Avatar of rwilson032697
rwilson032697

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Stefaan
Stefaan

ASKER

Hi rwilson,

You were absolutely Right.  It works perfectly.  One little question I still want to ask is : What is the default (most used) size of a speedbutton and the icon which is on it.

I have made my button 26 x 26 and the icon on it is 21 x 21.  Is this good, or should I take something else.

Oh, by the way, if you have any more usefull tips or links concerning Component Creation, feel free to send them to me.

Greetings and best regards,


Stefaan Lesage

E-Mail : Stefaan.Lesage@eca.be

Avatar of Stefaan

ASKER

Sorry RWilson, forgot to award you with the points.

Hi Stefan,

I think most speedbuttons (like the ones you see in toolbars) are 16x16 - not that it really matters since they will be scales but the scaling can sometimes reduce the quality.... Otherwise you can pretty much use whatever size suits your app.

Cheers,

Raymond.
Avatar of Stefaan

ASKER

Raymond,

I have one more question, which you could probably help me with.  The pannel contains 3 buttons (one for entering a filter, one for applying a filter and one for canceling a filter), but it Should also contain a RadioGroup with 2 radiobuttons one for AND one for OR.

I already found out how I could create the RadioGroup, but apparently I can't seem to figure out how I should create the 2 radiobuttons, and furthermore I would also like to get the currently selected radiobutton as a property (which probable means I'll have to code something into the OnClick event of the radiogroup).

If you have any hints on how I could achieve this.  I would be very greatfull if you could help me.

Thanks a lot in advance.

Greetings and best regards,

Stefaan

Right click on the radio group component - theres an option to add a radiobutton.

The radiogroup component has a property indicating the selected radio button in the group.

Cheers,

Raymond.