Giter Club home page Giter Club logo

rust-vcl's People

Contributors

ying32 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rust-vcl's Issues

TTreeView类名不对

今天试着给TTreeView添加CheckBox样式:

        unsafe {
            let style = GetWindowLongW(self.tv.Handle() as cHWND, GWL_STYLE);
            SetWindowLongW(self.tv.Handle() as cHWND, GWL_STYLE, style | TVS_CHECKBOXES as i32);
        }

发现无效,用spy++看了下,好像TTreeView控件的类名不对吧:
1

类似TMouseButton的enum比较问题

这样的代码会报错

    fn OnMouseDown(&self, sender: usize, button: TMouseButton, shift: TShiftState, x: i32, y: i32) {
        println!("Button:{}, X:{} Y:{}", button == TMouseButton::mbLeft, x, y);
        println!("OnMouseDown");
    }

binary operation == cannot be applied to type rust_vcl::types::TMouseButton

是不是要加上#[derive(PartialEq, Debug)],方便输出和比较。

MessageDlg相关问题

MessageDlg("中文", TMsgDlgType::mtInformation, TMsgDlgBtn::mbYes as u32, 0);

这样显示的按钮是OK,TMsgDlgBtn::mbNo这个才是Yes,另外如果要多个按钮在WIN32里是类似TMsgDlgBtn::mbYes as u32 | TMsgDlgBtn::mbNo as u32这样的方式么?

其次types.rs里那些const常量应该加pub吧。

to_RustString导出

.SetOnLinkClick(sid, |cls: &TMainForm, sender: usize, link: *const c_char, linkType: TSysLinkType|{
    println!("link label: {}, type: {:?}", to_RustString!(link), linkType);

});

是不是把to_RustString导出比较好,有些回调参数还是用到*const c_char了。

Error

  • 错误记录:
    • MSVC x64高版本编译器会开启ASLR,而liblcl没有支持ASLR,造成使用上有问题,在linker参数中加入/DYNAMICBASE:NO即可解决。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.