Hi _why and gang,
I've looked into adding a slider control to shoes. Probably not to
helpful but I thought I would start out small and work my way to the menu.
I have gotten pretty far I was just wondering if anyone could point me in
the right direction with this error I'm getting.
Keep in mind I not much of a C programmer. I code in ruby, actionscript and
php all day. Also what kinds of controls are people looking for?
What would be helpful?
Anyway here is the error.
canvas.obj : error LNK2019: unresolved external symbol "unsigned long
cSlider" (
?cSlider@@3KA) referenced in function "unsigned long __cdecl
shoes_canvas_slider
(int,unsigned long *,unsigned long)" (?shoes_canvas_slider@@[EMAIL PROTECTED])
ruby.obj : error LNK2001: unresolved external symbol "unsigned long cSlider"
(?c
Slider@@3KA)
dist/libshoes.dll : fatal error LNK1120: 1 unresolved externals
rake aborted!
Here is just the draw function:
//
// Slider
//
VALUE
shoes_slider_draw(VALUE self, VALUE c, VALUE actual)
{
SETUP_CONTROL(-6, 20);
if (RTEST(actual))
{
if (self_t->ref == NULL)
{
#ifdef SHOES_GTK
//In the works
GtkObject *adj;
adj = gtk_adjustment_new(0.0, 0.0, 100.0, 1.0, 5.0, 1.0);
gtk_signal_connect(GTK_OBJECT(adj), "value_changed",
GTK_SIGNAL_FUNC(AdjustmentChanged), NULL);
// create a horizontal scale widget. Display the value to the
// left of the scale, and display scale value as an integer
hscale = gtk_hscale_new( GTK_ADJUSTMENT(adj) );
gtk_scale_set_value_pos( GTK_SCALE(hscale), GTK_POS_LEFT );
gtk_scale_set_digits( GTK_SCALE(hscale), 0 );
#endif
#ifdef SHOES_QUARTZ
Rect r = {place.iy, place.ix, place.iy + place.ih, place.ix + place.iw};
//Static Values for now
CreateSliderControl (NULL, &r, 25, 0, 50,
kControlSliderPointsDownOrRight, 0, false, NULL, &self_t->ref);
#endif
#ifdef SHOES_WIN32
int cid = SHOES_CONTROL1 + RARRAY_LEN(canvas->slot.controls);
self_t->ref = CreateWindowEx(0, TRACKBAR_CLASS, NULL,
WS_CHILD | WS_VISIBLE | TBS_FIXEDLENGTH | TBS_NOTICKS | TBS_HORZ,
place.ix, place.iy, place.iw, place.ih, canvas->slot.window,
(HMENU)cid,
(HINSTANCE)GetWindowLong(canvas->slot.window, GWL_HINSTANCE),
NULL);
shoes_win32_control_font(cid, canvas->slot.window);
rb_ary_push(canvas->slot.controls, self);
#endif
PLACE_CONTROL();
}
else
{
REPAINT_CONTROL();
}
}
else
{
PLACE_COORDS();
}
FINISH();
return self;
}
Thanks for shoes and your time.
--Tom