void Get_Object(unsigned int X, unsigned int Y) { cimage_order = -1; box_order = -1; // CImages for ( _object_count = 0 ; _object_count < CurrentScreen->CImagesCount ; _object_count++ ) { local_cimage = GetCImage(_object_count); if (local_cimage->Active == 1) { if (IsInsideObject(X, Y, local_cimage->Left, local_cimage->Top, local_cimage->Width, local_cimage->Height) == 1) { cimage_order = local_cimage->Order; exec_cimage = local_cimage; } } } // Boxes for ( _object_count = 0 ; _object_count < CurrentScreen->BoxesCount ; _object_count++ ) { local_box = GetBox(_object_count); if (local_box->Active == 1) { if (IsInsideObject(X, Y, local_box->Left, local_box->Top, local_box->Width, local_box->Height) == 1) { box_order = local_box->Order; exec_box = local_box; } } } _object_count = -1; if (cimage_order > _object_count ) _object_count = cimage_order; if (box_order > _object_count ) _object_count = box_order; }
void Get_Object(unsigned int X, unsigned int Y) { button_order = -1; image_order = -1; radio_button_order = -1; // Buttons for ( _object_count = 0 ; _object_count < CurrentScreen->ButtonsCount ; _object_count++ ) { local_button = GetButton(_object_count); if (local_button->Active == 1) { if (IsInsideObject(X, Y, local_button->Left, local_button->Top, local_button->Width, local_button->Height) == 1) { button_order = local_button->Order; exec_button = local_button; } } } // Images for ( _object_count = 0 ; _object_count < CurrentScreen->ImagesCount ; _object_count++ ) { local_image = GetImage(_object_count); if (local_image->Active == 1) { if (IsInsideObject(X, Y, local_image->Left, local_image->Top, local_image->Width, local_image->Height) == 1) { image_order = local_image->Order; exec_image = local_image; } } } // RadioButtons for ( _object_count = 0 ; _object_count < CurrentScreen->RadioButtonsCount ; _object_count++ ) { local_radio_button = GetRadioButton(_object_count); if (local_radio_button->Active == 1) { if (IsInsideObject(X, Y, local_radio_button->Left, local_radio_button->Top, local_radio_button->Width, local_radio_button->Height) == 1) { radio_button_order = local_radio_button->Order; exec_radio_button = local_radio_button; } } } _object_count = -1; if (button_order > _object_count) _object_count = button_order; if (image_order > _object_count ) _object_count = image_order; if (radio_button_order > _object_count ) _object_count = radio_button_order; }
void Get_Object(unsigned int X, unsigned int Y) { round_button_order = -1; label_order = -1; image_order = -1; // Buttons with Round Edges for ( _object_count = 0 ; _object_count < CurrentScreen->Buttons_RoundCount ; _object_count++ ) { local_round_button = GetRoundButton(_object_count); if (local_round_button->Active != 0) { if (IsInsideObject(X, Y, local_round_button->Left, local_round_button->Top, local_round_button->Width, local_round_button->Height) == 1) { round_button_order = local_round_button->Order; exec_round_button = local_round_button; } } } // Labels for ( _object_count = 0 ; _object_count < CurrentScreen->LabelsCount ; _object_count++ ) { local_label = GetLabel(_object_count); if (local_label->Active != 0) { if (IsInsideObject(X, Y, local_label->Left, local_label->Top, local_label->Width, local_label->Height) == 1) { label_order = local_label->Order; exec_label = local_label; } } } // Images for ( _object_count = 0 ; _object_count < CurrentScreen->ImagesCount ; _object_count++ ) { local_image = GetImage(_object_count); if (local_image->Active != 0) { if (IsInsideObject(X, Y, local_image->Left, local_image->Top, local_image->Width, local_image->Height) == 1) { image_order = local_image->Order; exec_image = local_image; } } } _object_count = -1; if (round_button_order > _object_count ) _object_count = round_button_order; if (label_order > _object_count ) _object_count = label_order; if (image_order > _object_count ) _object_count = image_order; }