27 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for nathan.pavlovsky

Hello! I was creating a custom array class as an exercise in my exploring of class and function templates. Here's my header file: #include <iostream> template <typename el> class Array { friend std::ostream &operator<<(std::ostream&,const Array&); friend std::istream &operator>>(std::istream&,Array&); public: Array(const int& arraySize=0); //set all members of array with size arraySize …

Member Avatar for mike_2000_17
0
8K
Member Avatar for Papa_Don

Hi Group! I'm curious to know, is it is possible to build a custom control in Visual Basic? Specifically, I want to build a control that would be similar that would be similar to a ListView (in the Detail "view"). However the difference would be in how it actually displays. …

Member Avatar for deletedaccount
0
271
Member Avatar for abaddon2031

I have a code that i have made that appends a file then uploades the output of the appending to my websites database. In the code i have 2 def statements that i would like to put into modules. I was wondering if omeone could tell me a simple way …

Member Avatar for TrustyTony
0
205
Member Avatar for CoilFyzx

Oh boy They ust be tired of me now. My trouble: I have two ArrayLists of custom classes. ``ArrayList<Subject>` **a**` ``ArrayList<Student>` **b**` Within those custom classes are other custom classes which themselves have primitive data types as well as an ArrayList of other custom classes. It's a big circus going …

Member Avatar for JamesCherrill
0
562
Member Avatar for CoilFyzx

Hello good day. Here is my problem: I have retrieved some a couple sets of data from my sql database and saved them in ArrayLists of (custom)types <Student> and <Subject>. I am using a single Table. I want to create a custom AbstractDataModel that displays the data from the ArrayList<Student>. …

Member Avatar for CoilFyzx
0
1K
Member Avatar for Pobunjenik

I've got a JTable called chances_T full of doubles ranging from 0 to 100. I'm trying to set the background color of each cell based on the cell's value. So I built a custom cell renderer: class CustomRenderer extends DefaultTableCellRenderer { @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, …

Member Avatar for mKorbel
0
451
Member Avatar for Fcasualty

I am trying to add a custom widget dynamically, multiple times. However, the widgets just stack up in the same place. I have tried several combinations of Layout() and Fit() and setSizerAndFit() after adding custom widget to the sizer Thank you for any help #!/usr/bin/env python # -*- coding: US-ASCII …

Member Avatar for Fcasualty
0
301
Member Avatar for patk570

Hello everyone, I have a website I am working on. On this site, I have a form that when you search for just one term, say "legs", it is supposed to pull up everything that is "legs", but not "legs" with "stability ball". My form uses the search term q[] …

Member Avatar for patk570
0
390
Member Avatar for kedxu

If I am given the exact coordinates of three vertices in image-space (as in, the numbers are not integers, but can be rounded to find their location on the screen), how can I determine which pixels are inside the triangle and should be colored? If you look at the diagram …

Member Avatar for kedxu
0
408
Member Avatar for joshl_1995

Hello, I was wondering if there is a way to display formatting in a richtextbox eg. If i put **test** the word "test" would be i bold (only the word "test" and the rest would stay the normal). or if i put `test` the word "test" would be i size …

Member Avatar for Dani
0
451
Member Avatar for *sharath*

Does any one have any idea of creating a custom component like the below image instead of using the image itself. I know how to create a rectangle (a rounded one using the xml and not in java) which was discussed in the most of the links but i am …

Member Avatar for *sharath*
0
216
Member Avatar for kaizen202

In my project, I need a stand alone scroll bar for my text box. So I have created a customized scroll bar. Any idea How to use my customized scroll bar(both Horizontal and Vertical) in the text box instead of built-in scroll bar?

Member Avatar for kaizen202
0
466
Member Avatar for joshl_1995

Hello Community, I was making my own custom window and i need help with making it in wpf, i am new to wpf so i don't know much XAML so i was wondering if you can help?, this is what i wan't. In the example i'm using the minimize button. …

Member Avatar for joshl_1995
0
338
Member Avatar for DelilahDemented

I'm learning as I go here, but I'm stuck at the moment. I am trying to dynamically create a datagridview and populate it from a database using SQL. I have created my columns, but I don't know how to assign the data coming out of my sql query to its …

Member Avatar for DelilahDemented
0
1K
Member Avatar for latooplat

I have a special problem over in terms of sorting out those words like a keyboard type. For example: the user inputs these words into the textarea HOUSE DOLL KITE NICE Then, the result should be DOLL HOUSE KITE NICE this is sorted out according to the qwerty order. <?php …

Member Avatar for pritaeas
0
1K
Member Avatar for jbutardo

Hi! I just have this program that validates if the selected file is an excel file, and I want this to have a separate function for validation so I can use that function to other program, can you please give me an example on how to do this function.. Thanks

Member Avatar for jbutardo
0
279
Member Avatar for y2kshane

im creating a custom button . when user select a image file for button image i want to add it to the project resource (in design time) . how to do this?? im currently drawing image using image location but its not a good solution.

Member Avatar for codeorder
0
7K
Member Avatar for y2kshane

im creating a custom User Control. its a custom picture box . i want to user to select the picture file from file system. so i use following code(i found it on a forum) . but vb says that code has a error . help me :'( [CODE] <EditorAttribute(GetType(System.Windows.Forms.Design.FileNameEditor), _ …

Member Avatar for y2kshane
0
214
Member Avatar for Sudo Bash

Hi all, I am trying to create a class to serve as a customized cout class. Right now I have made some test code to see if I can do it. Right now I am trying to make it function just like cout, but later I will have it do …

Member Avatar for Sudo Bash
0
2K
Member Avatar for bipies

Is there any way to execute a wordpress plugin's call tag [CODE][pluginname=parameters] [/CODE] from custom fields? Actually I'm trying with a function and then calling it from the template: [CODE]<?php if ( function_exists('get_custom_field_value') ){ get_custom_field_value('my custom field', true); } ?>[/CODE] but my result is the plugin call tag [CODE][pluginname=parameters][/CODE] . …

Member Avatar for bipies
0
175
Member Avatar for Kevingon

Hi, I'm trying to set custom fonts, I can do it without problem with this code: [CODE] InputStream is = this.getClass().getResourceAsStream("/src/someFontName.ttf"); Font f=null; try { f = Font.createFont(Font.TRUETYPE_FONT,is).deriveFont(15f); } catch (FontFormatException ex) { Logger.getLogger(PanelLiquidacion.class.getName()).log(Level.SEVERE, null, ex); } catch (IOException ex) { Logger.getLogger(PanelLiquidacion.class.getName()).log(Level.SEVERE, null, ex); } txtPlace=new JTextField();txtPlace.setBounds(185,10,310,20); if(f!=null){ txtPlace.setFont(f); lblPlace.setFont(f); …

Member Avatar for Kevingon
1
569
Member Avatar for TrueVb.NetNoob

Hi Everyone! I am here by to ask help on enhancing messageboxs. How is the way to Display a picture(like a JPG file) inside a messagebox along with text when a button is clicked? Any Suggestions would be appreciated. Thank You!

Member Avatar for codeorder
0
663
Member Avatar for Pundia

Hi, I want to sort a TStringList but not by the strings in it, but by the Objects. Here's my code: [CODE]var i : integer; iCount : integer; idxFound : integer; someText : string; s : TStringList; oneWord : string; aux : integer; begin someText := memo_txtfile.text; oneWord := ''; …

Member Avatar for Pundia
0
808
Member Avatar for ivan3510

Hi all. I'm trying to create custom prompt. When I click on the button, appears custom prompt and ask "Do you realy want to submit?". When I click "Yes", the form isn't submited. Here's html code: [CODE]<html> <head> <link rel="stylesheet" href="look.css" type="text/css"> <script type="text/javascript" src="script.js"></script> </head> <body> <form name="novo" action="obrada.php" …

Member Avatar for ivan3510
0
615
Member Avatar for samarudge

Hey, I'm having an issue with custom fonts on my site. I copied the code from a Google Fontlibary CSS file [CODE=css]/* Custom fonts for the site */ @font-face { font-family: 'Reenie Beanie'; font-style: normal; font-weight: normal; src: local('Reenie Beanie'), url('http://themes.googleusercontent.com/font?kit=ljpKc6CdXusL1cnGUSamX_cCQibwlboQP4eCflnqtq0') format('truetype'); } /*Assign the custom font's to where there …

Member Avatar for samarudge
0
164
Member Avatar for kalodakilla

Hi, I'm just starting to learn how to create custom controls in C# but I'm having a problem with the toolbox here. After creating and compiling the custom control in the Library project, i add new project to the solution to test my new control, so i add reference like …

Member Avatar for kalodakilla
0
176
Member Avatar for Diamonddrake

I have been working on a custom Hue Slider, when you drag the knob the color of it changes to its hue value. (ex 0 is red). I added a little gloss to the knob, I feel its not done, I Just don't have any Ideas as to how to …

Member Avatar for Diamonddrake
1
171

The End.